﻿/* One spacing system for QRuser pages; auth pages have their own shell. */
html.qr-clientarea .main-content .page-content { margin-top:0 !important; padding:90px 20px 24px !important; }
html.qr-clientarea .page-content > .container-fluid { width:100%; max-width:none; margin:0; padding:0 !important; }
html.qr-clientarea .page-title-box { padding-bottom:16px; }
html.qr-clientarea .qr-dashboard,html.qr-clientarea .qr-dashboard .row { margin-left:-8px; margin-right:-8px; }
html.qr-clientarea .qr-dashboard [class*="col-"] { padding-left:8px; padding-right:8px; }
html.qr-clientarea .qr-dashboard .card { margin-bottom:16px !important; }
html.qr-clientarea .qr-dashboard > .mb-3,html.qr-clientarea .qr-dashboard .row > .mb-3 { margin-bottom:0 !important; }
/* Dedicated indicator survives legacy active-menu border overrides. */
html.qr-clientarea body[data-sidebar="light"] #sidebar-menu .mm-active > a { border-left:0 !important; }
html.qr-clientarea #sidebar-menu a { position:relative; }
html.qr-clientarea #sidebar-menu a.qr-nav-current { color:#0064ff !important; background:#f1f6ff !important; }
html.qr-clientarea #sidebar-menu a.qr-nav-current::before { content:""; position:absolute; left:0; top:0; bottom:0; height:auto; width:3px; border-radius:0; background:#0064ff; z-index:2; }
@media (max-width:991.98px) { html.qr-clientarea .main-content .page-content { margin-top:0 !important; padding:82px 12px 20px !important; } }

html.qr-clientarea .page-content .card { margin-bottom:16px !important; }

/* Match the existing 230px sidebar, including collapsed and mobile states. */
@media (min-width:992px) {
 html.qr-clientarea body:not(.vertical-collpsed):not([data-sidebar-size="small"]):not([data-sidebar-size="sm"]):not([data-sidebar-size="compact"]) .main-content { margin-left:230px; }
}
/* Reuse the product grid columns so both rows share the same edges. */
html.qr-clientarea .qr-dashboard-overview-row { align-items:stretch; }
html.qr-clientarea .qr-dashboard-summary { display:flex; flex-direction:column; gap:16px; min-width:0; }
html.qr-clientarea .qr-dashboard .qr-dashboard-summary > .card { margin-bottom:0 !important; }
html.qr-clientarea .qr-dashboard-summary > .card:last-child { flex:1; }
html.qr-clientarea .qr-dashboard-summary .funds-item:first-child { border-left:0; }
html.qr-clientarea .qr-dashboard-account { display:flex; min-width:0; }
html.qr-clientarea .qr-dashboard .qr-dashboard-account > .card { width:100%; margin-bottom:0 !important; }
html.qr-clientarea .qr-dashboard-account > .card > .card-body { flex:1; }
html.qr-clientarea .qr-dashboard-account .card-body-info { flex:1; }
html.qr-clientarea .qr-dashboard-overview { margin-bottom:16px; }
@media (max-width:767.98px) {
 html.qr-clientarea .qr-dashboard-account { margin-top:16px; }
}

/* Legacy auto margins must not shrink the stacked overview cards. */
html.qr-clientarea .qr-dashboard .qr-dashboard-summary > .card { width:100%; max-width:none; margin-left:0; margin-right:0; }
html.qr-clientarea .qr-dashboard-summary .funds-item { min-width:0; }
html.qr-clientarea .qr-dashboard-summary .funds-num { white-space:nowrap; }
@media (max-width:767.98px) {
 html.qr-clientarea .qr-dashboard-account { order:-1; margin-top:0; margin-bottom:16px; }
}
/* Anchor each mobile dropdown to its own trigger instead of the whole header. */
@media (max-width:600px) {
 html.qr-clientarea .navbar-header .qr-header-language,
 html.qr-clientarea .navbar-header .qr-header-account { position:relative; }
 html.qr-clientarea .navbar-header .qr-header-language > .dropdown-menu,
 html.qr-clientarea .navbar-header .qr-header-account > .dropdown-menu {
  position:absolute; top:100% !important; right:0 !important; left:auto !important;
  transform:none !important; max-width:calc(100vw - 24px); margin-top:0;
 }
}

/* Keep the back-to-top button above the online support launcher. */
html.qr-clientarea .pls-back2top { bottom:110px; bottom:calc(110px + env(safe-area-inset-bottom, 0px)); }

/* Security overview uses a subtle blue surface instead of a shadow. */
html.qr-clientarea .security-header {
 background-image:url('/themes/clientarea/QRuser/assets_custom/img/security_top.png'),linear-gradient(100deg,#e8f2ff 0%,#f4f8ff 44%,#fff 78%) !important;
}
html.qr-clientarea .security-header .security-info { background:transparent !important; }

/* Keep title/name text stable on hover; buttons and selected navigation retain their states. */
html.qr-clientarea .page-content .card-title a:hover,
html.qr-clientarea .page-content h1 a:hover,
html.qr-clientarea .page-content h2 a:hover,
html.qr-clientarea .page-content h3 a:hover,
html.qr-clientarea .page-content h4 a:hover,
html.qr-clientarea .page-content h5 a:hover,
html.qr-clientarea .page-content .user-center_name a:hover { color:inherit !important; }
/* A compact logo is always available, including when no mini logo is configured. */
html.qr-clientarea body:not(.vertical-collpsed) .navbar-brand-box .logo-lg { display:block; }
html.qr-clientarea body:not(.vertical-collpsed) .navbar-brand-box .logo-sm { display:none; }
html.qr-clientarea body.vertical-collpsed .navbar-brand-box { width:70px !important; }
html.qr-clientarea body.vertical-collpsed .navbar-brand-box .logo-lg { display:none !important; }
html.qr-clientarea body.vertical-collpsed .navbar-brand-box .logo-sm { display:flex; align-items:center; justify-content:center; height:70px; }
html.qr-clientarea body.vertical-collpsed .navbar-brand-box .logo-sm img { width:auto !important; height:auto !important; max-width:40px; max-height:40px; object-fit:contain; }

/* Back-to-top uses native smooth scrolling without a custom timer. */
html.qr-clientarea .pls-back2top { right:28px; opacity:1; }
html.qr-clientarea .pls-back2top[hidden] { display:none !important; }

/* ================= 顶栏：未登录时的登录 / 注册入口 ================= */
html.qr-clientarea .qr-header-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  flex-shrink: 0;
}
html.qr-clientarea .qr-header-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
html.qr-clientarea .qr-header-auth-btn.is-login {
  border: 1px solid #dce3ef;
  background: #fff;
  color: #3d4a63;
}
html.qr-clientarea .qr-header-auth-btn.is-login:hover {
  border-color: #0064ff;
  background: #f4f8ff;
  color: #0064ff;
}
html.qr-clientarea .qr-header-auth-btn.is-register {
  border: 1px solid #0064ff;
  background: #0064ff;
  color: #fff;
}
html.qr-clientarea .qr-header-auth-btn.is-register:hover {
  border-color: #0057df;
  background: #0057df;
  color: #fff;
}

@media (max-width: 767.98px) {
  html.qr-clientarea .qr-header-auth { gap: 6px; margin-left: 6px; }
  html.qr-clientarea .qr-header-auth-btn { height: 30px; padding: 0 11px; font-size: 13px; }
}
@media (max-width: 399.98px) {
  html.qr-clientarea .qr-header-auth { gap: 0; }
  html.qr-clientarea .qr-header-auth-btn.is-register { display: none; }
}

/* ================= 顶部栏 / 侧栏：控制台风格 ================= */

/* ---------- 顶栏 ---------- */
html.qr-clientarea #page-topbar {
  background:#fff;
  border-bottom:1px solid #eef0f3;
  box-shadow:0 1px 2px rgba(16,24,40,.04) !important;
}
html.qr-clientarea #page-topbar .d-lg-inline-block > a,
html.qr-clientarea #page-topbar .header-item { color:#4a5568; }
html.qr-clientarea #page-topbar .header-item i {
  font-size:17px;
  color:#8a94a6;
  transition:color .16s ease;
}
html.qr-clientarea #page-topbar .d-lg-inline-block > a:hover,
html.qr-clientarea #page-topbar .d-lg-inline-block > a:hover .header-item,
html.qr-clientarea #page-topbar .header-item:hover,
html.qr-clientarea #page-topbar .header-item:hover i { color:#0064ff; }

/* ---------- 侧栏容器 ---------- */
html.qr-clientarea .vertical-menu {
  background:#fff !important;
  border-right:1px solid #eef0f3;
  box-shadow:none;
}
html.qr-clientarea #sidebar-menu { padding:16px 0 20px; }

/* ---------- 主菜单项 ---------- */
html.qr-clientarea #sidebar-menu ul li > a {
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:42px;
  margin:2px 10px;
  padding:9px 12px;
  box-sizing:border-box;
  border-radius:8px;
  color:#4a5568;
  font-size:14px;
  font-weight:500;
  line-height:1.35;
  transition:background-color .16s ease, color .16s ease;
}
html.qr-clientarea #sidebar-menu ul li > a > i {
  font-size:18px;
  width:18px;
  min-width:18px;
  text-align:center;
  color:#8a94a6;
  transition:color .16s ease;
}
html.qr-clientarea #sidebar-menu ul li > a > span { flex:1 1 auto; min-width:0; }
html.qr-clientarea #sidebar-menu ul li > a:hover {
  background:#f4f6f9;
  color:#1f2a3d;
}
html.qr-clientarea #sidebar-menu ul li > a:hover > i { color:#0064ff; }

/* ---------- 选中态：浅蓝圆角块 ---------- */
html.qr-clientarea body[data-sidebar="light"] #sidebar-menu li.mm-active > a,
html.qr-clientarea #sidebar-menu a.qr-nav-current {
  background:#edf4ff !important;
  color:#0064ff !important;
  border-left:0 !important;
  border-radius:8px;
}
html.qr-clientarea body[data-sidebar="light"] #sidebar-menu li.mm-active > a > i,
html.qr-clientarea #sidebar-menu a.qr-nav-current > i { color:#0064ff !important; }
html.qr-clientarea #sidebar-menu a.qr-nav-current::before { display:none !important; }

/* ---------- 子菜单 ---------- */
html.qr-clientarea #sidebar-menu ul.sub-menu { margin:2px 0 6px; }
html.qr-clientarea #sidebar-menu ul.sub-menu li > a {
  min-height:36px;
  margin:1px 10px;
  padding:7px 12px 7px 40px;
  font-size:13px;
  font-weight:400;
  border-radius:8px;
}
html.qr-clientarea #sidebar-menu ul.sub-menu li > a:hover {
  background:#f4f6f9;
  color:#1f2a3d;
}
html.qr-clientarea #sidebar-menu ul.sub-menu li.mm-active > a,
html.qr-clientarea #sidebar-menu ul.sub-menu li > a.active {
  background:#edf4ff !important;
  color:#0064ff !important;
}

/* ---------- 展开箭头 ---------- */
html.qr-clientarea #sidebar-menu li > a.has-arrow { padding-right:34px; }

/* ---------- 顶栏高度 64px：与 230px 侧栏、42px 菜单项形成接近 1.6 的比例 ---------- */
html.qr-clientarea .navbar-header,
html.qr-clientarea .header-item,
html.qr-clientarea .navbar-brand-box { height:64px !important; }
html.qr-clientarea .vertical-menu { top:64px !important; }
html.qr-clientarea .main-content .page-content { padding-top:84px !important; }
@media (max-width:991.98px) {
  html.qr-clientarea .main-content .page-content { padding-top:76px !important; }
}

/* ---------- 顶栏文字头像：与用户中心「欢迎回来」的头像同款 ---------- */
html.qr-clientarea .qr-header-avatar {
  width:32px;
  height:32px;
  box-sizing:border-box;
  border-radius:50%;
  background-color:#0066fe;
  border:2px solid rgba(255,255,255,.53);
  color:#fff;
  font-size:12px;
  font-weight:600;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  overflow:hidden;
  letter-spacing:0;
}
html.qr-clientarea .qr-header-account .qr-header-avatar { margin-right:2px; }
html.qr-clientarea #page-topbar .qr-header-avatar + span { color:#1f2a3d; font-weight:500; }

/* ---------- 卡片圆角完整性：内部面板不再盖住卡片圆角 ---------- */
html.qr-clientarea .card { overflow:hidden; }
html.qr-clientarea .card > .card-body.p-0 > :first-child,
html.qr-clientarea .card-body.p-0 > :first-child {
  border-top-left-radius:9px;
  border-top-right-radius:9px;
}
html.qr-clientarea .card-body.p-0 > :last-child {
  border-bottom-left-radius:9px;
  border-bottom-right-radius:9px;
}
html.qr-clientarea ._ov-disk-snapshot,
html.qr-clientarea ._ov-disk-snapshot__inner { overflow:hidden; }
html.qr-clientarea ._ov-disk-snapshot { border-top-left-radius:9px; border-top-right-radius:9px; }

/* ---------- 移动端：常见容器的圆角补齐 ---------- */
@media (max-width:767.98px) {
  html.qr-clientarea .card,
  html.qr-clientarea .modal-content { border-radius:10px !important; }
  html.qr-clientarea .list-group-item:first-child { border-top-left-radius:9px; border-top-right-radius:9px; }
  html.qr-clientarea .list-group-item:last-child { border-bottom-left-radius:9px; border-bottom-right-radius:9px; }
  html.qr-clientarea .table-responsive { border-radius:9px; overflow:hidden; }
  html.qr-clientarea ._ov-disk-snapshot,
  html.qr-clientarea ._ov-disk-snapshot__inner { border-radius:9px; }
}
