body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f5f7fa; overflow: hidden; color: #1f2329; }
[v-cloak] { display: none; }

/* OPay 绿 */
.text-opay { color: #1DCF9F; }
.bg-opay { background-color: #1DCF9F; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #dcdfe6; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

.fade-in { animation: fadeIn 0.25s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Element Plus 主色跟随 OPay 绿 */
:root { --el-color-primary: #1DCF9F; --el-color-primary-light-3: #61DDBC; --el-color-primary-light-5: #8EE7CF; --el-color-primary-light-7: #BBF1E2; --el-color-primary-light-8: #D2F5EC; --el-color-primary-light-9: #E8FAF5; --el-color-primary-dark-2: #17A67F; }

/* Sidebar */
.sidebar { width: 210px; flex-shrink: 0; background: linear-gradient(180deg, #17B58A 0%, #1DCF9F 55%, #45D9B0 100%); color: #fff; padding: 28px 8px; overflow-y: auto; }
.sidebar-logo { padding: 0 24px; }
.sidebar-item { display: flex; align-items: center; height: 42px; padding: 0 16px; margin: 2px 0; font-size: 12.5px; border-radius: 4px; cursor: pointer; opacity: 0.92; }
.sidebar-item:hover { background: rgba(255, 255, 255, 0.1); }
.sidebar-item.active { background: rgba(255, 255, 255, 0.2); opacity: 1; font-weight: 600; }

/* Top bar */
.topbar { display: flex; align-items: center; padding: 14px 24px 10px; background: #fff; }
.stat { display: inline-flex; align-items: center; gap: 4px; color: #909399; }
.stat b { color: #1f2329; font-weight: 700; margin-right: 2px; }
.stat-manual { background: #fff5e8; color: #c67a12; padding: 3px 10px; border-radius: 12px; }
.stat-manual b { color: #c67a12; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #1DCF9F, #5FE0BD); color: #fff; font-size: 11px; }

/* Tabs */
.tab-bar { display: flex; gap: 8px; padding: 0 12px; background: #fff; border-bottom: 1px solid #ebeef5; }
.tab { padding: 12px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #a8abb2; position: relative; }
.tab.active { color: #1DCF9F; font-weight: 600; }
.tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #1DCF9F; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 24px; }
.toolbar .lbl { font-size: 12px; color: #606266; margin-left: 4px; }
.toolbar .el-date-editor.el-input__wrapper { width: 100%; box-sizing: border-box; }
.toolbar .is-error .el-input__wrapper { box-shadow: 0 0 0 1px #ef4b4b inset; }
.btn-primary { height: 28px; padding: 0 18px; border-radius: 3px; background: #1DCF9F; color: #fff; font-size: 12px; font-weight: 600; }
.btn-primary:hover { background: #19B88D; }
.btn-ghost { height: 28px; padding: 0 14px; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; border: 1px solid #dcdfe6; }
.btn-ghost:hover { color: #1DCF9F; border-color: #8EE7CF; }
.btn-grey { height: 24px; padding: 0 14px; border-radius: 3px; background: #e9ecef; color: #333; font-size: 11px; font-weight: 600; }
.btn-grey:hover { background: #dde1e5; }

/* Table */
.table-card { margin: 0 24px; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05); overflow-x: auto; }
.kyc-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.kyc-table th { text-align: left; font-weight: 400; color: #909399; padding: 14px 16px; background: #f9fafc; white-space: nowrap; }
.kyc-table td { padding: 12px 16px; border-top: 1px solid #ebeef5; color: #303133; vertical-align: top; white-space: nowrap; }
.kyc-table tr:hover td { background: #F3FCF9; }
.kyc-table .empty { text-align: center; padding: 56px 0; color: #a8abb2; }
.sub { font-size: 10.5px; color: #a8abb2; margin-top: 3px; }

/* Debug panel */
.debug-panel { position: fixed; bottom: 20px; right: 20px; width: 240px; background: rgba(0, 0, 0, 0.85); color: #fff; padding: 14px; border-radius: 12px; z-index: 100; font-size: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); }
.debug-panel.collapsed { width: 170px; }
.dbtn { background: #374151; padding: 6px 2px; border-radius: 4px; font-size: 10px; }
.dbtn:hover { background: #4b5563; }
