/* AppMini V2 replica skin: dimensions and hierarchy follow appmini-v2-replica.html. */
:root {
  --replica-blue: #0a66f2;
  --replica-text: #111827;
  --replica-muted: #6b7280;
  --replica-line: #d9dde5;
  --replica-green: #129447;
  --replica-orange: #df6800;
  --replica-red: #c91515;
}

body { background: #f3f4f6; }
.replica-app { min-height: 100vh; padding-bottom: 62px; background: #fff; }
.replica-tg-header { height: 64px; display: grid; grid-template-columns: 80px 1fr; align-items: center; padding: 0 12px; border-bottom: 1px solid #eef0f3; background: #fff; position: relative; z-index: 5; }
.replica-tg-close { justify-self: start; color: var(--replica-blue); font-size: 15px; }
.replica-tg-title { text-align: center; line-height: 1.15; padding-top: 2px; }
.replica-tg-title strong { display: block; color: var(--replica-text); font-size: 16px; font-weight: 700; }
.replica-tg-title span { color: #8b8f97; font-size: 12px; }
.replica-tg-menu { display: none; }
#view.replica-viewport { width: min(430px, 100%); max-width: 430px; min-height: calc(100vh - 64px); margin: 0 auto; padding: 0; background: #fff; }
.replica-page { min-height: calc(100vh - 64px); padding: 8px 14px 78px; overflow-x: hidden; }
.replica-page[hidden] { display: none; }
.replica-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.replica-section-head h1 { margin: 0; color: var(--replica-text); font-size: 22px; line-height: 1.2; letter-spacing: -.3px; }
.replica-updated { display: flex; align-items: center; gap: 5px; color: #90959d; font-size: 11px; white-space: nowrap; }
.replica-refresh { width: 20px; min-height: 20px; padding: 0; border: 0; background: transparent; color: #68707b; font-size: 16px; }

.replica-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.replica-metric { min-width: 0; height: 88px; padding: 7px 3px; border: 1px solid var(--replica-line); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.replica-metric .icon-wrap { display: none; }
.replica-metric:nth-child(1) .icon-wrap { color: #6d4df0; background: #eeeaff; }.replica-metric:nth-child(2) .icon-wrap { color: #d96a00; background: #fff0df; }.replica-metric:nth-child(3) .icon-wrap { color: #087eaf; background: #e1f6ff; }.replica-metric:nth-child(4) .icon-wrap { color: #0a9a43; background: #ddf7e8; }
.replica-metric .label { overflow: hidden; color: #3f4650; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.replica-metric .value { width: 100%; overflow: visible; color: var(--replica-text); font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.55px; line-height: 1.1; text-align: center; white-space: nowrap; }
.replica-search-row { display: grid; grid-template-columns: 1fr 40px; gap: 8px; margin-bottom: 9px; }
.replica-search-box { height: 42px; padding: 0 10px; border: 1px solid var(--replica-line); border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 8px; color: #717782; }
.replica-search-box > span { flex: 0 0 auto; font-size: 18px; }
.replica-search-box input { min-width: 0; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; color: #1f2937; font-size: 13px; }
.replica-search-box input::placeholder { color: #a0a5ae; }
.replica-sort { min-height: 42px; padding: 0; border: 1px solid var(--replica-line); border-radius: 8px; background: #fff; color: #4f5865; font-size: 20px; }
.replica-sort.descending .replica-icon { transform: rotate(180deg); }
.replica-filter-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 9px; }
.replica-filter { min-height: 32px; padding: 0 4px; border: 1px solid var(--replica-line); border-radius: 6px; background: #fff; color: #343b46; font-size: 12px; white-space: nowrap; }
.replica-filter.active { border-color: var(--replica-blue); background: var(--replica-blue); color: #fff; font-weight: 700; }
.replica-count { min-width: 22px; height: 18px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.replica-count.red { background: #e72a2a; }.replica-count.orange { background: #ff7900; }.replica-count.green { background: #109848; }

.replica-agent-card { margin-bottom: 10px; overflow: hidden; border: 1px solid #dcdfe5; border-radius: 9px; background: #fff; }
.replica-agent-top { min-height: 43px; padding: 0 11px; display: flex; align-items: center; gap: 8px; }
.replica-avatar { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 7px; background: linear-gradient(135deg,#a76ef7,#7153ea); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.replica-agent-name { overflow: hidden; color: var(--replica-text); font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.replica-group-badge { padding: 3px 6px; border-radius: 5px; background: #f1ebff; color: #7452e7; font-size: 11px; white-space: nowrap; }
.replica-agent-status { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; }.replica-agent-status.normal { color: var(--replica-green); }.replica-agent-status.pending { color: var(--replica-orange); font-weight:800; }.replica-agent-status.overdue { color: var(--replica-red); font-weight:800; }
.replica-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.replica-agent-body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 8px; padding: 0 11px 8px; }
.replica-money-box, .replica-bank-list { min-height: 72px; border: 1px solid #e1e4e9; border-radius: 7px; }
.replica-money-box { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 9px; padding: 7px 8px; }.replica-money-item.full { grid-column: 1 / -1; }.replica-money-item span { display: block; margin-bottom: 3px; color: #737983; font-size: 10px; white-space: nowrap; }.replica-money-item strong { display: block; overflow: hidden; color: var(--replica-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.replica-money-item strong.green { color: var(--replica-green); }.replica-money-item strong.orange { color: var(--replica-orange); }.replica-money-item strong.red { color: var(--replica-red); }
.replica-bank-row { height: 35px; padding: 0 7px; display: flex; align-items: center; gap: 7px; }.replica-bank-row + .replica-bank-row { border-top: 1px solid #e3e6ea; }.replica-bank-text { min-width: 0; line-height: 1.15; }.replica-bank-text strong { display: block; overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }.replica-bank-text span { display: block; color: #3f4650; font-size: 10px; white-space: nowrap; }
.replica-bank-logo { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }.replica-bank-logo.small { width: 26px; height: 26px; flex-basis: 26px; }.replica-bank-logo.large { width: 49px; height: 49px; flex-basis: 49px; }.replica-bank-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.replica-agent-foot { min-height: 46px; padding: 6px 11px; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: center; gap: 10px; }.replica-foot-cell { min-width: 0; }.replica-foot-cell span { display: block; margin-bottom: 2px; color: #737983; font-size: 10px; }.replica-foot-cell strong { display: block; overflow: hidden; color: var(--replica-text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.replica-detail-link { color: #535b66; font-size: 10px; white-space: nowrap; }

.replica-order-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }.replica-order-stat { height: 62px; border: 1px solid var(--replica-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; }.replica-order-stat .big-icon { font-size: 25px; }.replica-order-stat span { display: block; margin-bottom: 2px; color: #3f4650; font-size: 12px; }.replica-order-stat strong { display: block; font-size: 14px; }.replica-order-stat.processing .big-icon { color: var(--replica-orange); }.replica-order-stat.timeout .big-icon { color: var(--replica-red); }.replica-order-stat.unsent .big-icon { color: #586271; }
.replica-order-card { margin-bottom: 10px; padding: 10px 11px; border: 1px solid #d9dde4; border-radius: 10px; background: #fff; }.replica-order-card.overdue { border-color: #ff5b5b; background: linear-gradient(180deg,#fff5f5,#fffafa); }.replica-order-line { min-height: 25px; display: grid; grid-template-columns: 68px 1fr auto; gap: 6px; align-items: center; font-size: 12px; }.replica-order-label { color: #3f4650; }.replica-order-value { min-width: 0; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.replica-order-action { color: var(--replica-blue); font-size: 12px; font-weight: 650; white-space: nowrap; }.replica-order-copy { min-height: 20px; padding: 2px; border: 0; background: transparent; color: #68717c; font-size: 14px; }.replica-amount-red { color: var(--replica-red); font-weight: 700; }.replica-timeout-chip { padding: 4px 6px; border-radius: 4px; background: #ffeaea; color: var(--replica-red); font-size: 12px; font-weight: 700; }.replica-order-buttons { display: grid; grid-template-columns: 1.15fr 1.1fr 1.1fr; gap: 7px; margin-top: 8px; }.replica-order-btn { min-height: 31px; padding: 0 4px; border-radius: 6px; background: #fff; font-size: 11px; }.replica-order-btn.copy { border-color: #8d96a1; color: #4c5662; }.replica-order-btn.warn { border-color: var(--replica-orange); color: var(--replica-orange); }.replica-order-btn.error { border-color: var(--replica-red); color: var(--replica-red); }

.replica-agent-select { position: relative; height: 44px; margin-bottom: 11px; padding: 0 10px; border: 1px solid var(--replica-line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: space-between; color: #4f5660; }.replica-agent-select .left { display: flex; align-items: center; gap: 8px; color: #6b7280; font-size: 13px; }.replica-agent-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.replica-notice { margin-bottom: 16px; padding: 9px 11px; border: 1px solid #ffc270; border-radius: 9px; background: #fff9ed; color: #b45200; font-size: 12px; line-height: 1.45; }.replica-sub-title { margin: 0 0 7px; color: var(--replica-text); font-size: 18px; font-weight: 800; }.replica-bank-card { margin-bottom: 12px; overflow: hidden; border: 1.5px solid #d9dde3; border-radius: 10px; background: #fff; }.replica-bank-card.current { border-color: #23a65d; background: linear-gradient(180deg,#f2fff7,#fff); }.replica-bank-card.available { border-color: #1c68ec; background: linear-gradient(180deg,#f3f7ff,#fff); }.replica-bank-card.frozen { background: linear-gradient(180deg,#fafafa,#fff); }.replica-bank-card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 14px 10px; }.replica-bank-card-title strong { display: block; margin-bottom: 4px; font-size: 14px; }.replica-bank-card-title span { display: block; margin-bottom: 5px; color: #525a65; font-size: 12px; }.replica-pp-badge { width: max-content; padding: 3px 7px; border: 1px solid #c7ead6; border-radius: 5px; background: #e6f5ec; color: #26784a; font-size: 11px; }.replica-bank-card.frozen .replica-pp-badge { border-color: #e1e4e7; background: #f1f3f5; color: #6b7280; }.replica-state-badge { height: 29px; padding: 0 9px; border-radius: 6px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; white-space: nowrap; }.replica-state-current { background: #dff5e7; color: #0f8b43; }.replica-state-frozen { background: #eceff2; color: #68707b; }.replica-bank-card-stats { padding: 10px 15px; border-top: 1px solid rgba(160,170,180,.35); display: grid; grid-template-columns: 1fr 1fr; }.replica-bank-card-stats > div + div { padding-left: 28px; border-left: 1px solid #dde1e6; }.replica-bank-card-stats span { display: block; margin-bottom: 6px; color: #6e7580; font-size: 11px; }.replica-bank-card-stats strong { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; }.replica-frozen-tip { margin: -4px 15px 10px; color: #8b919a; font-size: 10px; }
.replica-switch-action { width: calc(100% - 28px); min-height: 39px; margin: 0 14px 13px; border: 0; border-radius: 6px; background: linear-gradient(180deg,#126ff5,#075bdf); color: #fff; font-weight: 700; }
.replica-merchant-payment { margin: 0 0 16px; overflow: hidden; border: 1px solid #d6e5f7; border-radius: 12px; background: linear-gradient(135deg,#f7fbff 0%,#fff 72%); box-shadow: 0 4px 12px rgba(32,92,155,.05); }
.replica-merchant-payment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 13px 11px; }
.replica-merchant-payment-head > div { display: flex; min-width: 0; gap: 10px; }
.replica-merchant-payment-icon { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e2f0ff; color: #1769aa; font-size: 17px; font-weight: 800; }
.replica-merchant-payment h2 { margin: 0 0 3px; color: #25364a; font-size: 14px; font-weight: 800; }
.replica-merchant-payment p { margin: 0; color: #687789; font-size: 11px; line-height: 1.45; }
.replica-merchant-payment-unknown { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #e6d5ac; border-radius: 999px; background: #fff9ed; color: #a06700; font-size: 10px; font-weight: 700; white-space: nowrap; }
.replica-merchant-payment-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-top: 1px solid #e4edf7; }
.replica-merchant-payment-foot small { color: #8490a0; font-size: 10px; line-height: 1.45; }
.replica-merchant-payment-action { flex: 0 0 auto; min-height: 31px; padding: 0 11px; border: 0; border-radius: 7px; background: #1b76d1; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.replica-merchant-payment-editor { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 18px; background: rgba(17,24,39,.46); }
.replica-merchant-payment-editor-card { width: min(338px,100%); padding: 21px 18px 17px; border-radius: 16px; background: #fff; box-shadow: 0 18px 46px rgba(15,23,42,.28); text-align: center; }
.replica-merchant-payment-editor-card h2 { margin: 10px 0 5px; color: #24364a; font-size: 19px; }
.replica-merchant-payment-editor-card > strong { display: block; color: #4f6072; font-size: 13px; }
.replica-merchant-payment-editor-card p { margin: 11px 0 17px; color: #718093; font-size: 12px; line-height: 1.55; text-align: left; }

/* Ant Design Mobile component host. The card, badge, button and dialog are
   rendered by the existing Ant Design Mobile library rather than bespoke UI. */
.replica-merchant-payment { margin: 0 0 16px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.replica-merchant-payment::after { display: none; }
.merchant-payment-adm-card.adm-card { overflow: hidden; border: 1.5px solid #23a65d; border-radius: 10px; background: linear-gradient(180deg,#f2fff7,#fff); box-shadow: none; }
.merchant-payment-adm-card .adm-card-header { min-height: 67px; padding: 13px 14px 10px; border-bottom: 1px solid rgba(160,170,180,.35); }
.merchant-payment-adm-card .adm-card-header-title { padding: 0; }
.merchant-payment-adm-card .adm-card-header-extra { padding-left: 8px; }
.merchant-payment-adm-card .adm-card-body { padding: 0; }
.merchant-payment-adm-title { display: flex; align-items: center; gap: 10px; }
.merchant-payment-adm-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #c7ead6; border-radius: 50%; background: #e6f5ec; color: #26784a; }
.merchant-payment-adm-icon svg { width: 20px; height: 20px; }
.merchant-payment-adm-title strong { display: block; color: #1f2937; font-size: 14px; font-weight: 700; }
.merchant-payment-adm-title span:not(.merchant-payment-adm-icon) { display: block; margin-top: 4px; color: #525a65; font-size: 12px; }
.merchant-payment-adm-card .adm-badge { padding: 3px 7px; border-radius: 999px; background: #f5f6f7; color: #8a94a3; font-size: 10px; font-weight: 600; }
.merchant-payment-adm-body > p { margin: 0; padding: 11px 15px 7px; color: #6e7580; font-size: 11px; line-height: 1.45; }
.merchant-payment-adm-action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 14px 12px; }
.merchant-payment-adm-action > span { color: #9aa3ae; font-size: 10px; }
.merchant-payment-adm-action .adm-button { min-width: 96px; height: 32px; --border-radius: 6px; --background-color: #126ff5; --border-color: #126ff5; font-weight: 700; }
.replica-recovery-confirm-card { position: relative; }
.replica-recovery-step { position: absolute; top: 14px; right: 15px; color: #16833e; font-size: 11px; font-weight: 700; }

.replica-agent-limit-body { grid-template-columns: .78fr 1.22fr; align-items: stretch; }
.replica-agent-limit-body { align-items:center; }
.replica-agent-limit-body .replica-money-box { min-height:96px; height:96px; align-self:center; padding:6px 8px; gap:4px 8px; }
.replica-agent-limit-body .replica-money-item span { margin-bottom:1px; }
.replica-agent-limit-body .replica-money-item strong { font-size:11px; }
.replica-limit-list { min-width: 0; display: grid; gap: 6px; }
.replica-limit-card { padding: 8px; border: 1px solid #dfe4e9; border-radius: 8px; background: #fff; }
.replica-limit-head { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center; }
.replica-limit-head > div:nth-child(2) { min-width: 0; }.replica-limit-head strong,.replica-limit-head span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.replica-limit-head strong { color:#26303c; font-size:12px; }.replica-limit-head span { color:#66707c; font-size:11px; }
.replica-limit-tags { display:grid; justify-items:end; gap:2px; }.replica-limit-tags b,.replica-limit-tags em { padding:2px 5px; border-radius:4px; font-size:9px; font-style:normal; white-space:nowrap; }.replica-limit-tags b { background:#e7f7ec; color:#16833e; }.replica-limit-tags em { background:#eef2f6; color:#68727d; }
.replica-limit-progress { height:8px; margin:8px 0 5px; overflow:hidden; border-radius:8px; background:#e8edf2; }.replica-limit-progress i { height:100%; display:block; border-radius:inherit; background:#1687e9; }.replica-limit-card.warn .replica-limit-progress i { background:#e68a00; }.replica-limit-card.danger { border-color:#f2a2a2; background:#fffafa; }.replica-limit-card.danger .replica-limit-progress i { background:#e32626; }
.replica-limit-footer { display:flex; justify-content:space-between; gap:4px; color:#5e6874; font-size:9px; font-variant-numeric:tabular-nums; white-space:nowrap; }.replica-limit-footer b { color:#1674cb; }.replica-limit-card.warn .replica-limit-footer b { color:#c57400; }.replica-limit-card.danger .replica-limit-footer b { color:#d31f1f; font-weight:800; }
.replica-limit-empty,.replica-limit-none { padding:10px; border:1px dashed #d9dfe6; border-radius:7px; color:#8b939e; font-size:11px; text-align:center; }.replica-detail-bank-head em { margin-left:auto; color:#6b7480; font-size:9px; font-style:normal; white-space:nowrap; }

/* The current card footer has one formula cell only; let it use the available width and wrap instead of ellipsizing. */
.replica-agent-limit-body + .replica-agent-foot { grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; min-height:56px; }
.replica-agent-limit-body + .replica-agent-foot .replica-foot-cell strong { overflow:visible; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; line-height:1.35; letter-spacing:-.2px; }
.replica-agent-limit-body + .replica-agent-foot { min-height:48px; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:7px; }
.replica-agent-limit-body + .replica-agent-foot .replica-foot-cell strong { overflow:visible; font-size:9px; line-height:1.2; letter-spacing:-.55px; white-space:nowrap; }
.replica-agent-limit-body + .replica-agent-foot .replica-detail-link { min-width:46px; }

.replica-bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 20; width: min(430px, 100%); height: 76px; transform: translateX(-50%); padding-bottom: max(6px, env(safe-area-inset-bottom)); border-top: 1px solid #dfe2e7; background: rgba(255,255,255,.97); display: grid; grid-template-columns: repeat(3, 1fr); backdrop-filter: blur(18px); }.replica-nav-btn { min-height: 0; padding: 0; border: 0; background: none; color: #5d6672; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 11px; }.replica-nav-btn .nav-symbol { font-size: 22px; line-height: 1; }.replica-nav-btn.active { color: var(--replica-blue); }
.replica-empty { padding: 35px 10px; color: var(--replica-muted); text-align: center; }
.replica-order-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 14px; padding: 4px; border-radius: 10px; background: #eef0f4; }.replica-order-mode-tabs ui-button { min-height: 32px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #6c7583; font-size: 12px; }.replica-order-mode-tabs ui-button b { margin-left: 3px; color: inherit; font-size: 10px; }.replica-order-mode-tabs ui-button.active { background: #fff; color: #2362ce; font-weight: 750; box-shadow: 0 1px 4px rgba(26,47,83,.12); }.replica-unmatched-agent-area { padding-top: 1px; }.replica-unmatched-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 13px; }.replica-unmatched-title h2 { margin: 0; color: var(--replica-text); font-size: 18px; }.replica-unmatched-title p { margin: 4px 0 0; color: var(--replica-muted); font-size: 11px; line-height: 1.45; }.replica-unmatched-agent-area .replica-switch-search { margin-bottom: 9px; }.replica-unmatched-agent-area .replica-agent-select { margin-bottom: 9px; }.replica-unmatched-agent-note { margin: 0 0 12px; padding: 10px 11px; border: 1px solid #ffe0a5; border-radius: 9px; background: #fff9ed; color: #9b6816; font-size: 11px; line-height: 1.5; }.replica-unmatched-agent-area .replica-unmatched-summary { grid-template-columns: .85fr 1.4fr .85fr; }.replica-unmatched-agent-area .replica-unmatched-summary strong { font-size: 16px; }
.replica-unmatched-page .replica-section-head { align-items: flex-start; margin-bottom: 14px; }.replica-unmatched-page .replica-section-head p { margin: 5px 0 0; color: var(--replica-muted); font-size: 11px; }.replica-preview-tag { padding: 4px 7px; border: 1px solid #bcd2ff; border-radius: 999px; background: #edf4ff; color: #2563c6; font-size: 9px; font-weight: 800; letter-spacing: .7px; }.replica-unmatched-summary { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; margin-bottom: 13px; }.replica-unmatched-summary > div { padding: 12px; border: 1px solid #f0d8d8; border-radius: 12px; background: linear-gradient(135deg,#fff,#fff7f7); }.replica-unmatched-summary span { display: block; color: #8d6b6b; font-size: 11px; }.replica-unmatched-summary strong { display: block; margin-top: 5px; color: #d03b3b; font-size: 18px; letter-spacing: -.2px; }.replica-unmatched-tools { margin-bottom: 10px; }.replica-unmatched-tools .replica-search-box { width: 100%; }.replica-unmatched-filters { display: flex; gap: 7px; margin: 0 -2px 12px; overflow-x: auto; scrollbar-width: none; }.replica-unmatched-filters::-webkit-scrollbar { display: none; }.replica-unmatched-filters ui-button { flex: 0 0 auto; min-height: 31px; padding: 0 10px; border-color: #dce1e8; border-radius: 999px; background: #fff; color: #596474; font-size: 11px; }.replica-unmatched-filters ui-button b { margin-left: 2px; font-size: 10px; }.replica-unmatched-filters ui-button.active { border-color: #e98a8a; background: #fff1f1; color: #d53a3a; font-weight: 700; }.replica-unmatched-card { margin-bottom: 10px; padding: 13px; border: 1px solid #e2e5ea; border-radius: 13px; background: #fff; box-shadow: 0 2px 8px rgba(23,32,49,.035); }.replica-unmatched-card.order-missing { border-left: 3px solid #ef6d6d; }.replica-unmatched-card.outside-hours { border-left: 3px solid #e6a43c; }.replica-unmatched-card-top, .replica-unmatched-money { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.replica-unmatched-card-top time { color: #778191; font-size: 11px; }.replica-unmatched-badge { padding: 4px 7px; border-radius: 5px; background: #fff0f0; color: #d53a3a; font-size: 11px; font-weight: 700; }.replica-unmatched-money { margin: 12px 0; }.replica-unmatched-money span { display: block; color: #7b8492; font-size: 11px; }.replica-unmatched-money strong { display: block; margin-top: 3px; color: #1b2432; font-size: 21px; letter-spacing: -.4px; }.replica-unmatched-type { padding: 5px 7px; border-radius: 5px; background: #fff8e9; color: #a56408 !important; font-size: 10px !important; }.replica-unmatched-route { display: grid; grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 5px; align-items: center; padding: 10px; border-radius: 9px; background: #f7f8fa; }.replica-unmatched-route > div { min-width: 0; }.replica-unmatched-route span, .replica-unmatched-route b, .replica-unmatched-route code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.replica-unmatched-route span { color: #8992a0; font-size: 10px; }.replica-unmatched-route b { margin-top: 3px; color: #344053; font-size: 12px; }.replica-unmatched-route code { margin-top: 2px; color: #667183; font-family: inherit; font-size: 11px; }.replica-unmatched-route > i { color: #a1a9b5; font-size: 16px; font-style: normal; text-align: center; }.replica-unmatched-reason { margin-top: 11px; padding-top: 10px; border-top: 1px dashed #e0e4ea; }.replica-unmatched-reason > span { color: #8992a0; font-size: 10px; }.replica-unmatched-reason p { margin: 4px 0 0; color: #536071; font-size: 11px; line-height: 1.55; }
.replica-unmatched-card { padding: 14px; border-color: #e5e8ee; border-left-width: 4px; box-shadow: 0 5px 16px rgba(22,32,49,.055); }.replica-unmatched-money { margin: 13px 0 11px; }.replica-unmatched-route { padding: 11px 10px; border: 1px solid #edf0f3; background: #fafbfd; }.replica-unmatched-reason { margin-top: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: #fff8f4; }.replica-unmatched-reason > span { color: #a57458; }.replica-unmatched-reason p { margin-top: 3px; color: #765741; }.replica-unmatched-actions { display: flex; align-items: center; justify-content: flex-end; min-height: 39px; margin-top: 11px; }.replica-unmatched-approve { width: 100%; min-height: 38px; border: 0; border-radius: 8px; background: #246ee8; color: #fff; font-size: 12px; font-weight: 750; box-shadow: 0 3px 8px rgba(36,110,232,.18); }.replica-unmatched-approved { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 7px 9px; border-radius: 7px; background: #eef8f1; color: #198646; font-size: 11px; font-weight: 700; }.replica-approval-editor { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; background: rgba(17,24,39,.46); animation: replica-limit-fade .16s ease-out; }.replica-approval-editor-card { position: relative; width: min(344px,100%); padding: 20px 17px 17px; border-radius: 17px; background: #fff; box-shadow: 0 18px 46px rgba(15,23,42,.28); animation: replica-limit-rise .18s ease-out; }.replica-approval-close { position: absolute; top: 11px; right: 11px; width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f6; color: #596372; font-size: 18px; }.replica-approval-symbol { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 9px; border-radius: 50%; background: #fff0f0; color: #df3e3e; font-size: 23px; font-weight: 800; }.replica-approval-editor-card h2 { margin: 0; color: #1e293b; font-size: 18px; text-align: center; }.replica-approval-editor-card > p { margin: 6px 0 14px; color: #7b8490; font-size: 12px; line-height: 1.5; text-align: center; }.replica-approval-record { margin-bottom: 11px; padding: 10px 11px; border-radius: 9px; background: #f5f7fa; }.replica-approval-record span, .replica-approval-record small { display: block; overflow: hidden; color: #657080; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.replica-approval-record strong { display: block; margin: 3px 0; color: #263448; font-size: 16px; }.replica-approval-input { display: block; margin-bottom: 13px; }.replica-approval-input > span { display: block; margin-bottom: 6px; color: #536071; font-size: 12px; font-weight: 700; }.replica-approval-input textarea { width: 100%; min-height: 86px; padding: 10px; border: 1px solid #ccd6e3; border-radius: 9px; outline: 0; resize: vertical; color: #263448; font: inherit; font-size: 12px; line-height: 1.5; }.replica-approval-input textarea:focus { border-color: #367de9; box-shadow: 0 0 0 3px rgba(54,125,233,.12); }.replica-approval-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }.replica-approval-actions ui-button { min-height: 39px; border-radius: 8px; font-size: 13px; }.replica-approval-actions ui-button:first-child { border: 0; background: #f4f6f8; color: #596372; }.replica-approval-actions ui-button.primary { border: 0; background: #246ee8; color: #fff; }

/* Unmatched payouts: dense operations-list treatment for the preview. */
.replica-unmatched-page { background: #fff; }.replica-preview-tag, .replica-unmatched-actions { display: none; }.replica-order-mode-tabs { display: flex; gap: 22px; margin: 0 0 18px; padding: 0; border-radius: 0; border-bottom: 1px solid #e6e8eb; background: transparent; }.replica-order-mode-tabs ui-button { position: relative; min-height: 37px; padding: 0 1px; border: 0; border-radius: 0; background: transparent; color: #7a818b; font-size: 13px; }.replica-order-mode-tabs ui-button.active { background: transparent; color: #171b22; box-shadow: none; }.replica-order-mode-tabs ui-button.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #171b22; content: ''; }.replica-unmatched-title { margin-bottom: 15px; }.replica-unmatched-title h2 { color: #171b22; font-size: 19px; letter-spacing: -.2px; }.replica-unmatched-title p { color: #7a818b; }.replica-unmatched-agent-area .replica-switch-search, .replica-unmatched-agent-area .replica-agent-select { margin-bottom: 8px; }.replica-unmatched-agent-area .replica-search-box, .replica-unmatched-agent-area .replica-agent-select { height: 43px; border-color: #dfe2e6; border-radius: 6px; box-shadow: none; }.replica-unmatched-agent-note { margin: 8px 0 15px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #9097a1; font-size: 11px; }.replica-unmatched-agent-area .replica-unmatched-summary, .replica-unmatched-summary { display: grid; grid-template-columns: .8fr 1.35fr .85fr; gap: 0; margin: 0 0 4px; border-top: 1px solid #e6e8eb; border-bottom: 1px solid #e6e8eb; border-radius: 0; background: transparent; }.replica-unmatched-summary > div { min-height: 61px; padding: 12px 10px; border: 0; border-right: 1px solid #eceef0; border-radius: 0; background: transparent; }.replica-unmatched-summary > div:last-child { border-right: 0; }.replica-unmatched-summary span { color: #858c96; font-size: 10px; }.replica-unmatched-summary strong, .replica-unmatched-agent-area .replica-unmatched-summary strong { margin-top: 5px; color: #1f2937; font-size: 15px; font-weight: 750; letter-spacing: 0; }.replica-unmatched-card, .replica-unmatched-card.order-missing, .replica-unmatched-card.outside-hours { margin: 0; padding: 16px 1px; border: 0; border-bottom: 1px solid #e6e8eb; border-left: 0; border-radius: 0; background: transparent; box-shadow: none; }.replica-unmatched-card-top time { color: #8a919b; font-size: 10px; }.replica-unmatched-badge { padding: 0; border-radius: 0; background: transparent; color: #bc3d3d; font-size: 11px; font-weight: 750; }.replica-unmatched-money { margin: 9px 0 12px; }.replica-unmatched-money strong { color: #151a22; font-size: 22px; font-weight: 780; letter-spacing: -.5px; }.replica-unmatched-money > div > span { color: #8a919b; font-size: 10px; }.replica-unmatched-type { padding: 0; border-radius: 0; background: transparent; color: #8a5d22 !important; font-size: 11px !important; }.replica-unmatched-route { padding: 10px 0; border: 0; border-top: 1px solid #edf0f2; border-bottom: 1px solid #edf0f2; border-radius: 0; background: transparent; }.replica-unmatched-route span { color: #8e959e; }.replica-unmatched-route b { color: #323946; font-size: 12px; }.replica-unmatched-route code { color: #737b87; }.replica-unmatched-reason { margin-top: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; }.replica-unmatched-reason > span { color: #8e959e; font-size: 10px; }.replica-unmatched-reason p { display: -webkit-box; margin-top: 3px; overflow: hidden; color: #5d6672; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.replica-unmatched-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 11px 1px; border-top: 1px solid #e6e8eb; border-bottom: 1px solid #e6e8eb; color: #717985; font-size: 11px; }.replica-unmatched-total strong { color: #1d232c; font-size: 14px; font-variant-numeric: tabular-nums; }.replica-unmatched-card { padding: 0 !important; }.replica-unmatched-card summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; min-height: 67px; padding: 11px 1px; cursor: pointer; list-style: none; }.replica-unmatched-card summary::-webkit-details-marker { display: none; }.replica-unmatched-row-main { min-width: 0; }.replica-unmatched-row-main .replica-unmatched-badge, .replica-unmatched-row-main b, .replica-unmatched-row-main time { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.replica-unmatched-row-main .replica-unmatched-badge { color: #9c4545; font-size: 10px; }.replica-unmatched-row-main b { margin: 3px 0; color: #242b35; font-size: 13px; font-weight: 700; }.replica-unmatched-row-main time { color: #969da6; font-size: 10px; }.replica-unmatched-card summary > strong { color: #171c24; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }.replica-unmatched-card summary::after { grid-column: 1 / -1; display: none; }.replica-unmatched-expanded { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 11px 0 13px; border-top: 1px solid #edf0f2; }.replica-unmatched-expanded > div span, .replica-unmatched-expanded > div b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.replica-unmatched-expanded > div span, .replica-unmatched-expanded p span { color: #9198a1; font-size: 10px; }.replica-unmatched-expanded > div b { margin-top: 4px; color: #343b46; font-size: 11px; }.replica-unmatched-expanded p { grid-column: 1 / -1; margin: 12px 0 0; color: #68717e; font-size: 11px; line-height: 1.5; }.replica-unmatched-expanded p span { display: block; margin-bottom: 3px; }.replica-unmatched-card[open] summary { background: #fbfcfd; }.replica-unmatched-card[open] summary + .replica-unmatched-expanded { background: #fbfcfd; }

/* Keep the orders screen focused on the ledger, not stacked headings and cards. */
.replica-unmatched-page { padding-top: 0; }.replica-unmatched-page > .replica-section-head, .replica-unmatched-title, .replica-unmatched-agent-note { display: none; }.replica-unmatched-page > .replica-order-mode-tabs { margin: 0 -14px 12px; padding: 0 14px; }.replica-order-mode-tabs { gap: 18px; }.replica-order-mode-tabs ui-button { min-height: 34px; font-size: 12px; }.replica-unmatched-agent-area { display: grid; grid-template-columns: minmax(0,1fr) 116px; gap: 8px; align-items: center; }.replica-unmatched-agent-area .replica-switch-search { grid-column: 1; grid-row: 1; margin: 0; }.replica-unmatched-agent-area .replica-agent-select { grid-column: 2; grid-row: 1; margin: 0; }.replica-unmatched-agent-area .replica-search-box, .replica-unmatched-agent-area .replica-agent-select { height: 37px; min-height: 37px; border-radius: 5px; font-size: 12px; }.replica-unmatched-agent-area .replica-search-box { padding-left: 9px; }.replica-unmatched-agent-area .replica-search-box > span { margin-right: 6px; font-size: 15px; }.replica-unmatched-agent-area .replica-agent-select .left { gap: 4px; padding-left: 8px; }.replica-unmatched-agent-area .replica-agent-select .left svg { width: 14px; height: 14px; }.replica-unmatched-agent-area .replica-agent-select .left span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.replica-unmatched-agent-area .replica-agent-select > span { padding-right: 7px; }.replica-unmatched-total { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; padding: 9px 1px; }.replica-unmatched-card summary { min-height: 58px; padding: 9px 1px; }.replica-unmatched-row-main b { margin: 2px 0; }.replica-unmatched-card summary > strong { font-size: 14px; }
.replica-order-mode-tabs .replica-orders-refresh { width: 32px; min-width: 32px; margin-left: auto; padding: 0; color: #4f5967; font-size: 18px; }.replica-order-mode-tabs .replica-orders-refresh:disabled { color: #aeb5bf; font-size: 11px; opacity: 1; }
.replica-unmatched-page { padding-top: 8px; }.replica-order-mode-tabs { margin: 0 0 12px; }

@media (max-width: 520px) { body { background: #fff; }.replica-tg-header { height: 64px; }.replica-page { padding-left: 14px; padding-right: 14px; } }

/* Keep full THB amounts readable in the compact two-column agent summary. */
.replica-money-item strong, .replica-foot-cell strong { font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: -.35px; }

/* Final mobile tuning: compact bottom navigation and conditional order actions. */
.replica-order-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.replica-bottom-nav { height: 62px; padding: 0 0 max(6px, env(safe-area-inset-bottom)); }
.replica-nav-btn { justify-content: flex-end; gap: 2px; padding: 0; font-size: 10px; }
.replica-nav-btn .nav-symbol { font-size: 18px; }

/* V2 is embedded directly in Telegram; the extra in-app title bar is not needed. */
.replica-tg-header { display: none; }
#view.replica-viewport { min-height: 100vh; }
.replica-page { min-height: 100vh; }

.replica-detail-link { min-height: 28px; padding: 0; border: 0; background: transparent; color: #535b66; font-size: 10px; white-space: nowrap; }
.replica-agent-card.expanded { border-color: #cbd5e1; }
.replica-detail-panel { padding: 9px 11px 11px; border-top: 1px solid #e5e7eb; background: #fafbfc; }
.replica-detail-title { margin-bottom: 7px; color: #374151; font-size: 11px; font-weight: 700; }
.replica-workoff-preview { margin:0 0 10px; padding:10px; border:1px solid #dce5ef; border-radius:9px; background:#fff; }
.replica-workoff-head { display:flex; align-items:center; justify-content:space-between; color:#263444; font-size:12px; }
.replica-workoff-head span { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; }
.replica-workoff-head span i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.replica-workoff-head .working { color:#07975a; }.replica-workoff-head .settling { color:#e57910; }
.replica-workoff-time { margin:5px 0 9px; color:#758091; font-size:10px; }
.replica-workoff-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:5px 0 9px; color:#758091; font-size:10px; }.replica-workoff-meta strong { color:#536172; font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.replica-net-charge { margin:0 0 10px; padding:8px 9px; border-radius:7px; background:#eefaf4; }
.replica-net-charge span { display:block; margin-bottom:2px; color:#56806a; font-size:10px; }.replica-net-charge strong { display:block; color:#087b45; font-size:15px; font-variant-numeric:tabular-nums; line-height:1.25; }.replica-net-charge strong.negative { color:#d83b3b; }.replica-net-charge small { display:block; margin-top:3px; color:#6a7c71; font-size:9px; }
.replica-workoff-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
.replica-workoff-grid span { display:block; margin-bottom:2px; color:#7a8491; font-size:10px; }.replica-workoff-grid strong { display:block; color:#273343; font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.replica-workoff-error { margin-top:8px; color:#b45309; font-size:10px; }
.replica-detail-load-state { padding: 3px 0 7px; color: #6b7280; font-size: 10px; }
.replica-detail-bank { margin-bottom: 7px; padding: 7px; border: 1px solid #e1e4e9; border-radius: 7px; background: #fff; }
.replica-detail-bank-head { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 7px; }
.replica-detail-bank-head strong { font-size: 11px; }
.replica-detail-bank-head span { overflow: hidden; color: #5b6470; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.replica-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.replica-detail-grid div { min-width: 0; }
.replica-detail-grid span, .replica-detail-formula span { display: block; margin-bottom: 2px; color: #737983; font-size: 10px; }
.replica-detail-grid strong { display: block; color: #202733; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.replica-average-duration { grid-column: 1 / -1; }
.replica-detail-formula { margin-top: 8px; padding: 8px; border-radius: 7px; background: #eef5ff; color: #2459a6; }
.replica-detail-formula strong { display: block; margin-bottom: 3px; font-size: 11px; }
.replica-detail-formula small { color: #5d6b80; font-size: 10px; }
.replica-empty.compact { padding: 12px 4px; font-size: 11px; }

/* iOS Safari / Telegram WebView zooms focused form fields below 16px. */
@media (max-width: 768px) {
  .replica-app input,
  .replica-app select,
  .replica-app textarea { font-size: 16px; }
}

.replica-switch-search { height: 42px; margin-bottom: 8px; }
.replica-export { min-height: 27px; padding: 0 7px; border: 1px solid var(--replica-line); border-radius: 6px; background: #fff; color: #4f5865; font-size: 10px; white-space: nowrap; }
.overview-style-toggle { display: flex; gap: 4px; margin: -4px 0 9px; padding: 3px; border: 1px solid #dde2e8; border-radius: 8px; background: #f4f6f8; }
.overview-style-toggle ui-button { min-height: 28px; flex: 1; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: #69717d; font-size: 12px; }
.overview-style-toggle ui-button.active { background: #fff; box-shadow: 0 1px 3px rgba(20,31,45,.13); color: #155fc7; font-weight: 700; }
.overview-compact-mode .replica-metric-grid { display: none; }
.overview-compact-mode .replica-search-row { margin-top: 4px; }
.overview-compact-mode .overview-style-toggle { margin: -4px 0 9px; }
.compact-agent-list { display: block; }
.compact-agent-card { padding: 10px 2px 11px; border: 0; border-bottom: 1px solid #e2e5e9; border-radius: 0; background: transparent; color: #313a46; font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.65; }
.compact-agent-card.pending { color: #bd5700; }.compact-agent-card.overdue { color: #bf1717; font-weight:650; }
.compact-agent-name { margin-bottom: 1px; color: #1e293b; font-size: 14px; font-weight: 750; }
.compact-agent-summary { margin-bottom: 4px; color: inherit; }
.compact-card-line { padding-left: 2px; color: inherit; overflow-wrap: anywhere; }
.compact-card-line.muted { color: #8b939e; }
.compact-agent-wage { margin-top: 5px; color: #265fbb; }
.compact-agent-wage b { font-weight: 800; }
.compact-copy-wage { min-height:0; margin:0; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; font-weight:800; line-height:inherit; cursor:pointer; }
.compact-copy-wage i { display:inline-block; margin-left:3px; color:#8d98a6; font-size:11px; font-style:normal; font-weight:400; transform:translateY(-1px); }
.compact-copy-wage.copied { color:#12813a; }
.compact-copy-wage.copied i { color:inherit; }
.replica-icon { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.14em; }
.replica-metric .icon-wrap { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; }
.replica-metric .icon-wrap .replica-icon { width: 19px; height: 19px; stroke-width: 2.2; }
.replica-order-stat .big-icon { width: 22px; height: 22px; display: grid; place-items: center; }
.replica-order-stat .big-icon .replica-icon { width: 22px; height: 22px; }
.replica-order-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.replica-detail-link { display: inline-flex; align-items: center; gap: 3px; }
.replica-money-box { align-content: center; }
.replica-money-item strong.green { color: var(--replica-green); }
.replica-agent-foot { grid-template-columns: .9fr 1.4fr auto; min-height: 50px; }
.replica-agent-foot .replica-foot-cell:nth-child(2) strong { overflow: visible; text-overflow: clip; white-space: normal; word-break: break-word; line-height: 1.2; }
.replica-agent-select select { pointer-events: auto; }
.replica-filter-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.replica-filter-tabs .replica-filter{font-size:11px}.replica-agent-limit-body{align-items:stretch;min-height:132px}.replica-agent-limit-body .replica-money-box{height:auto;min-height:126px;grid-template-rows:repeat(3,minmax(0,1fr));align-content:stretch}.replica-agent-limit-body .replica-money-item{min-height:34px}.replica-timeout-item.yesterday strong{color:#c76b00}.replica-timeout-item.today-danger strong{color:#c61f2b}.replica-timeout-item.today-safe strong{color:#16833e}.replica-limit-list{min-height:126px}.replica-limit-card,.replica-limit-none{min-height:112px;height:100%}.replica-limit-none{display:grid;place-items:center}.compact-timeout-line{margin:2px 0 4px;padding-left:2px;color:#a66000;font-size:11px}.compact-timeout-line .danger{color:#c61f2b;font-weight:800}.compact-timeout-line .safe{color:#16833e}@media(max-width:360px){.replica-filter-tabs .replica-filter{font-size:10px}.replica-agent-limit-body{grid-template-columns:.86fr 1.14fr}.replica-agent-limit-body .replica-money-item strong{font-size:10px}}
.replica-agent-limit-body{min-height:0;align-items:stretch}.replica-agent-limit-body .replica-money-box{height:96px;min-height:96px;grid-template-rows:repeat(2,minmax(0,1fr));align-content:center}.replica-agent-limit-body .replica-money-item{min-height:0}.replica-limit-list{min-height:0}.replica-limit-card,.replica-limit-none{height:auto;min-height:96px}.replica-timeout-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:36px;border-top:1px solid #edf0f3;background:#fbfcfd}.replica-timeout-strip>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 11px;font-size:10px}.replica-timeout-strip>div+div{border-left:1px solid #edf0f3}.replica-timeout-strip span{color:#737d89}.replica-timeout-strip strong{font-size:12px;font-variant-numeric:tabular-nums}.replica-timeout-strip .yesterday strong{color:#bd6a00}.replica-timeout-strip .today-danger strong{color:#c61f2b}.replica-timeout-strip .today-safe strong{color:#16833e}
.replica-agent-limit-body .replica-money-box{position:relative;height:112px;min-height:112px;padding-bottom:29px}.replica-agent-limit-body .replica-limit-card,.replica-agent-limit-body .replica-limit-none{min-height:112px}.replica-agent-limit-body .replica-limit-card{display:flex;flex-direction:column;justify-content:space-between}.replica-agent-limit-body .replica-timeout-strip{position:absolute;right:7px;bottom:5px;left:7px;min-height:22px;border-top:1px solid #e9edf1;background:transparent}.replica-agent-limit-body .replica-timeout-strip>div{padding:4px 2px;font-size:9px}.replica-agent-limit-body .replica-timeout-strip strong{font-size:10px}
.replica-agent-limit-body .replica-money-box{height:96px;min-height:96px;padding-bottom:6px}.replica-agent-limit-body .replica-limit-card,.replica-agent-limit-body .replica-limit-none{min-height:96px}.replica-agent-limit-body .replica-limit-card{display:block}.replica-formula-heading{display:flex!important;align-items:center;gap:4px;min-width:0;white-space:nowrap}.replica-formula-heading b{margin-right:auto;color:#737983;font-weight:400}.replica-formula-heading i{padding:1px 4px;border-radius:4px;background:#fff4df;color:#ad6100;font-size:9px;font-style:normal;font-weight:700}.replica-formula-heading i.today-danger{background:#fff0f1;color:#c61f2b}.replica-formula-heading i.today-safe{background:#edf8f1;color:#16833e}
.replica-agent-name{min-width:0;flex:1}.replica-header-timeouts{display:flex;gap:3px;margin-left:auto;white-space:nowrap}.replica-header-timeouts i{padding:2px 4px;border-radius:4px;background:#fff4df;color:#ad6100;font-size:9px;font-style:normal;font-weight:700}.replica-header-timeouts i.today-danger{background:#fff0f1;color:#c61f2b}.replica-header-timeouts i.today-safe{background:#edf8f1;color:#16833e}.replica-agent-status{margin-left:0}
.replica-merchant-paused{flex:0 0 auto;padding:2px 5px;border:1px solid #f3bec3;border-radius:4px;background:#fff0f1;color:#c52331;font-size:10px;font-weight:800;line-height:1.25;white-space:nowrap}
.compact-merchant-paused{display:inline-block;margin-left:6px;padding:2px 5px;border:1px solid #f3bec3;border-radius:4px;background:#fff0f1;color:#c52331;font-size:10px;font-weight:800;line-height:1.2;vertical-align:1px}
.replica-filter-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;overflow:hidden;margin-bottom:10px;padding:3px;border:1px solid #e0e5ec;border-radius:11px;background:#f4f6f9}.replica-filter-tabs .replica-filter{box-sizing:border-box;display:flex;min-width:0;min-height:36px;padding:0 1px;border:0;border-radius:8px;background:transparent;justify-content:center;gap:2px;color:#596372;font-size:10px;letter-spacing:-.45px;white-space:nowrap;overflow:hidden}.replica-filter-tabs .replica-filter.active{border:0;background:#126af0;color:#fff;box-shadow:0 2px 5px rgba(18,106,240,.22)}.replica-filter-tabs .replica-count{min-width:17px;height:17px;margin-left:0;padding:0 3px;font-size:9px;box-shadow:none}.replica-filter-tabs .replica-filter.active .replica-count{background:rgba(255,255,255,.22);color:#fff}@media(max-width:360px){.replica-filter-tabs .replica-filter{gap:1px;font-size:9px;letter-spacing:-.65px}.replica-filter-tabs .replica-count{min-width:16px;padding:0 2px;font-size:8px}}

/* Daily collection-limit editor on the card-switch page. */
.replica-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 13px}.replica-card-actions.only-limit{grid-template-columns:1fr}.replica-card-actions .replica-switch-action,.replica-card-limit-action{width:100%;min-height:38px;margin:0;border-radius:7px}.replica-card-limit-action{border:1px solid #bdd2f8;background:#f2f7ff;color:#155fc7;font-size:12px;font-weight:700}.replica-limit-editor{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;background:rgba(17,24,39,.42);padding:16px;animation:replica-limit-fade .16s ease-out}.replica-limit-editor-card{width:min(430px,100%);margin:0 auto;padding:16px;border-radius:16px;background:#fff;box-shadow:0 -10px 38px rgba(15,23,42,.2);animation:replica-limit-rise .18s ease-out}.replica-limit-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.replica-limit-editor-head span{display:block;margin-bottom:4px;color:#1f2937;font-size:16px;font-weight:800}.replica-limit-editor-head strong{display:block;color:#687386;font-size:12px;font-weight:500}.replica-limit-editor-close{width:30px;min-height:30px;padding:0;border:0;border-radius:50%;background:#f1f3f6;color:#596372;font-size:20px}.replica-limit-input{display:block;padding:10px 12px;border:1px solid #cdd7e5;border-radius:10px;background:#fbfcfe}.replica-limit-input span{display:block;margin-bottom:5px;color:#687386;font-size:11px}.replica-limit-input input{width:100%;padding:0;border:0;outline:0;background:transparent;color:#172033;font-size:22px;font-weight:750;font-variant-numeric:tabular-nums}.replica-limit-editor-card p{margin:8px 1px 15px;color:#7a8490;font-size:11px}.replica-limit-editor-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.replica-limit-editor-actions ui-button{min-height:40px;border-radius:8px;font-size:13px}.replica-limit-editor-actions ui-button:first-child{background:#f5f6f8;color:#596372}.replica-limit-editor-actions ui-button.primary{background:#126af0;color:#fff}@keyframes replica-limit-fade{from{opacity:0}to{opacity:1}}@keyframes replica-limit-rise{from{transform:translateY(16px);opacity:.65}to{transform:translateY(0);opacity:1}}
.replica-state-editor{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:22px;background:rgba(17,24,39,.42);animation:replica-limit-fade .16s ease-out}.replica-state-editor-card{width:min(330px,100%);padding:22px 18px 17px;border-radius:16px;background:#fff;text-align:center;box-shadow:0 16px 42px rgba(15,23,42,.24);animation:replica-limit-rise .18s ease-out}.replica-state-symbol{width:42px;height:42px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;font-size:23px;font-weight:850}.replica-state-symbol.freeze{background:#fff0f0;color:#ca2525}.replica-state-symbol.unfreeze{background:#eaf8ef;color:#128342}.replica-state-editor-card h2{margin:0 0 7px;color:#1e293b;font-size:18px}.replica-state-editor-card>strong{display:block;overflow:hidden;color:#566171;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.replica-state-editor-card p{margin:9px 0 17px;color:#7b8490;font-size:12px;line-height:1.5}.replica-state-editor-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:8px}.replica-state-editor-actions ui-button{min-height:39px;border-radius:8px;font-size:13px}.replica-state-editor-actions ui-button:first-child{border:0;background:#f4f6f8;color:#596372}.replica-state-editor-actions ui-button.danger{border:0;background:#d92b2b;color:#fff}.replica-state-editor-actions ui-button.primary{border:0;background:#15954b;color:#fff}
.replica-toast{position:fixed;left:50%;bottom:82px;z-index:120;max-width:calc(100% - 36px);padding:10px 14px;border-radius:9px;transform:translateX(-50%);background:#243142;color:#fff;font-size:12px;line-height:1.35;box-shadow:0 7px 22px rgba(15,23,42,.22);animation:replica-toast-in .18s ease-out}.replica-toast.success{background:#127b3e}.replica-toast.error{background:#c92732}@keyframes replica-toast-in{from{transform:translate(-50%,8px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

/* Compact, consistent limit editor instead of a form-like bottom sheet. */
.replica-limit-editor{align-items:center;padding:22px}.replica-limit-editor-card{position:relative;width:min(330px,100%);margin:auto;padding:21px 18px 17px;border-radius:16px;text-align:center;box-shadow:0 16px 42px rgba(15,23,42,.24)}.replica-limit-editor-close{position:absolute;top:12px;right:12px;width:28px;min-height:28px;font-size:18px}.replica-limit-editor-symbol{width:42px;height:42px;margin:0 auto 9px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#1768d5;font-size:23px;font-weight:850}.replica-limit-editor-card h2{margin:0 0 6px;color:#1e293b;font-size:18px}.replica-limit-editor-card-name{display:block;overflow:hidden;color:#657080;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.replica-limit-current{display:flex;align-items:center;justify-content:space-between;margin:16px 0 9px;padding:9px 11px;border-radius:9px;background:#f5f7fa}.replica-limit-current span{color:#7a8490;font-size:11px}.replica-limit-current b{color:#263448;font-size:14px;font-variant-numeric:tabular-nums}.replica-limit-input{padding:9px 11px;text-align:left}.replica-limit-input>span{margin-bottom:3px}.replica-limit-input>div{display:flex;align-items:center;gap:8px}.replica-limit-input input{min-width:0;flex:1;font-size:21px}.replica-limit-input em{padding-left:8px;border-left:1px solid #d7dde5;color:#637084;font-size:11px;font-style:normal;font-weight:700}.replica-limit-editor-actions{margin-top:14px}.replica-limit-editor-card p,.replica-limit-editor-head{display:none}
.replica-limit-editor-symbol.bank{width:49px;height:49px;display:block;background:transparent;border-radius:0;overflow:visible}.replica-limit-editor-symbol.bank .replica-bank-logo.large{width:49px;height:49px;flex-basis:49px;border-radius:50%!important;overflow:hidden!important}.replica-limit-editor-symbol.bank .replica-bank-logo.large img{border-radius:50%;object-fit:cover}

/* Keep the agent search and selector inside the narrow Mini App viewport. */
.replica-unmatched-page,
.replica-unmatched-page * { box-sizing: border-box; }
.replica-unmatched-page { min-width: 0; overflow-x: hidden; }
.replica-unmatched-agent-area { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(148px, 44%); }
.replica-unmatched-agent-area > * { min-width: 0; max-width: 100%; }
.replica-unmatched-agent-area .replica-search-box,
.replica-unmatched-agent-area .replica-agent-select { width: 100%; min-width: 0; max-width: 100%; }
.replica-unmatched-agent-area .replica-search-box { display: flex; overflow: hidden; }
.replica-unmatched-agent-area .replica-search-box input { width: 100%; min-width: 0; }
.replica-unmatched-agent-area .replica-agent-select { display: flex; overflow: hidden; }
.replica-unmatched-agent-area .replica-agent-select .left { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.replica-unmatched-agent-area .replica-agent-select .left span { min-width: 0; }
.replica-unmatched-agent-area .replica-agent-select > span { flex: 0 0 auto; }
.replica-unmatched-agent-area .replica-agent-select select { min-width: 0; }

/* Never hide unmatched payout details behind ellipses. Keep the compact row,
   but let long account/reason text wrap so every value remains readable. */
.replica-unmatched-row-main b,
.replica-unmatched-row-main time,
.replica-unmatched-expanded > div b,
.replica-unmatched-expanded p,
.replica-unmatched-route b,
.replica-unmatched-route code {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.replica-unmatched-row-main b { line-height: 1.35; }
.replica-unmatched-row-main time { line-height: 1.3; }
.replica-unmatched-card summary { min-height: 0; align-items: start; }
.replica-unmatched-card summary > strong { align-self: start; padding-top: 2px; }
.replica-unmatched-reason p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.replica-order-mode-tabs { min-width: 0; }
.replica-orders-refresh { min-width: 28px !important; width: 28px; flex: 0 0 28px; margin-left: auto; padding: 0 !important; }

/* Give the unmatched ledger more horizontal room on the Mini App viewport. */
.replica-unmatched-page { padding-left: 8px; padding-right: 8px; }
.replica-unmatched-page > .replica-order-mode-tabs {
  margin-left: -8px;
  margin-right: -8px;
  padding-left: 8px;
  padding-right: 8px;
}
#replica-unmatched-list { width: 100%; }

/* Ledger rows stay uniform; expanded content remains available below the row. */
.replica-unmatched-card { width: 100%; }
.replica-unmatched-card summary {
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}
.replica-unmatched-row-main b,
.replica-unmatched-row-main time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replica-unmatched-card summary > strong {
  align-self: center;
  padding-top: 0;
}

/* Let each ledger row run wider than the page's general content padding and
   pin the amount to the far right edge. */
.replica-unmatched-page #replica-unmatched-list {
  width: calc(100% + 16px);
  margin-left: -8px;
}
.replica-unmatched-card summary {
  grid-template-columns: minmax(0, 1fr) max-content;
  padding-left: 8px;
  padding-right: 2px;
}
.replica-unmatched-card summary > strong {
  justify-self: end;
  text-align: right;
}
.replica-unmatched-expanded {
  padding-left: 8px;
  padding-right: 8px;
}

/* Align every detail amount to the same right edge as the total amount. */
.replica-unmatched-card summary {
  position: relative;
  display: block;
  padding-right: 112px;
}
.replica-unmatched-card summary > .replica-unmatched-row-main {
  min-width: 0;
  width: 100%;
}
.replica-unmatched-card summary > strong {
  position: absolute;
  top: 50%;
  right: 2px;
  margin: 0;
  transform: translateY(-50%);
}

/* Admin-only private-account action (preview interaction; no network call). */
.replica-unmatched-card .replica-unmatched-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
  margin-top: 10px;
}
.replica-private-button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #d6a14a;
  border-radius: 6px;
  background: #fffaf0;
  color: #9a6200;
  font-size: 11px;
  font-weight: 700;
}
.replica-private-state {
  margin-top: 10px;
  color: #198646;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}
.replica-private-editor {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, .46);
}
.replica-private-editor-card {
  position: relative;
  width: min(360px, 100%);
  padding: 19px 18px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .28);
}
.replica-private-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  color: #596372;
  font-size: 18px;
}
.replica-private-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf3fe;
  color: #286db5;
  font-size: 15px;
  font-weight: 800;
}
.replica-private-title { display: flex; align-items: center; gap: 10px; margin: 1px 26px 16px 0; }
.replica-private-title h2 { margin: 0; color: #1f2937; font-size: 18px; line-height: 1.25; }
.replica-private-title span { display: block; margin-top: 3px; color: #8490a0; font-size: 11px; }
.replica-private-record, .replica-private-confirm { margin-bottom: 13px; padding: 11px 12px; border: 1px solid #e4ebf3; border-radius: 11px; background: #f7faff; }
.replica-private-record span, .replica-private-record small { display: block; color: #657080; font-size: 11px; }
.replica-private-record strong { display: block; margin: 4px 0; color: #1f3349; font-size: 18px; font-variant-numeric: tabular-nums; }
.replica-private-input { display: block; margin-bottom: 13px; }
.replica-private-input > span { display: block; margin-bottom: 6px; color: #536071; font-size: 12px; font-weight: 700; }
.replica-private-input textarea { width: 100%; min-height: 94px; padding: 10px 11px; border: 1px solid #ccd9e8; border-radius: 10px; outline: 0; resize: vertical; color: #263448; font: inherit; font-size: 12px; line-height: 1.5; }
.replica-private-input textarea:focus { border-color: #76a8dc; box-shadow: 0 0 0 3px rgba(70,135,203,.13); }
.replica-private-confirm { display: grid; gap: 9px; }
.replica-private-confirm div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: start; }
.replica-private-confirm span { color: #7b8490; font-size: 11px; }
.replica-private-confirm b { min-width: 0; color: #263448; font-size: 12px; overflow-wrap: anywhere; }
.replica-private-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.replica-private-actions ui-button { min-height: 40px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.replica-private-actions ui-button:first-child { border: 0; background: #f4f6f8; color: #596372; }
.replica-private-actions ui-button.primary { border: 0; background: #286db5; color: #fff; }

/* Private-account requests are ordinary workflow actions, not warning states. */
.replica-unmatched-card .replica-unmatched-actions {
  justify-content: flex-start;
  min-height: 31px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}
.replica-private-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #c6daf2;
  border-radius: 999px;
  background: #f2f7fd;
  color: #286db5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1px;
  box-shadow: none;
}
.replica-private-button:active { background: #e5f0fc; }
.replica-private-state {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
  color: #2c8a55;
  text-align: left;
}

/* Keep the private action beside the amount in the fixed-height summary row. */
.replica-unmatched-card summary { padding-right: 148px; }
.replica-unmatched-card summary > .replica-unmatched-summary-right {
  position: absolute;
  top: 50%;
  right: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
}
.replica-unmatched-summary-right > strong {
  color: #171c24;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.replica-unmatched-summary-right .replica-private-button {
  min-height: 27px;
  padding: 0 9px;
  font-size: 10.5px;
  white-space: nowrap;
}
.replica-private-state-inline {
  color: #2c8a55;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

/* The agent controls use a two-column grid; the ledger must span both columns. */
.replica-unmatched-agent-area > #replica-unmatched-list {
  grid-column: 1 / -1;
  grid-row: 3;
  width: 100%;
  margin-left: 0;
}
