/**
 * Bankco-inspired admin shell (no Tailwind build).
 * Loaded after admin.css — overrides tokens + replaces topnav with sidebar layout.
 */

:root {
  --font: "UKIJ Tor", "Segoe UI", Tahoma, sans-serif;
  --bg: #fafafa;
  --panel: #ffffff;
  --line: #f3f4f6;
  --text: #1a202c;
  --muted: #718096;
  --purple: #22c55e;
  --purple-soft: #dcfce7;
  --purple-deep: #16a34a;
  --lime: #86efac;
  --mint: #dcfce7;
  --mint-text: #166534;
  --sky: #e0f2fe;
  --sky-text: #0369a1;
  --lilac: #dcfce7;
  --lilac-text: #15803d;
  --peach: #ffedd5;
  --peach-text: #c2410c;
  --ok: #22c55e;
  --warn: #d97706;
  --err: #e11d48;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(26, 32, 44, 0.06);
  --shadow-sm: 0 6px 18px rgba(26, 32, 44, 0.04);
  --sidebar-w: 248px;
  --sidebar-collapsed: 96px;
  --header-h: 108px;
  --primary: #22c55e;
  --primary-deep: #16a34a;
  --bgray-50: #f9fafb;
  --bgray-100: #f3f4f6;
  --bgray-200: #e5e7eb;
  --bgray-500: #6b7280;
  --bgray-700: #374151;
  --bgray-900: #111827;
}

html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
}

/* ========== Shell: sidebar + header ========== */
.shell {
  min-height: 100vh;
  display: block;
  position: relative;
  background: var(--bg);
}

.aside-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 24, 39, 0.35);
}

.shell.drawer-open .aside-overlay {
  display: block;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 40;
  width: var(--sidebar-w);
  background: #fff;
  border-inline-end: 1px solid #f7f7f7;
  display: flex;
  flex-direction: column;
  transition: width 0.35s ease, transform 0.35s ease;
  inset-inline-start: 0;
  overflow: visible;
}

.sidebar-header {
  position: relative;
  z-index: 5;
  height: var(--header-h);
  flex: none;
  display: flex;
  align-items: center;
  padding-inline: 20px 18px;
  border-bottom: 1px solid #f7f7f7;
  border-inline-end: 1px solid #f7f7f7;
  background: #fff;
  overflow: visible;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.sidebar .logo-full {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar .logo-mark {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.sidebar .logo-word {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}
.sidebar .logo-word em,
.sidebar .logo-word i,
.logo.logo--signin .logo-word em,
.logo.logo--signin .logo-word i {
  font-style: normal;
  font-weight: 800 !important;
}
.sidebar .logo-word em,
.logo.logo--signin .logo-word em {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #1a202c;
}
.sidebar .logo-word i,
.logo.logo--signin .logo-word i {
  font-family: "Plus Jakarta Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  color: #22c55e;
}
.sidebar .logo-short {
  display: none;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo.logo--signin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo.logo--signin .logo-mark {
  display: block;
  height: 44px;
  width: auto;
}
.logo.logo--signin .logo-word em {
  font-size: 26px;
}
.logo.logo--signin .logo-word i {
  font-size: 20px;
}

/* Bankco green edge tab (original 16×40) */
.drawer-btn {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
  z-index: 50;
}
.drawer-btn svg {
  display: block;
  width: 16px;
  height: 40px;
  transform: scaleX(-1);
}
html[dir="rtl"] .drawer-btn svg {
  transform: none;
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 200px 22px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.sidebar-body::-webkit-scrollbar { display: none; }

.nav-group {
  margin-bottom: 20px;
}
.nav-group__title {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  line-height: 1.75;
  color: #374151;
}

.nav-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Bankco item: flat row, no card bg — hover turns green */
.nav-item {
  color: #1a202c;
  transition: color 0.3s ease-in-out;
}
.nav-item > a,
.nav-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border: 0;
  background: transparent !important;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.3s ease-in-out;
}
.nav-item > a:hover,
.nav-item__btn:hover,
.nav-item:hover {
  color: #22c55e;
  background: transparent;
}

.item-ico {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 21px;
}
.item-ico svg {
  display: block;
  width: 18px;
  height: auto;
  max-height: 21px;
}
.item-ico .path-1,
.item-ico .path-2 {
  transition: fill 0.3s ease-in-out;
}

/* Bankco hover: dark path → green, green accent → mint */
.nav-item:hover .item-ico .path-1,
.nav-item.is-active .item-ico .path-1 {
  fill: #22c55e;
}
.nav-item:hover .item-ico .path-2,
.nav-item.is-active .item-ico .path-2 {
  fill: #b7ffd1;
}
/* stroke-based accents in some icons */
.nav-item:hover .item-ico [stroke="#22C55E"],
.nav-item.is-active .item-ico [stroke="#22C55E"] {
  stroke: #b7ffd1;
}

.item-text {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease-in-out;
}

.item-caret {
  margin-inline-start: auto;
  color: currentColor;
  opacity: 0.55;
  display: inline-grid;
  transition: color 0.3s ease-in-out, opacity 0.2s;
}
/* RTL: mirror caret to point inward (Bankco LTR points right) */
html[dir="rtl"] .item-caret {
  transform: scaleX(-1);
}
/* Bankco: open 时 caret 仍朝前，仅变绿，不转成向下 */
.nav-item.is-active > a,
.nav-item.is-active > .nav-item__btn,
.nav-item.is-open > .nav-item__btn {
  color: #22c55e;
}
.nav-item.is-open > .nav-item__btn .item-caret,
.nav-item.is-active > .nav-item__btn .item-caret {
  opacity: 1;
  color: #22c55e;
}

.badge-num {
  margin-inline-start: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}

/* Bankco: ml-2.5 mt-[22px] border-l border-success-100 pl-5 */
.sub-menu {
  list-style: none;
  margin: 22px 0 4px;
  margin-inline-start: 10px;
  padding: 0;
  padding-inline-start: 20px;
  border: 0;
  border-inline-start: 1px solid #b7ffd1;
  display: none;
  animation: bcTabFade 0.45s ease;
}
.nav-item.is-open > .sub-menu {
  display: block;
}
@keyframes bcTabFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sub-menu li {
  margin: 0;
  padding: 0;
}
/* Bankco: text-md py-1.5 font-medium text-bgray-600 hover:text-bgray-800 */
.sub-menu a {
  display: inline-block;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #718096;
  transition: color 0.2s ease-in-out;
}
.sub-menu a:hover {
  color: #1a202c;
}
.sub-menu a.on {
  color: #22c55e;
}

/* collapsed desktop — Bankco 96px rail */
.shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed);
}
.shell.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding-inline: 0;
}
.shell.sidebar-collapsed .logo-full { display: none; }
.shell.sidebar-collapsed .logo-short { display: block; }
.shell.sidebar-collapsed .nav-group__title,
.shell.sidebar-collapsed .item-text,
.shell.sidebar-collapsed .item-caret,
.shell.sidebar-collapsed .badge-num,
.shell.sidebar-collapsed .sub-menu {
  display: none !important;
}
.shell.sidebar-collapsed .sidebar-body {
  padding: 14px 0 120px;
}
.shell.sidebar-collapsed .nav-item > a,
.shell.sidebar-collapsed .nav-item__btn {
  justify-content: center;
  padding: 11px 0;
}
.shell.sidebar-collapsed .item-ico svg {
  width: 18px;
  height: auto;
}
.shell.sidebar-collapsed .drawer-btn svg {
  transform: none;
}
html[dir="rtl"] .shell.sidebar-collapsed .drawer-btn svg {
  transform: scaleX(-1);
}

.body-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-inline-start: var(--sidebar-w);
  transition: margin-inline-start 0.35s ease;
}
.shell.sidebar-collapsed .body-wrap {
  margin-inline-start: var(--sidebar-collapsed);
}

/* Bankco header-wrapper */
.topnav.bc-topnav {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  padding: 0 40px;
  height: 108px;
  min-height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.bc-topnav__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
}
.header-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f7fafc;
  color: #1a202c;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.bc-topnav__crumb {
  min-width: 0;
}
.bc-topnav__crumb h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-topnav__crumb p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  color: #718096;
}
.bc-topnav__crumb p:empty { display: none; }

.bc-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 56px;
  width: min(400px, 36vw);
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #f7fafc;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.bc-search:focus-within {
  border-color: #22c55e;
  background: #fff;
}
.bc-search__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.bc-search__ico {
  display: inline-grid;
  color: #1a202c;
  flex-shrink: 0;
}
.bc-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  font-family: inherit;
}
.bc-search input::placeholder {
  color: #a0aec0;
  font-weight: 600;
}
.bc-search__kbd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1a202c;
  font-size: 16px;
  flex-shrink: 0;
}

.bc-topnav__tools {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.bc-qa {
  display: none;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1200px) {
  .bc-qa { display: flex; }
}
.bc-qa__btn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #22c55e;
  background: #fff;
  color: #1a202c;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.bc-qa__btn:hover {
  background: #f0fdf4;
}
.bc-qa__dot {
  position: absolute;
  top: -2px;
  inset-inline-end: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #cbd5e0;
}
.bc-qa__dot.red { background: #ef4444; }
.bc-qa__dot.gray { background: #cbd5e0; }

.bc-topnav__sep {
  display: none;
  width: 1px;
  height: 48px;
  background: #cbd5e0;
}
@media (min-width: 1200px) {
  .bc-topnav__sep { display: block; }
}

.bc-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
}
.bc-author__av {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 18px;
  font-weight: 700;
}
.bc-author__av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bc-author__meta {
  display: none;
  flex-direction: column;
  gap: 0;
  line-height: 1.25;
}
@media (min-width: 1400px) {
  .bc-author__meta { display: flex; }
}
.bc-author__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.bc-author__name svg {
  flex-shrink: 0;
  color: #111827;
}
.bc-author__meta small {
  font-size: 14px;
  font-weight: 500;
  color: #718096;
}

.bc-logout {
  margin: 0;
}
.bc-logout button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f7fafc;
  color: #4a5568;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.bc-logout button:hover {
  background: #fef2f2;
  color: #ef4444;
}

.content {
  padding: 24px 28px 40px;
  width: 100%;
  max-width: none;
  margin: 0;
}

/* ========== Components: Bankco green accents ========== */
.btn {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  border: 0;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.22);
}
.btn:hover { background: var(--primary-deep); }
.btn-lime {
  background: var(--lime);
  color: #14532d;
  box-shadow: none;
}
.btn-ghost {
  background: #fff;
  color: var(--bgray-700);
  border: 1px solid var(--bgray-200);
  box-shadow: none;
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
  background: var(--purple-soft);
}
.btn-sm { border-radius: 10px; }

.panel {
  background: #fff;
  border: 1px solid var(--bgray-100);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  border-bottom: 1px solid var(--bgray-100);
}

.flash {
  border-radius: 14px;
  border: 1px solid var(--bgray-100);
}
.flash.ok {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}
.flash.err {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.badge {
  border-radius: 999px;
  background: var(--bgray-50);
  color: var(--bgray-700);
}
.badge.ok,
.badge.success { background: #ecfdf5; color: #166534; }
.badge.warn,
.badge.pending { background: #fff7ed; color: #c2410c; }
.badge.err,
.badge.failed { background: #fef2f2; color: #991b1b; }

.chip.active,
.chip.on,
.chip.soft.active {
  background: var(--purple-soft);
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.22);
}

table.data thead th {
  background: var(--bgray-50);
  color: var(--bgray-500);
  border-bottom: 1px solid var(--bgray-100);
}
table.data tbody td {
  border-bottom: 1px solid var(--bgray-100);
}
table.data tbody tr:hover {
  background: #f9fafb;
}

.input-ico:focus-within,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.input-ico:focus-within {
  background: #fff;
}

.settings-switch input:checked + .toggle { background: var(--primary); }

.modal-card {
  border-radius: 20px;
  border: 1px solid var(--bgray-100);
}
.profile-avatar-preview {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: var(--primary-deep);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.18);
}

.btn-login {
  background: var(--primary);
  border-radius: 14px;
}
.btn-login .arrow {
  background: #fff;
  color: var(--primary-deep);
  border-radius: 12px;
}
.btn-login:hover { background: var(--primary-deep); }

.login-stage {
  background: linear-gradient(135deg, #f0fdf4 0%, #fafafa 45%, #ecfdf5 100%);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-brand .mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.28);
}
.login-brand strong { display: block; font-size: 16px; color: var(--bgray-900); }
.login-brand small { color: var(--bgray-500); font-size: 12px; }
.login-kicker { color: var(--primary-deep); }
.login-card {
  border-radius: 24px;
  border: 1px solid var(--bgray-100);
  box-shadow: var(--shadow);
}
.feat {
  border: 1px solid var(--bgray-100);
  box-shadow: none;
}
.feat-ico {
  background: var(--purple-soft);
  color: var(--primary-deep);
}
.brand-row .mark {
  background: var(--primary);
  border-radius: 12px;
}

.welcome {
  background: #fff;
  border: 1px solid var(--bgray-100);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: none;
  margin-bottom: 24px;
}
.bc-welcome h1 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.45;
  color: #111827;
}
.bc-welcome .date {
  color: #6b7280;
  margin-bottom: 8px;
}
.avatar-stack .av {
  background: #dcfce7;
  color: #15803d;
}
.avatar-stack .more {
  background: #22c55e;
}

/* ========== Dashboard KPI = Bankco Total earnings card ========== */
.bc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 1400px) {
  .bc-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.bc-earn {
  display: block;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bc-earn:hover {
  box-shadow: 0 12px 32px rgba(26, 32, 44, 0.08);
  transform: translateY(-2px);
}
.bc-earn__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.bc-earn__title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.bc-earn__ico {
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.bc-earn__ico img,
.bc-earn__ico svg {
  display: block;
  width: 44px;
  height: 38px;
}
.bc-earn__label {
  font-size: 18px;
  line-height: 1.45;
  color: #111827;
}
.bc-earn__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.bc-earn__left {
  flex: 1;
  min-width: 0;
}
.bc-earn__value {
  margin: 0;
  font-size: 30px;
  line-height: 1.45;
  color: #111827;
  letter-spacing: -0.02em;
  text-align: right;
}
.bc-earn__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.bc-earn__tri {
  display: inline-grid;
  color: #22c55e;
}
.bc-earn.is-down .bc-earn__tri {
  color: #ef4444;
  transform: scaleY(-1);
}
.bc-earn__pct {
  font-size: 14px;
  color: #22c55e;
}
.bc-earn.is-down .bc-earn__pct {
  color: #ef4444;
}
.bc-earn__hint {
  font-size: 14px;
  color: #374151;
}
.bc-earn__spark {
  width: 106px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 2px;
}
.bc-earn__spark i {
  display: block;
  flex: 1;
  height: var(--h, 40%);
  border-radius: 4px 4px 2px 2px;
  background: #e5e7eb;
}
.bc-earn__spark i.on {
  background: #22c55e;
}

/* Dashboard panels / chart / table polish */
.dash-top {
  gap: 24px;
  margin-bottom: 8px;
}
.dash-side,
.dash-main {
  gap: 24px;
}

/* Bankco Total Balance — upstream huafei account */
.bc-wallet {
  padding: 36px 28px 28px;
  background: #fff;
  border-radius: 12px;
}
.bc-wallet__box {
  padding: 28px 28px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.bc-wallet__title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}
.bc-wallet__amount {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: right;
}
.bc-wallet__amount span {
  margin-inline-start: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bc-wallet__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6b7280;
}
.bc-wallet__ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #22c55e;
}
.bc-wallet__ok b {
  font-weight: 600;
}
.bc-wallet__warn {
  color: #ef4444;
  font-size: 13px;
}
.bc-wallet__chip {
  display: block;
  width: fit-content;
  margin: -18px auto 0;
  padding: 10px 22px;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  position: relative;
  z-index: 1;
}
.bc-wallet__chip:hover {
  color: #16a34a;
  border-color: #22c55e;
}
.bc-wallet__cta {
  display: block;
  margin-top: 40px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #22c55e;
  color: #fff !important;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.15s;
}
.bc-wallet__cta:hover {
  background: #16a34a;
}

/* Bankco Most Location — 四运营商 */
.bc-locate {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}
.bc-locate__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bc-locate__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}
.bc-locate__sum {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bc-locate__n {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}
.bc-locate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 60px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
}
.bc-locate__badge.is-down {
  background: #ef4444;
}
.bc-locate__badge.is-down svg {
  transform: scaleY(-1);
}
.bc-locate__badge b {
  font-size: 12px;
  font-weight: 500;
}
.bc-locate__sub {
  margin: 6px 0 28px;
  font-size: 13px;
  color: #6b7280;
}
.bc-locate__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.bc-locate__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: inherit;
}
.bc-locate__row:hover .bc-locate__name {
  color: #16a34a;
}
.bc-locate__flag {
  flex-shrink: 0;
  width: 30px;
  height: 22px;
  margin-top: 2px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.bc-locate__flag.tone-ok { background: #22c55e; }
.bc-locate__flag.tone-warn { background: #f8cc4b; color: #78350f; }
.bc-locate__flag.tone-orange { background: #ff784b; }
.bc-locate__flag.tone-sky { background: #38bdf8; }
.bc-locate__main {
  flex: 1;
  min-width: 0;
}
.bc-locate__labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.bc-locate__name {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.bc-locate__pct {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
}
.bc-locate__track {
  position: relative;
  height: 14px;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f4f6;
}
.bc-locate__track i {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
  min-width: 0;
  transition: width 0.25s ease;
}
.bc-locate__track i.tone-ok { background: #22c55e; }
.bc-locate__track i.tone-warn { background: #f8cc4b; }
.bc-locate__track i.tone-orange { background: #ff784b; }
.bc-locate__track i.tone-sky { background: #38bdf8; }
.bc-locate__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}
.bc-locate__meta .warn { color: #d97706; }
.bc-locate__meta .ok { color: #16a34a; }
.bc-locate__meta .bad { color: #dc2626; }

/* Shop rank — Bankco list rhythm */
.bc-shops {
  padding: 20px 22px 12px !important;
}
.bc-shops__head,
.bc-quick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.bc-shops__head h3,
.bc-quick__head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.bc-shops__head a,
.bc-quick__head a {
  font-size: 14px;
  font-weight: 500;
  color: #16a34a;
}
.bc-shops__head a:hover,
.bc-quick__head a:hover {
  color: #15803d;
}
.bc-shops__list {
  display: flex;
  flex-direction: column;
}
.bc-shop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.15s;
}
.bc-shop:hover {
  background: #f0fdf4;
}
.bc-shop__av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
}
.bc-shop__av.top1 { background: #22c55e; color: #fff; }
.bc-shop__av.top2 { background: #4ade80; color: #fff; }
.bc-shop__av.top3 { background: #86efac; color: #14532d; }
.bc-shop__main {
  flex: 1;
  min-width: 0;
}
.bc-shop__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.bc-shop__top strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-shop__top b {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  flex-shrink: 0;
}
.bc-shop__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-shop__meta > span.ltr {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-shop__bar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  min-width: 0;
}
.bc-shop__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
}

/* Quick entry — Bankco clean rows */
.bc-quick {
  padding: 20px 18px 10px !important;
}
.bc-quick__list {
  display: flex;
  flex-direction: column;
}
.bc-quick__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-radius: 10px;
  color: inherit;
  transition: background 0.15s;
}
.bc-quick__item:hover {
  background: #f0fdf4;
}
.bc-quick__ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.bc-quick__ico svg {
  width: 22px;
  height: 22px;
}
.bc-quick__ico.green { background: #22c55e; }
.bc-quick__ico.orange { background: #ff784b; }
.bc-quick__ico.dark { background: #1a202c; }
.bc-quick__ico.yellow { background: #f8cc4b; }
.bc-quick__ico.cyan { background: #06b6d4; }
.bc-quick__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bc-quick__text strong {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-quick__text small {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-quick__more {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  opacity: 0.7;
}
.panel {
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  box-shadow: none;
  padding: 20px 22px;
}
.panel-head h3,
.perf-title h3 {
  font-size: 18px;
  color: #111827;
}
.perf-dot {
  background: #22c55e;
}
.perf-more:hover {
  background: #dcfce7;
  color: #16a34a;
}
.perf-tabs {
  background: #f9fafb;
  border-radius: 10px;
}
.perf-tabs button.on {
  background: #fff;
  color: #16a34a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.bar-chart .bar-col.peak i,
.bar-chart .bar-col i {
  background: linear-gradient(180deg, #4ade80, #22c55e);
}
.bar-chart .bar-col.peak .bar-tip {
  background: #16a34a;
}
.lb-rank.top {
  background: #22c55e;
}
.lb-meter i {
  background: #22c55e;
}
.qe-ico.blue { background: #22c55e; }
.qe-ico.orange { background: #f59e0b; }
.qe-ico.green { background: #16a34a; }
.qe-ico.red { background: #ef4444; }
.qe-ico.violet { background: #22c55e; }
.qe-ico.cyan { background: #06b6d4; }
.qe-link:hover {
  background: #f0fdf4;
}
.qe-edit {
  color: #16a34a;
}
/* Summary + Efficiency row (Bankco) — full width of dash-main */
.dash-board {
  gap: 24px;
}
.bc-sum-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  width: 100%;
}
.bc-sum-row > .panel {
  margin-bottom: 0;
  min-width: 0;
  height: 100%;
}
.bc-summary {
  padding: 12px 24px 16px !important;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  justify-content: space-between;
}
.dash-board > .dash-table {
  width: 100%;
}
.bc-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.bc-summary__head h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}
.bc-summary__legend {
  display: flex;
  align-items: center;
  gap: 28px;
}
.bc-summary__leg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}
.bc-summary__leg .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.bc-summary__leg .dot.ok { background: #4ade80; }
.bc-summary__leg .dot.lost { background: #ff784b; }
.bc-summary__filter {
  position: relative;
}
.bc-summary__range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
}
.bc-summary__range svg {
  flex-shrink: 0;
  color: #111827;
}
.bc-summary__range:hover {
  background: #e5e7eb;
}
.bc-summary__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  z-index: 20;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 148px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  border: 1px solid #f3f4f6;
}
.bc-summary__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
}
.bc-summary__menu button:hover,
.bc-summary__menu button.on {
  background: #f3f4f6;
}
.bc-summary__plot {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 6px;
  flex: 1;
  min-height: 280px;
  align-items: stretch;
}
.bc-summary__y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 30px;
  font-size: 11px;
  color: #a0aec0;
  text-align: end;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bc-summary__canvas {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bc-summary__hgrid {
  position: absolute;
  inset: 6px 0 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}
.bc-summary__hgrid i {
  display: block;
  height: 0;
  border-top: 1px dashed #edf2f7;
}
.bc-summary__chart {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 280px;
  padding: 6px 0 0;
}
.bc-summary__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  position: relative;
  cursor: default;
}
.bc-summary__vline {
  position: absolute;
  top: 6px;
  bottom: 30px;
  left: 50%;
  width: 0;
  border-left: 1px dashed #edf2f7;
  pointer-events: none;
  z-index: 0;
}
.bc-summary__pair {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  gap: 4px;
  box-sizing: border-box;
}
.bc-summary__pair i {
  display: block;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  border-radius: 3px 3px 1px 1px;
  min-height: 8px;
  background: #edf2f7;
  transition: height 0.28s ease;
}
/* Bankco: ONLY peak day colored — never recolor on hover */
.bc-summary__col.peak .bc-summary__pair i.lost { background: #ff784b; }
.bc-summary__col.peak .bc-summary__pair i.ok { background: #4ade80; }
.bc-summary__x {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #718096;
  line-height: 1.2;
  white-space: nowrap;
}
/* Bankco dark tooltip — hover only */
.bc-summary__tip {
  position: absolute;
  bottom: calc(100% - 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #1a202c;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  z-index: 5;
  box-shadow: 0 10px 24px rgba(26, 32, 44, 0.28);
  text-align: start;
}
.bc-summary__tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a202c;
}
.bc-summary__tip-t {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.bc-summary__tip-r {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #e2e8f0;
}
.bc-summary__tip-r:last-child { margin-bottom: 0; }
.bc-summary__tip-r b {
  color: #fff;
  font-weight: 600;
  margin-inline-start: auto;
}
.bc-summary__tip-r .sq {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
  background: #edf2f7;
}
.bc-summary__tip-r .sq.lost { background: #ff784b; }
.bc-summary__tip-r .sq.ok { background: #4ade80; }
.bc-summary__col:hover .bc-summary__tip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1280px) {
  .bc-sum-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
  }
  .bc-summary__legend {
    display: none;
  }
}
@media (max-width: 1100px) {
  .bc-sum-row {
    grid-template-columns: 1fr;
  }
  .bc-summary__legend {
    display: flex;
  }
}

/* Bankco Efficiency — exact source structure */
.bc-eff {
  padding: 0 !important;
  overflow: visible;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bc-eff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.bc-eff__head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}
.bc-eff__filter {
  position: relative;
}
.bc-eff__period {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
}
.bc-eff__period svg {
  color: #111827;
  flex-shrink: 0;
}
.bc-eff__menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 30;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 120px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  border: 1px solid #f3f4f6;
}
.bc-eff__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  font-family: inherit;
}
.bc-eff__menu button:hover,
.bc-eff__menu button.on {
  background: #f3f4f6;
}
.bc-eff__body {
  padding: 12px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bc-eff__row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
  min-width: 0;
}
.bc-eff__pie-wrap {
  position: relative;
  width: 180px;
  height: 168px;
  flex-shrink: 0;
}
.bc-eff__pie-wrap canvas {
  display: block;
  width: 180px !important;
  height: 168px !important;
}
.bc-eff__pie-hole {
  position: absolute;
  z-index: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edf2f7;
  left: calc(50% - 17px);
  top: calc(50% - 17px);
  pointer-events: none;
}
.bc-eff__counting {
  flex: 1;
  min-width: 0;
}
.bc-eff__metric {
  margin-bottom: 24px;
}
.bc-eff__metric:last-child {
  margin-bottom: 0;
}
.bc-eff__amt {
  display: flex;
  align-items: center;
  gap: 2px;
}
.bc-eff__num {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #111827;
}
.bc-eff__num.ok {
  color: #22c55e;
}
.bc-eff__arrow {
  display: inline-grid;
  color: #22c55e;
}
.bc-eff__arrow.down {
  transform: scaleY(-1);
}
.bc-eff__arrow.down path {
  fill: #ef4444;
}
.bc-eff__arrow.muted {
  color: #1a202c;
}
.bc-eff__cap {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  color: #718096;
}
.bc-eff__status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.bc-eff__leg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.bc-eff__leg:last-child {
  margin-bottom: 0;
}
.bc-eff__leg-l {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #718096;
}
.bc-eff__leg-l .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.bc-eff__leg-l .dot.ok { background: #22c55e; }
.bc-eff__leg-l .dot.warn { background: #f8cc4b; }
.bc-eff__leg-l .dot.gray { background: #edf2f7; border: 1px solid #e5e7eb; box-sizing: border-box; }
.bc-eff__leg p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

@media (max-width: 1200px) {
  .bc-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .bc-kpi-grid {
    grid-template-columns: 1fr;
  }
  .bc-earn__value {
    font-size: 26px;
  }
}

.page-head--toolbar {
  margin-bottom: 18px;
  justify-content: flex-end;
}
.page-head--toolbar:not(:has(.ph-actions:not(:empty))) {
  display: none;
  margin: 0;
}
.page-head--toolbar .ph-actions {
  margin-inline-start: auto;
}

.stat-mini .sm,
.stat {
  border-radius: 16px;
  border: 1px solid var(--bgray-100);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.shop-av {
  background: linear-gradient(145deg, #dcfce7, #bbf7d0);
  color: var(--primary-deep);
}


/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(100%);
    width: min(var(--sidebar-w), 86vw);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.08);
  }
  html[dir="rtl"] .sidebar {
    transform: translateX(100%);
  }
  html[dir="ltr"] .sidebar {
    transform: translateX(-100%);
  }
  .shell.drawer-open .sidebar {
    transform: translateX(0);
  }
  .body-wrap,
  .shell.sidebar-collapsed .body-wrap {
    margin-inline-start: 0;
  }
  .header-menu-btn { display: inline-grid; }
  .sidebar .drawer-btn { display: none; }
  .topnav.bc-topnav {
    height: auto;
    min-height: 72px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .bc-topnav__crumb h3 { font-size: 20px; }
  .bc-search {
    order: 3;
    width: 100%;
    max-width: none;
  }
  .bc-search__kbd { display: none; }
  .content { padding: 16px; }
}

/* Defeat legacy topnav media rules from admin.css */
@media (max-width: 900px) {
  .topnav.bc-topnav {
    margin: 0;
    padding: 12px 16px;
    min-height: 72px;
    height: auto;
    border-radius: 0;
  }
  .bc-qa { display: none !important; }
  .bc-topnav__sep { display: none !important; }
  .bc-author__meta { display: none !important; }
  .sidebar .nav-menu {
    width: 100%;
  }
  .shell.sidebar-collapsed .sidebar {
    width: min(var(--sidebar-w), 86vw);
  }
  .shell.sidebar-collapsed .logo-full { display: block; }
  .shell.sidebar-collapsed .logo-short { display: none; }
  .shell.sidebar-collapsed .nav-group__title,
  .shell.sidebar-collapsed .item-text,
  .shell.sidebar-collapsed .item-caret,
  .shell.sidebar-collapsed .badge-num {
    display: initial !important;
  }
  .shell.sidebar-collapsed .item-text,
  .shell.sidebar-collapsed .nav-group__title {
    display: block !important;
  }
  .shell.sidebar-collapsed .item-caret {
    display: inline-grid !important;
  }
  .shell.sidebar-collapsed .badge-num {
    display: inline-grid !important;
  }
  .shell.sidebar-collapsed .nav-item.is-open > .sub-menu {
    display: block !important;
  }
  .shell.sidebar-collapsed .sidebar-body {
    padding: 14px 14px 160px 16px;
  }
  .shell.sidebar-collapsed .nav-item > a,
  .shell.sidebar-collapsed .nav-item__btn {
    justify-content: flex-start;
    padding: 11px 8px;
  }
}

@media (max-width: 640px) {
  .user-chip .meta { display: none; }
  .page-crumb small { display: none; }
  .nav-tools { display: none; }
}

/* ========== Orders = Bankco Transaction list ========== */
.bc-orders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bc-orders__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bc-orders__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f3f4f6;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bc-orders__stat:hover,
.bc-orders__stat.on {
  border-color: #22c55e;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.08);
}
.bc-orders__stat span {
  font-size: 13px;
  font-weight: 500;
  color: #718096;
}
.bc-orders__stat b {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}
.bc-orders__stat.ok.on { border-color: #22c55e; }
.bc-orders__stat.warn.on { border-color: #f8cc4b; }
.bc-orders__stat.bad.on { border-color: #ff784b; }

.bc-orders__card {
  padding: 20px 24px !important;
}
.bc-orders__toolbar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  height: 56px;
  margin-bottom: 20px;
}
.bc-orders__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid transparent;
  color: #1a202c;
  min-width: 0;
}
.bc-orders__search:focus-within {
  border-color: #22c55e;
  background: #fff;
}
.bc-orders__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  font-family: inherit;
}
.bc-orders__search input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}
.bc-orders__filter-btn {
  flex: 0 0 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f7fafc;
  color: #22c55e;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
}
.bc-orders__filter-btn:hover {
  background: #f0fdf4;
}

.bc-orders__filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  align-items: end;
}
.bc-orders__filters.is-collapsed {
  display: none;
}
.bc-orders__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

/* Bankco custom dropdown */
.bc-dd {
  position: relative;
  height: 56px;
  width: 100%;
}
.bc-dd__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  font-family: inherit;
  cursor: pointer;
  text-align: start;
}
.bc-dd.is-open .bc-dd__btn {
  box-shadow: inset 0 0 0 1px #22c55e;
  background: #fff;
}
.bc-dd__btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-dd__btn span.is-ph {
  color: #a0aec0;
}
.bc-dd__btn svg {
  flex-shrink: 0;
}
.bc-dd__menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 40;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14);
  border: 1px solid #f3f4f6;
}
.bc-dd__menu li { margin: 0; }
.bc-dd__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
}
.bc-dd__menu button:hover,
.bc-dd__menu button.on {
  background: #f7fafc;
  color: #16a34a;
}
.bc-dd__menu--date {
  padding: 14px;
  min-width: 260px;
}
.bc-dd__dates {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bc-dd__dates label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #718096 !important;
}
.bc-dd__dates input {
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
}
.bc-dd__date-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.bc-dd__date-actions button {
  width: auto;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: #f3f4f6;
  color: #111827;
}
.bc-dd__date-actions button.ok {
  background: #22c55e;
  color: #fff;
}
.bc-dd__date-actions button.ok:hover {
  background: #16a34a;
  color: #fff;
}
.bc-orders__actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bc-orders__total {
  margin-inline-start: auto;
  font-size: 13px;
  color: #718096;
}

.bc-orders__table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.bc-orders__table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  min-width: 0;
}
.bc-orders__table col.c-user { width: 16%; }
.bc-orders__table col.c-ord { width: 13%; }
.bc-orders__table col.c-svc { width: 12%; }
.bc-orders__table col.c-shop { width: 11%; }
.bc-orders__table col.c-amt { width: 10%; }
.bc-orders__table col.c-st { width: 9%; }
.bc-orders__table col.c-time { width: 10%; }
.bc-orders__table col.c-act { width: 104px; }
.bc-orders__table th,
.bc-orders__table td {
  padding: 20px 8px;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}
.bc-orders__table th {
  font-size: 13px;
  font-weight: 500;
  color: #718096;
  white-space: nowrap;
  background: #fff;
}
.bc-orders__table td {
  font-size: 14px;
  color: #111827;
}
.bc-orders__table tbody tr:hover td {
  background: #f9fafb;
}
.bc-orders__cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}
.bc-orders__cell > span,
.bc-orders__cell > b,
.bc-orders__cell > strong {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-orders__cell small {
  display: block;
  width: 100%;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 号码/订单号/ID：保持 LTR 读序，但与列 start 边对齐（RTL 下贴右） */
.bc-orders__table .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
html[dir="rtl"] .bc-orders__table .ltr {
  text-align: right;
}
.bc-orders__user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.bc-orders__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 14px;
}
.bc-orders__user-t {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.bc-orders__user-t strong,
.bc-orders__user-t small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-orders__user-t strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.bc-orders__user-t small {
  font-size: 12px;
  color: #9ca3af;
}
.bc-orders__amt {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.bc-orders__time {
  display: block;
  width: 100%;
  font-size: 13px;
  color: #4a5568;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-orders__badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #edf2f7;
  color: #4a5568;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-orders__badge.ok,
.bc-orders__badge.success {
  background: #dcfce7;
  color: #15803d;
}
.bc-orders__badge.warn,
.bc-orders__badge.pending {
  background: #fef3c7;
  color: #b45309;
}
.bc-orders__badge.err,
.bc-orders__badge.failed,
.bc-orders__badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

/* 操作列：每颗按钮按自身文字宽度，居中，不互相拉齐 */
.bc-orders__act-h,
.bc-orders__act-cell {
  width: 104px;
  max-width: 104px;
  text-align: center !important;
  overflow: hidden;
  padding-inline: 4px !important;
  white-space: nowrap;
}
.bc-orders__acts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.bc-orders__acts form {
  margin: 0;
  width: auto;
  display: flex;
  justify-content: center;
}
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  transition: background 0.15s, color 0.15s;
}
.bc-btn--primary {
  background: #22c55e;
  color: #fff;
}
.bc-btn--primary:hover {
  background: #16a34a;
}
.bc-btn--ghost {
  background: #f7fafc;
  color: #111827;
  border: 1px solid #e5e7eb;
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
}
.bc-btn--ghost:hover {
  border-color: #22c55e;
  color: #16a34a;
  background: #f0fdf4;
}
.bc-btn--danger {
  background: #fff;
  color: #ef4444;
  border: 1px solid #fecaca;
}
.bc-btn--danger:hover {
  background: #fef2f2;
}

.bc-orders__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 20px;
}
.bc-orders__pager a,
.bc-orders__pager .off,
.bc-orders__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.bc-orders__pager a {
  background: #f7fafc;
  color: #111827;
}
.bc-orders__pager a:hover {
  background: #dcfce7;
  color: #15803d;
}
.bc-orders__pager .off {
  color: #cbd5e0;
}
.bc-orders__page {
  color: #111827;
}

@media (max-width: 1100px) {
  .bc-orders__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bc-orders__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .bc-orders__stats {
    grid-template-columns: 1fr 1fr;
  }
  .bc-orders__toolbar {
    height: auto;
    flex-direction: column;
  }
  .bc-orders__filter-btn {
    width: 100%;
    height: 48px;
    flex: none;
  }
  .bc-orders__filters {
    grid-template-columns: 1fr;
  }
}

/* ========== Users = Bankco users list ========== */
.bc-users {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bc-users__searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bc-users__searchbar .bc-orders__search {
  flex: 1;
  min-width: 200px;
  height: 56px;
}
.bc-users__search-btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: #4a5568;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.bc-users__search-btn:hover {
  background: #2d3748;
}
.bc-users__searchbar .bc-orders__total {
  margin-inline-start: auto;
}

.bc-users__table col.c-user { width: 22%; }
.bc-users__table col.c-mobile { width: 12%; }
.bc-users__table col.c-openid { width: 16%; }
.bc-users__table col.c-ord { width: 8%; }
.bc-users__table col.c-amt { width: 12%; }
.bc-users__table col.c-lang { width: 8%; }
.bc-users__table col.c-time { width: 12%; }
.bc-users__table col.c-act { width: 110px; }

.bc-users__user {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.bc-users__av {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 16px;
}
.bc-users__av img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #f3f4f6;
}
.bc-users__av span {
  z-index: 0;
}
.bc-users__user-t {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.bc-users__user-t strong,
.bc-users__user-t small {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bc-users__user-t strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.bc-users__user-t small {
  font-size: 12px;
  color: #9ca3af;
}
.bc-users__openid {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  color: #4a5568;
}
.bc-users__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f7fafc;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  direction: ltr;
}
.bc-users__count:hover {
  border-color: #22c55e;
  color: #16a34a;
  background: #f0fdf4;
}
.bc-users__zero {
  color: #9ca3af;
  font-size: 13px;
}
.bc-users__act-cell {
  width: 110px;
  max-width: 110px;
  text-align: center !important;
  overflow: hidden;
  padding-inline: 4px !important;
  white-space: nowrap;
}
.bc-users__msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.bc-users__msg-btn:hover {
  background: #16a34a;
}

/* users modal */
.bc-users__modal.modal-card-xl,
.modal-card.bc-users__modal {
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
}
.bc-users__modal .modal-body {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.bc-users__modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.bc-users__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f7fafc;
  font-size: 13px;
  color: #4a5568;
  border: 1px solid #e5e7eb;
}
.bc-users__chip b {
  font-variant-numeric: tabular-nums;
  color: #111827;
}
.bc-users__chip.ok {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}
.bc-users__chip.warn {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}
.bc-users__chip.bad {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}
.user-orders-table-wrap {
  max-height: 52vh;
  overflow: auto;
}
.bc-users__modal-table th,
.bc-users__modal-table td {
  white-space: nowrap;
  font-size: 12.5px;
  padding: 12px 8px;
}
.bc-users__loading {
  text-align: center !important;
  padding: 36px 16px !important;
  color: #718096;
  font-size: 14px;
}
.bc-users__loading.is-err {
  color: #b91c1c;
}
.bc-users__modal-foot {
  padding: 0 22px 20px;
}
.bc-users__modal-table .bc-btn {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

@media (max-width: 700px) {
  .bc-users__searchbar .bc-orders__total {
    margin-inline-start: 0;
    width: 100%;
  }
  .bc-users__search-btn {
    width: 100%;
  }
}

/* ========== Agents / 推广赚钱 ========== */
.bc-agents {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bc-agents__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bc-agents__tab {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bc-agents__tab:hover {
  border-color: #22c55e;
  color: #16a34a;
}
.bc-agents__tab.on {
  background: #dcfce7;
  border-color: #22c55e;
  color: #15803d;
}
.bc-agents__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.bc-agents__section-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.bc-agents__config {
  max-width: 820px;
}
.bc-agents__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.bc-agents__form--stack {
  grid-template-columns: 1fr;
}
.bc-agents__form-title {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.bc-agents__field {
  min-width: 0;
}
.bc-agents__field--full {
  grid-column: 1 / -1;
}
.bc-agents__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.bc-agents__field input[type="text"],
.bc-agents__field input[type="number"],
.bc-agents__field input:not([type]),
.bc-agents__field input.ltr {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  box-sizing: border-box;
}
.bc-agents__field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #22c55e;
  background: #fff;
}
.bc-agents__field input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px dashed #e5e7eb;
  font-family: inherit;
  box-sizing: border-box;
}
.bc-agents__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #718096;
  line-height: 1.5;
}
.bc-agents__note {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  color: #166534;
  line-height: 1.6;
}
.bc-agents__code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}
.bc-agents__table col.c-user { width: 22%; }
.bc-agents__table col.c-code { width: 12%; }
.bc-agents__table col.c-inv { width: 10%; }
.bc-agents__table col.c-comm { width: 20%; }
.bc-agents__table col.c-rate { width: 8%; }
.bc-agents__table col.c-st { width: 10%; }
.bc-agents__table col.c-act { width: 88px; }

.bc-agents__wd-table col.c-id { width: 7%; }
.bc-agents__wd-table col.c-user { width: 18%; }
.bc-agents__wd-table col.c-code { width: 10%; }
.bc-agents__wd-table col.c-amt { width: 10%; }
.bc-agents__wd-table col.c-st { width: 10%; }
.bc-agents__wd-table col.c-pay { width: 16%; }
.bc-agents__wd-table col.c-time { width: 12%; }
.bc-agents__wd-table col.c-act { width: 112px; }

.bc-agents__comm-table col.c-id { width: 8%; }
.bc-agents__comm-table col.c-agent { width: 16%; }
.bc-agents__comm-table col.c-ord { width: 18%; }
.bc-agents__comm-table col.c-base { width: 10%; }
.bc-agents__comm-table col.c-rate { width: 8%; }
.bc-agents__comm-table col.c-amt { width: 12%; }
.bc-agents__comm-table col.c-st { width: 10%; }
.bc-agents__comm-table col.c-act { width: 88px; }

.bc-agents__act-cell {
  width: 112px;
  max-width: 112px;
  text-align: center !important;
  overflow: hidden;
  padding-inline: 4px !important;
  white-space: nowrap;
  vertical-align: middle;
}
.bc-agents__act-cell form {
  margin: 0;
  display: flex;
  justify-content: center;
}
.bc-agents__act-cell .bc-btn {
  width: auto;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}
.bc-agents__wd-table .bc-agents__act-cell {
  width: 112px;
  max-width: 112px;
}
.bc-agents__wd-table .bc-orders__acts {
  align-items: center;
}
.bc-agents__wd-table .bc-orders__acts .bc-btn {
  width: auto;
  min-width: 0;
  padding: 0 8px;
  font-size: 11px;
}

/* poster editor */
.pe-panel { margin-bottom: 0; }
.pe-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 0 0;
}
.pe-thumbs__empty {
  color: #718096;
  font-size: 13px;
  padding: 8px 0;
}
.pe-thumb {
  width: 88px;
  text-decoration: none;
  color: inherit;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pe-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f7fafc;
}
.pe-thumb span {
  display: block;
  font-size: 11px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #718096;
}
.pe-thumb.on {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.pe-thumb.off { opacity: 0.5; }
.pe-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}
.pe-preview-wrap { position: sticky; top: 12px; }
.pe-canvas {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background:
    linear-gradient(45deg, #e8ecf2 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(-45deg, #e8ecf2 25%, transparent 25%) 0 0 / 14px 14px,
    #f4f6fa;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  touch-action: none;
}
.pe-canvas__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.pe-canvas__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #718096;
  font-size: 14px;
  pointer-events: none;
}
.pe-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #718096;
  text-align: center;
}
.pe-qr {
  position: absolute;
  aspect-ratio: 1;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #22c55e;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: grab;
  z-index: 3;
}
.pe-qr:active { cursor: grabbing; }
.pe-qr__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  pointer-events: none;
}
.pe-qr__handle {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 2px solid #fff;
  border-radius: 4px;
  cursor: nwse-resize;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.pe-side { min-width: 0; }
.pe-controls {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.pe-control {
  display: grid;
  grid-template-columns: 36px 1fr 64px 14px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #718096;
}
.pe-control input[type="range"] { width: 100%; accent-color: #22c55e; }
.pe-num {
  width: 64px !important;
  height: 36px !important;
  padding: 0 8px !important;
  border-radius: 8px;
  border: 0;
  background: #f7fafc;
  font-family: inherit;
  box-sizing: border-box;
}
.pe-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.pe-extra {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 860px) {
  .pe-layout { grid-template-columns: 1fr; }
  .bc-agents__form { grid-template-columns: 1fr; }
}

/* ========== Amounts / سومما ========== */
.bc-amounts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bc-amounts__services .bc-agents__tab {
  gap: 8px;
}
.bc-amounts__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4a5568;
  font-size: 12px;
  font-weight: 700;
}
.bc-agents__tab.on .bc-amounts__n {
  background: #fff;
  color: #15803d;
}
.bc-amounts__carriers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  direction: ltr;
}
.bc-amounts__carrier {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bc-amounts__carrier:hover {
  border-color: #22c55e;
  color: #16a34a;
}
.bc-amounts__carrier.on {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.bc-amounts__note {
  margin: 0 0 18px;
  font-size: 13px;
  color: #718096;
  line-height: 1.55;
}
.bc-amounts__note strong {
  color: #15803d;
}
.bc-amounts__board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
  direction: ltr;
}
.bc-amounts__empty {
  grid-column: 1 / -1;
}
.bc-amounts__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  overflow: hidden;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.bc-amounts__tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.bc-amounts__card:hover {
  transform: translateY(-2px);
  border-color: #bbf7d0;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.1);
}
.bc-amounts__card.is-off {
  opacity: 0.45;
}
.bc-amounts__face {
  flex: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
  color: #111827;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 28px 10px 18px;
  cursor: pointer;
  width: 100%;
  min-height: 112px;
  font-family: inherit;
}
.bc-amounts__card--rule .bc-amounts__face {
  font-size: 18px;
  letter-spacing: 0;
  cursor: default;
  color: #15803d;
  font-weight: 700;
}
.bc-amounts__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7fafc;
  padding: 12px 14px;
  font-size: 13px;
  color: #718096;
  min-height: 48px;
}
.bc-amounts__foot b {
  color: #ef4444;
  font-size: 17px;
  font-weight: 700;
}
.bc-amounts__foot form {
  margin: 0;
  margin-inline-start: auto;
}
.bc-amounts__foot .toggle {
  width: 36px;
  height: 20px;
}
.bc-amounts__foot .toggle.on {
  background: #22c55e;
}
.bc-amounts__foot .toggle::after {
  width: 14px;
  height: 14px;
  top: 3px;
}
.bc-amounts__foot .toggle.on::after {
  inset-inline-start: 18px;
}

.bc-amounts__table col.c-svc { width: 22%; }
.bc-amounts__table col.c-amt { width: 14%; }
.bc-amounts__table col.c-fee { width: 14%; }
.bc-amounts__table col.c-sort { width: 10%; }
.bc-amounts__table col.c-st { width: 12%; }
.bc-amounts__table col.c-act { width: 140px; }

.bc-amounts__act-cell {
  width: 140px;
  max-width: 140px;
  overflow: hidden;
  padding-inline: 6px !important;
  white-space: nowrap;
  vertical-align: middle;
}
.bc-amounts__acts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.bc-amounts__acts form { margin: 0; }
.bc-amounts__acts .bc-btn {
  width: auto;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}
.bc-amounts__acts .toggle.on {
  background: #22c55e;
}

.bc-amounts__modal .bc-agents__form {
  margin-bottom: 8px;
}
.bc-amounts__modal select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  box-sizing: border-box;
}
.bc-amounts__modal select:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #22c55e;
  background: #fff;
}
.bc-amounts__modal .modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
}

@media (max-width: 700px) {
  .bc-amounts__board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========== Services / كەسىپ ========== */
.bc-services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bc-services__top {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.bc-services__city-table th,
.bc-services__city-table td {
  padding: 14px 10px;
}
.bc-services__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.bc-services__legend p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 12px;
  color: #166534;
  line-height: 1.5;
}
.bc-services__leg {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}
.bc-services__leg.hidden {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
.bc-services__leg.open {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}
.bc-services__leg.dev {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}
.bc-services__leg.optimize {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}
.bc-services__matrix th,
.bc-services__matrix td {
  padding: 12px 8px;
  white-space: nowrap;
}
.bc-services__matrix th:first-child,
.bc-services__matrix td:first-child {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  background: #fff;
  min-width: 140px;
  white-space: normal;
}
.bc-services__matrix tbody tr:hover td:first-child {
  background: #f9fafb;
}
.bc-services__status-form {
  margin: 0;
  display: inline-flex;
}
.bc-services__select {
  min-width: 7.5em;
  max-width: 9.5em;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #111827;
  cursor: pointer;
}
.bc-services__select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}
.bc-services__select--hidden {
  border-color: #e5e7eb;
  color: #6b7280;
  background: #f7fafc;
}
.bc-services__select--open {
  border-color: #86efac;
  color: #15803d;
  background: #f0fdf4;
}
.bc-services__select--dev {
  border-color: #fcd34d;
  color: #b45309;
  background: #fffbeb;
}
.bc-services__select--optimize {
  border-color: #7dd3fc;
  color: #0369a1;
  background: #f0f9ff;
}

@media (max-width: 900px) {
  .bc-services__top {
    grid-template-columns: 1fr;
  }
}

/* ========== Help / 帮助中心 ========== */
.bc-help {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bc-help__table col.c-sort { width: 8%; }
.bc-help__table col.c-slug { width: 14%; }
.bc-help__table col.c-title { width: 42%; }
.bc-help__table col.c-st { width: 10%; }
.bc-help__table col.c-act { width: 112px; }

.bc-help__act-cell {
  width: 112px;
  max-width: 112px;
  text-align: center !important;
  overflow: hidden;
  padding-inline: 4px !important;
  white-space: nowrap;
  vertical-align: middle;
}
.bc-help__act-cell .bc-orders__acts {
  align-items: center;
}
.bc-help__act-cell .bc-btn {
  width: auto;
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.bc-help__modal .bc-agents__form {
  margin-bottom: 8px;
}
.bc-help__modal textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #f7fafc;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  resize: vertical;
  box-sizing: border-box;
}
.bc-help__modal textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px #22c55e;
  background: #fff;
}
.bc-help__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}
.bc-help__check input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
}
.bc-help__modal .modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* ========== Config = Bankco settings ========== */
.bc-settings {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  overflow: hidden;
  min-height: calc(100vh - 200px);
}
.bc-settings__aside {
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid #e8edf5;
  background: #fff;
  padding: 20px 14px;
}
.bc-settings__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.bc-settings__tab {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  color: inherit;
  transition: background 0.15s;
}
.bc-settings__tab:hover {
  background: #f7fafc;
}
.bc-settings__tab.active {
  background: transparent;
}
.bc-settings__ico {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #edf2f7;
  color: #4a5568;
  transition: background 0.15s, color 0.15s;
}
.bc-settings__tab.active .bc-settings__ico {
  background: #22c55e;
  color: #fff;
}
.bc-settings__tab-t {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}
.bc-settings__tab-t strong {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}
.bc-settings__tab-t small {
  font-size: 12px;
  font-weight: 500;
  color: #718096;
  line-height: 1.4;
}

.bc-settings__promo {
  margin-top: 20px;
  padding: 18px 16px;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid #eef2f7;
}
.bc-settings__promo-t b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.bc-settings__promo-t p {
  margin: 0 0 14px;
  font-size: 12px;
  color: #718096;
  line-height: 1.5;
}
.bc-settings__promo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.bc-settings__promo-btn:hover {
  background: #16a34a;
  color: #fff;
}
.bc-settings__promo-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}

.bc-settings__main {
  min-width: 0;
  padding: 28px 36px 36px;
}
.bc-settings__head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf5;
}
.bc-settings__head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.bc-settings__head p {
  margin: 8px 0 0;
  font-size: 14px;
  color: #718096;
}
.bc-settings__sec-title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}
.bc-settings__sec-title.is-next {
  margin-top: 32px;
}

.bc-settings .cfg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-bottom: 8px;
}
.bc-settings .cfg-grid__cell--full {
  grid-column: 1 / -1;
}
.bc-settings .cfg-field {
  padding: 0;
}
.bc-settings .cfg-field__head {
  margin-bottom: 8px;
}
.bc-settings .cfg-field__label {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #718096;
}
.bc-settings .cfg-opt {
  display: inline;
  margin-inline-start: 4px;
  padding: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 500;
}
.bc-settings .cfg-input,
.bc-settings .cfg-field textarea,
.bc-settings .cfg-field select,
.bc-settings .cfg-field input[type="text"],
.bc-settings .cfg-field input[type="url"],
.bc-settings .cfg-field input[type="tel"],
.bc-settings .cfg-field input[type="number"],
.bc-settings .cfg-field input[type="password"] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f7fafc;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.15s, background 0.15s;
}
.bc-settings .cfg-field textarea {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}
.bc-settings .cfg-field select {
  height: 56px;
}
.bc-settings .cfg-input:focus,
.bc-settings .cfg-field textarea:focus,
.bc-settings .cfg-field select:focus,
.bc-settings .cfg-field input:focus {
  background: #fff;
  box-shadow: inset 0 0 0 1px #22c55e;
}
.bc-settings .cfg-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.45;
}
.bc-settings .cfg-image {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bc-settings .cfg-share-preview {
  max-width: 240px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.bc-settings .cfg-share-preview.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  aspect-ratio: 5 / 4;
}
.bc-settings .cfg-share-preview__empty {
  font-size: 13px;
  color: #9ca3af;
}
.bc-settings .cfg-share-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.bc-settings .cfg-image__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.bc-settings .cfg-image__pick {
  cursor: pointer;
  margin: 0;
}
.bc-settings .cfg-image__clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  margin: 0;
}
.bc-settings .cfg-image__clear input {
  width: 16px;
  height: 16px;
  accent-color: #22c55e;
}
.bc-settings .cfg-field--toggle {
  min-height: 56px;
  justify-content: flex-end;
  padding-bottom: 8px;
}
.bc-settings .settings-switch .toggle.on,
.bc-settings .settings-switch input:checked + .toggle {
  background: #22c55e;
}
.bc-settings .toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
}
.bc-settings .secret-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bc-settings .secret-row .cfg-input {
  flex: 1;
  min-width: 0;
}

.bc-settings__tips {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.bc-settings__tips h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}
.bc-settings .settings-tips {
  margin: 0;
  padding: 0 0 0 18px;
  color: #166534;
  font-size: 13px;
  line-height: 1.65;
}
.bc-settings .settings-tips code {
  padding: 1px 6px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #bbf7d0;
  font-size: 12px;
}

.bc-settings__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.bc-settings__actions .bc-btn {
  width: auto;
  height: 48px;
  padding: 0 18px;
  font-size: 14px;
}
.bc-settings__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.bc-settings__save:hover {
  background: #16a34a;
}

.bc-settings__status .cfg-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.bc-settings .cfg-stat {
  border: 1px solid #eef2f7;
  background: #f7fafc;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 6px;
  min-height: 108px;
  align-content: start;
}
.bc-settings .cfg-stat__k {
  font-size: 12px;
  font-weight: 600;
  color: #718096;
}
.bc-settings .cfg-stat__v {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}
.bc-settings .cfg-stat__a {
  font-size: 12px;
  font-weight: 600;
  color: #16a34a;
}
.bc-settings .cfg-callout {
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  line-height: 1.55;
}

.bc-settings .carrier-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
  direction: ltr;
}
.bc-settings .carrier-card {
  background: #f7fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}
.bc-settings .carrier-card h4 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #15803d;
}

@media (max-width: 1100px) {
  .bc-settings .carrier-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .bc-settings {
    grid-template-columns: 1fr;
  }
  .bc-settings__aside {
    border-inline-end: 0;
    border-bottom: 1px solid #e8edf5;
  }
  .bc-settings__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bc-settings__main {
    padding: 22px 18px 28px;
  }
  .bc-settings .cfg-grid {
    grid-template-columns: 1fr;
  }
  .bc-settings .carrier-row {
    grid-template-columns: 1fr;
  }
}
