/*
 * Apple HIG: Clarity / Deference / Depth
 * https://developer.apple.com/design/human-interface-guidelines
 */
body.idca-ca-page {
  --idca-primary: #0071e3;
  --idca-primary-hover: #0077ed;
  --idca-primary-soft: rgba(0, 113, 227, 0.08);
  --idca-text: #1d1d1f;
  --idca-muted: rgba(60, 60, 67, 0.6);
  --idca-tertiary: rgba(60, 60, 67, 0.3);
  --idca-border: rgba(60, 60, 67, 0.12);
  --idca-separator: rgba(60, 60, 67, 0.18);
  --idca-card: #ffffff;
  --idca-bg: #f5f5f7;
  --idca-fill: #f5f5f7;
  --idca-radius: 12px;
  --idca-shadow: none;
  --idca-sider-w: 220px;
  --idca-top-h: 52px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--idca-text);
  background: var(--idca-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* 电脑端兜底隐藏手机双端组件（bridge 仅手机加载时防漏出大 Logo） */
body:not(.uc-app-page) .uc-app-home,
body:not(.uc-app-page) .uc-app-me,
body:not(.uc-app-page) .uc-tabbar,
body:not(.uc-app-page) .idca-m-top,
body:not(.uc-app-page) .idca-m-hub,
body:not(.uc-app-page) .pl-app,
body:not(.uc-app-page) #uc-tabbar-root {
  display: none !important;
}

body.idca-ca-page .main-content,
body.idca-ca-page .page-content,
body.idca-ca-page #layout-wrapper {
  background: var(--idca-bg) !important;
}
html.idca-ca-page {
  background: var(--idca-bg) !important;
}

/* Topbar: solid + hairline only */
body.idca-ca-page #page-topbar {
  left: 0 !important; right: 0 !important;
  height: var(--idca-top-h) !important;
  background: #fff !important;
  border-bottom: 1px solid var(--idca-separator) !important;
  box-shadow: none !important;
  z-index: 1005;
  display: flex !important;
  align-items: center !important;
}
body.idca-ca-page .navbar-header,
body.idca-ca-page .idca-topbar__inner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  background: #fff !important;
  box-sizing: border-box !important;
}
body.idca-ca-page .idca-topbar__search {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  height: 36px;
  margin: 0 !important;
}
body.idca-ca-page .navbar-brand-box { display: none !important; }
body.idca-ca-page .idca-topbar__toggle { display: none !important; }
@media (max-width: 991.98px) {
  body.idca-ca-page .idca-topbar__toggle { display: inline-flex !important; color: #4e5969 !important; }
}
body.idca-ca-page .idca-topbar__left { display: flex; align-items: center; gap: 8px; }
body.idca-ca-page .idca-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none !important; color: var(--idca-text) !important;
  max-width: min(240px, 36vw);
}
body.idca-ca-page .idca-brand__logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
body.idca-ca-page .idca-brand__mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--idca-primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.idca-ca-page .idca-brand__mark svg { width: 16px; height: 16px; }
body.idca-ca-page .idca-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body.idca-ca-page .idca-brand__text strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
body.idca-ca-page .idca-brand__text small { font-size: 11px; color: var(--idca-muted); margin-top: 1px; font-weight: 400; }
body.idca-ca-page .idca-topbar__right { display: flex; align-items: center; gap: 6px; }
body.idca-ca-page .idca-topnav { display: none; align-items: center; gap: 2px; margin-right: 8px; }
@media (min-width: 992px) { body.idca-ca-page .idca-topnav { display: inline-flex; } }
body.idca-ca-page .idca-topnav__link {
  position: relative; height: 32px; padding: 0 12px; border-radius: 980px;
  display: inline-flex; align-items: center;
  color: var(--idca-text) !important; font-size: 13px; font-weight: 400; text-decoration: none !important;
}
body.idca-ca-page .idca-topnav__link:hover {
  color: var(--idca-text) !important; background: rgba(0, 0, 0, 0.04);
}
body.idca-ca-page .idca-topnav__link.is-on {
  color: var(--idca-primary) !important; background: transparent; font-weight: 500;
}
body.idca-ca-page .idca-topbar__iconbtn {
  width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--idca-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
body.idca-ca-page .idca-topbar__iconbtn:hover { background: rgba(0, 0, 0, 0.04); }
body.idca-ca-page .idca-theme-ico--moon,
body.idca-ca-page .idca-theme-ico--glass { display: none; }
html[data-theme="dark"] body.idca-ca-page .idca-theme-ico--sun { display: none; }
html[data-theme="dark"] body.idca-ca-page .idca-theme-ico--moon { display: block; }
html[data-theme="glass"] body.idca-ca-page .idca-theme-ico--sun { display: none; }
html[data-theme="glass"] body.idca-ca-page .idca-theme-ico--glass { display: block; }
body.idca-ca-page .idca-langbtn {
  display: inline-flex !important; align-items: center; gap: 6px;
  height: 34px; padding: 0 10px !important; border-radius: 8px !important;
  color: var(--idca-text) !important; background: transparent !important; box-shadow: none !important;
}
body.idca-ca-page .idca-langbtn:hover { background: rgba(0, 0, 0, 0.04) !important; }
body.idca-ca-page .idca-langbtn img { display: block; border-radius: 2px; }
body.idca-ca-page .idca-langbtn__name { font-size: 13px; line-height: 1; }
body.idca-ca-page .idca-langbtn .mdi { font-size: 16px; color: var(--idca-muted); }
body.idca-ca-page .idca-userbtn { gap: 8px; padding: 0 8px !important; height: 34px; border-radius: 8px !important; }
body.idca-ca-page .idca-userbtn__av {
  width: 28px; height: 28px; border-radius: 50%;
  background: #d2d2d7; color: #1d1d1f;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex: none;
}
body.idca-ca-page .idca-userbtn__av--img {
  display: block; object-fit: cover; padding: 0; background: #eee;
}
body.idca-ca-page .idca-userbtn__name { font-size: 14px; color: var(--idca-text); }
body.idca-ca-page .dropdown-menu {
  border: 1px solid var(--idca-border) !important; border-radius: 8px !important; box-shadow: var(--idca-shadow) !important;
}

/* Dark theme (synced with setup localStorage idca-theme) */
html[data-theme="dark"] body.idca-ca-page {
  --idca-text: #f5f5f7;
  --idca-muted: rgba(235, 235, 245, 0.72);
  --idca-tertiary: rgba(235, 235, 245, 0.42);
  --idca-border: rgba(235, 235, 245, 0.12);
  --idca-separator: rgba(235, 235, 245, 0.16);
  --idca-card: #1c1c1e;
  --idca-bg: #000000;
  --idca-fill: #2c2c2e;
  /* primary left to admin tokens / light defaults — do not hardcode blue */
  background: var(--idca-bg) !important;
  color: var(--idca-text);
}
html[data-theme="dark"] body.idca-ca-page .main-content,
html[data-theme="dark"] body.idca-ca-page .page-content,
html[data-theme="dark"] body.idca-ca-page #layout-wrapper,
html[data-theme="dark"].idca-ca-page {
  background: var(--idca-bg) !important;
}
html[data-theme="dark"] body.idca-ca-page #page-topbar,
html[data-theme="dark"] body.idca-ca-page .navbar-header,
html[data-theme="dark"] body.idca-ca-page .idca-topbar__inner,
html[data-theme="dark"] body.idca-ca-page .vertical-menu,
html[data-theme="dark"] body.idca-ca-page .idca-sider {
  background: #1c1c1e !important;
  border-color: var(--idca-separator) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-card,
html[data-theme="dark"] body.idca-ca-page .idca-stat {
  background: #1c1c1e !important;
  box-shadow: none !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-stat {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-topnav__link:hover,
html[data-theme="dark"] body.idca-ca-page .idca-topbar__iconbtn:hover,
html[data-theme="dark"] body.idca-ca-page .idca-langbtn:hover,
html[data-theme="dark"] body.idca-ca-page #sidebar-menu ul li a:hover,
html[data-theme="dark"] body.idca-ca-page .idca-func:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="dark"] body.idca-ca-page .dropdown-menu {
  background: #2c2c2e !important;
  border-color: rgba(255,255,255,0.12) !important;
}
html[data-theme="dark"] body.idca-ca-page .dropdown-item { color: #f5f5f7 !important; }
html[data-theme="dark"] body.idca-ca-page .dropdown-item:hover { background: rgba(255,255,255,0.06) !important; }

/* Dark: readable text that was hardcoded black/gray */
html[data-theme="dark"] body.idca-ca-page .idca-user__name strong,
html[data-theme="dark"] body.idca-ca-page .idca-user__id b,
html[data-theme="dark"] body.idca-ca-page .idca-balance__num,
html[data-theme="dark"] body.idca-ca-page .idca-brand__text strong,
html[data-theme="dark"] body.idca-ca-page .idca-empty {
  color: var(--idca-text) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-user__id,
html[data-theme="dark"] body.idca-ca-page .idca-user__time,
html[data-theme="dark"] body.idca-ca-page .idca-balance__label,
html[data-theme="dark"] body.idca-ca-page .idca-user__sec-label,
html[data-theme="dark"] body.idca-ca-page .idca-brand__text small {
  color: var(--idca-muted) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-select {
  background: #2c2c2e !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: var(--idca-text) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-table th { color: var(--idca-tertiary) !important; border-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] body.idca-ca-page .idca-table td { color: var(--idca-muted) !important; border-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] body.idca-ca-page .idca-news li { border-color: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] body.idca-ca-page .idca-btn--ghost {
  background: transparent !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: var(--idca-text) !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-user__sec {
  border-color: rgba(255,255,255,0.08) !important;
}

/* Dark: soft tint icons — no bright white discs */
html[data-theme="dark"] body.idca-ca-page .idca-stat__ico.is-blue,
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-blue { background: rgba(35, 126, 253, 0.16); color: #64a8ff; }
html[data-theme="dark"] body.idca-ca-page .idca-stat__ico.is-purple,
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-purple { background: rgba(127, 105, 253, 0.16); color: #a994ff; }
html[data-theme="dark"] body.idca-ca-page .idca-stat__ico.is-green,
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-green { background: rgba(27, 213, 155, 0.14); color: #4adfad; }
html[data-theme="dark"] body.idca-ca-page .idca-stat__ico.is-cyan,
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-cyan { background: rgba(42, 163, 214, 0.14); color: #5bc4ea; }
html[data-theme="dark"] body.idca-ca-page .idca-stat__ico.is-orange,
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-orange { background: rgba(254, 150, 41, 0.14); color: #ffb45c; }
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-teal { background: rgba(35, 211, 196, 0.14); color: #4fe0d2; }
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-amber { background: rgba(253, 141, 26, 0.14); color: #ffad52; }
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-sky { background: rgba(40, 114, 254, 0.16); color: #6b9bff; }
html[data-theme="dark"] body.idca-ca-page .idca-func__ico.is-red { background: rgba(240, 68, 56, 0.14); color: #ff8a80; }
html[data-theme="dark"] body.idca-ca-page .idca-tag--mute { background: rgba(255,255,255,0.08); color: var(--idca-muted); }
html[data-theme="dark"] body.idca-ca-page .idca-tag--ok { background: rgba(52, 199, 89, 0.18); color: #6dde8a; }
html[data-theme="dark"] body.idca-ca-page .idca-tag--warn { background: rgba(255, 149, 0, 0.18); color: #ffb340; }

/* Liquid Glass — structure from https://github.com/rdev/liquid-glass-react
 * Warp layer (JS): backdrop-filter frost + filter:url(#idca-lg-filter) refraction/CA
 * Hosts stay transparent so the warped backdrop shows through. */
html[data-theme="glass"] body.idca-ca-page {
  --idca-text: #ffffff;
  --idca-muted: rgba(255, 255, 255, 0.78);
  --idca-tertiary: rgba(255, 255, 255, 0.55);
  --idca-border: rgba(255, 255, 255, 0.28);
  --idca-separator: rgba(255, 255, 255, 0.22);
  --idca-card: transparent;
  --idca-bg: transparent;
  --idca-fill: rgba(255, 255, 255, 0.12);
  /* primary left to admin tokens — do not hardcode blue */
  --idca-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--idca-text);
  /* Same layer the warp samples via background-attachment:fixed */
  background-color: #1a1520 !important;
  background-image: var(--idca-lg-bg, url("/themes/clientarea/idca/assets/img/liquid/glass-bg.jpg")) !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
html[data-theme="glass"] body.idca-ca-page::before,
html[data-theme="glass"] body.idca-ca-page::after {
  content: none !important;
  display: none !important;
}
html[data-theme="glass"] body.idca-ca-page #layout-wrapper,
html[data-theme="glass"] body.idca-ca-page .main-content,
html[data-theme="glass"] body.idca-ca-page .page-content,
html[data-theme="glass"].idca-ca-page {
  background: transparent !important;
  position: relative;
  z-index: 1;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar,
html[data-theme="glass"] body.idca-ca-page .navbar-header,
html[data-theme="glass"] body.idca-ca-page .idca-topbar__inner,
html[data-theme="glass"] body.idca-ca-page .vertical-menu,
html[data-theme="glass"] body.idca-ca-page .idca-sider,
html[data-theme="glass"] body.idca-ca-page .idca-card,
html[data-theme="glass"] body.idca-ca-page .idca-stat,
html[data-theme="glass"] body.idca-ca-page .dropdown-menu,
html[data-theme="glass"] body.idca-ca-page a.idca-card:hover,
html[data-theme="glass"] body.idca-ca-page .idca-stat:hover {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-card,
html[data-theme="glass"] body.idca-ca-page .idca-stat,
html[data-theme="glass"] body.idca-ca-page .dropdown-menu {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
/* Topbar/sider get liquid warp via JS — keep hosts clear */
html[data-theme="glass"] body.idca-ca-page #page-topbar,
html[data-theme="glass"] body.idca-ca-page .vertical-menu,
html[data-theme="glass"] body.idca-ca-page .idca-sider {
  box-shadow: none !important;
  border-color: transparent !important;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar {
  border-bottom: none !important;
  overflow: visible !important;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar .idca-topbar__inner,
html[data-theme="glass"] body.idca-ca-page #page-topbar .navbar-header {
  overflow: visible !important;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar .dropdown,
html[data-theme="glass"] body.idca-ca-page #page-topbar .idca-langbtn,
html[data-theme="glass"] body.idca-ca-page #page-topbar .idca-userbtn,
html[data-theme="glass"] body.idca-ca-page #page-topbar .idca-topbar__iconbtn,
html[data-theme="glass"] body.idca-ca-page #page-topbar .idca-topnav__link {
  position: relative;
  z-index: 6;
  pointer-events: auto !important;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar .dropdown-menu {
  z-index: 1100 !important;
  pointer-events: auto !important;
}
html[data-theme="glass"] body.idca-ca-page .vertical-menu,
html[data-theme="glass"] body.idca-ca-page .idca-sider {
  border-right: none !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-stat {
  border: 1px solid rgba(255, 255, 255, 0.12);
}
html[data-theme="glass"] body.idca-ca-page .idca-lg-base,
html[data-theme="glass"] body.idca-ca-page .idca-lg-warp {
  display: block !important;
  pointer-events: none !important;
  z-index: 0 !important;
  border-radius: inherit !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-lg-frost {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit !important;
  pointer-events: none;
  z-index: 0;
}
html[data-theme="glass"] body.idca-ca-page [data-idca-lg="1"] {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.28) !important;
  border-color: transparent !important;
}
html[data-theme="glass"] body.idca-ca-page [data-idca-lg="1"]:not(#page-topbar):not(.idca-sider):not(.vertical-menu):not(.dropdown-menu):not(.idca-bill__panel):not(.idca-st__panel):not(.idca-fn__panel) {
  overflow: hidden !important;
}
/* List panels must stay visible so tables aren't clipped */
html[data-theme="glass"] body.idca-ca-page .idca-bill__panel[data-idca-lg="1"],
html[data-theme="glass"] body.idca-ca-page .idca-st__panel[data-idca-lg="1"],
html[data-theme="glass"] body.idca-ca-page .idca-fn__panel[data-idca-lg="1"] {
  overflow: visible !important;
}
html[data-theme="glass"] body.idca-ca-page #page-topbar[data-idca-lg="1"],
html[data-theme="glass"] body.idca-ca-page .idca-sider[data-idca-lg="1"],
html[data-theme="glass"] body.idca-ca-page .vertical-menu[data-idca-lg="1"] {
  box-shadow: none !important;
  border-color: transparent !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-lg-shine {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  padding: 0.5px;
  mix-blend-mode: screen;
  opacity: 0.18;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.35) inset,
    0 1px 2px rgba(255, 255, 255, 0.18) inset,
    0 1px 3px rgba(0, 0, 0, 0.28);
}
html[data-theme="glass"] body.idca-ca-page .idca-lg-shine--overlay {
  mix-blend-mode: overlay;
  opacity: 0.4;
}
html[data-theme="glass"] body.idca-ca-page .idca-topnav__link,
html[data-theme="glass"] body.idca-ca-page .idca-topbar__iconbtn,
html[data-theme="glass"] body.idca-ca-page .idca-langbtn,
html[data-theme="glass"] body.idca-ca-page .idca-userbtn,
html[data-theme="glass"] body.idca-ca-page .idca-userbtn__name,
html[data-theme="glass"] body.idca-ca-page #sidebar-menu ul li a,
html[data-theme="glass"] body.idca-ca-page .idca-sider__label span {
  color: var(--idca-text) !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-topnav__link:hover,
html[data-theme="glass"] body.idca-ca-page .idca-topbar__iconbtn:hover,
html[data-theme="glass"] body.idca-ca-page .idca-langbtn:hover,
html[data-theme="glass"] body.idca-ca-page #sidebar-menu ul li a:hover,
html[data-theme="glass"] body.idca-ca-page .idca-func:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="glass"] body.idca-ca-page .dropdown-item { color: #fff !important; }
html[data-theme="glass"] body.idca-ca-page .dropdown-item:hover { background: rgba(255, 255, 255, 0.12) !important; }
html[data-theme="glass"] body.idca-ca-page .idca-user__name strong,
html[data-theme="glass"] body.idca-ca-page .idca-user__id b,
html[data-theme="glass"] body.idca-ca-page .idca-balance__num,
html[data-theme="glass"] body.idca-ca-page .idca-brand__text strong,
html[data-theme="glass"] body.idca-ca-page .idca-empty,
html[data-theme="glass"] body.idca-ca-page .idca-card__hd h3,
html[data-theme="glass"] body.idca-ca-page .idca-func__label,
html[data-theme="glass"] body.idca-ca-page .idca-stat__val,
html[data-theme="glass"] body.idca-ca-page .idca-stat__label,
html[data-theme="glass"] body.idca-ca-page .idca-news a {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
html[data-theme="glass"] body.idca-ca-page .idca-user__id,
html[data-theme="glass"] body.idca-ca-page .idca-user__time,
html[data-theme="glass"] body.idca-ca-page .idca-balance__label,
html[data-theme="glass"] body.idca-ca-page .idca-user__sec-label,
html[data-theme="glass"] body.idca-ca-page .idca-brand__text small,
html[data-theme="glass"] body.idca-ca-page .idca-news time {
  color: rgba(255, 255, 255, 0.72) !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-select {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #fff !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-table th { color: rgba(255,255,255,0.55) !important; border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="glass"] body.idca-ca-page .idca-table td { color: rgba(255,255,255,0.78) !important; border-color: rgba(255,255,255,0.1) !important; }
html[data-theme="glass"] body.idca-ca-page .idca-news li { border-color: rgba(255,255,255,0.12) !important; }
html[data-theme="glass"] body.idca-ca-page .idca-btn--ghost {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-user__sec {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-user__sec-ico {
  background: transparent !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-lg-frost {
  /* default: no milky veil; panel hosts set dark frost via JS inline */
  box-shadow: none;
}
html[data-theme="glass"] body.idca-ca-page [data-idca-lg-mode="panel"] > .idca-lg-frost {
  background: rgba(8, 12, 20, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="glass"] body.idca-ca-page [data-idca-lg-mode="card"] > .idca-lg-frost,
html[data-theme="glass"] body.idca-ca-page [data-idca-lg-mode="topbar"] > .idca-lg-frost,
html[data-theme="glass"] body.idca-ca-page [data-idca-lg-mode="sider"] > .idca-lg-frost {
  background: transparent !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-footer {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}
html[data-theme="glass"] body.idca-ca-page .idca-stat__ico,
html[data-theme="glass"] body.idca-ca-page .idca-func__ico {
  background: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}
html[data-theme="glass"] body.idca-ca-page #sidebar-menu ul li a i { color: rgba(255,255,255,0.75) !important; }
html[data-theme="glass"] body.idca-ca-page #sidebar-menu ul li a.active,
html[data-theme="glass"] body.idca-ca-page #sidebar-menu ul li.mm-active > a {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}

/* Sidebar — same plane, hairline only */
body.idca-ca-page .vertical-menu,
body.idca-ca-page .idca-sider {
  top: var(--idca-top-h) !important;
  width: var(--idca-sider-w) !important;
  background: #fff !important;
  border-right: 1px solid var(--idca-separator) !important;
  box-shadow: none !important;
  padding-top: 10px !important;
}
body.idca-ca-page .idca-sider__label span {
  font-size: 12px; color: var(--idca-tertiary); font-weight: 500; letter-spacing: 0.01em;
}
body.idca-ca-page #sidebar-menu ul li a {
  display: flex !important; align-items: center; gap: 10px;
  margin: 1px 0 !important; padding: 8px 12px !important;
  border-radius: 8px !important;
  color: var(--idca-text) !important; font-size: 13px !important; font-weight: 400;
  background: transparent !important;
}
body.idca-ca-page #sidebar-menu ul li a i {
  color: var(--idca-muted) !important; font-size: 16px !important; min-width: 18px; text-align: center;
}
body.idca-ca-page #sidebar-menu ul li a:hover {
  color: var(--idca-text) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}
body.idca-ca-page #sidebar-menu ul li a.active,
body.idca-ca-page #sidebar-menu ul li.mm-active > a {
  color: var(--idca-primary) !important;
  background: var(--idca-primary-soft) !important;
  font-weight: 500;
}
body.idca-ca-page #sidebar-menu ul li a:hover i { color: var(--idca-text) !important; }
body.idca-ca-page #sidebar-menu ul li a.active i,
body.idca-ca-page #sidebar-menu ul li.mm-active > a i { color: var(--idca-primary) !important; }

body.idca-ca-page .page-content {
  margin-top: var(--idca-top-h) !important;
  padding: 20px 24px 40px !important;
}
body.idca-ca-page .idca-sider__label {
  list-style: none; margin: 16px 0 4px; padding: 0 20px;
  pointer-events: none;
}
body.idca-ca-page .idca-sider__home {
  color: var(--idca-primary) !important;
  font-weight: 500 !important;
}
body.idca-ca-page .idca-sider__home i { color: var(--idca-primary) !important; }
body.idca-ca-page #sidebar-menu { padding: 0 10px 24px !important; }
body.idca-ca-page #sidebar-menu .sub-menu {
  padding: 2px 0 6px 8px !important;
  margin: 0 !important;
  background: transparent !important;
}
body.idca-ca-page #sidebar-menu .sub-menu li a {
  padding: 7px 12px 7px 30px !important;
  font-size: 13px !important;
  color: var(--idca-muted) !important;
}
body.idca-ca-page #sidebar-menu .sub-menu li a:hover,
body.idca-ca-page #sidebar-menu .sub-menu li a.active,
body.idca-ca-page #sidebar-menu .sub-menu li.mm-active > a {
  color: var(--idca-primary) !important;
  background: var(--idca-primary-soft) !important;
}
body.idca-ca-page #sidebar-menu .sub-menu .sub-menu li a {
  padding-left: 42px !important;
}
body.idca-ca-page #sidebar-menu a.has-arrow::after {
  color: var(--idca-tertiary) !important;
}

body.idca-ca-page .main-content { margin-left: var(--idca-sider-w) !important; }
body.idca-ca-page .container-fluid {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.idca-ca-page .footer {
  left: var(--idca-sider-w) !important; background: transparent !important;
  border-top: 1px solid var(--idca-separator) !important; color: var(--idca-muted) !important;
}
body.idca-ca-page .btn-primary {
  background: var(--idca-primary) !important; border-color: var(--idca-primary) !important;
}
@media (max-width: 991.98px) {
  body.idca-ca-page .main-content { margin-left: 0 !important; }
  body.idca-ca-page .footer { left: 0 !important; }
}

/* ===== Overview ===== */
.idca-ov { display: flex; flex-direction: column; gap: 0; }
.idca-crumb {
  margin: 0 0 16px;
  padding: 0;
  font-size: 13px;
  line-height: 1.33337;
  color: var(--idca-muted);
  font-weight: 400;
}
.idca-crumb em {
  font-style: normal;
  margin: 0 7px;
  color: var(--idca-tertiary);
  font-weight: 400;
}
.idca-crumb strong {
  color: var(--idca-text) !important;
  font-weight: 600 !important;
}

/* Grouped white surfaces — depth via bg contrast, not shadow theater */
.idca-card {
  background: var(--idca-card);
  border-radius: var(--idca-radius);
  box-shadow: none;
  border: 1px solid transparent;
}
a.idca-card:hover {
  background: #fff;
}

.idca-hero {
  display: grid;
  /* 稿实测约 507:309 ≈ 1.64:1，gap 10px */
  grid-template-columns: minmax(0, 1.64fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.idca-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  overflow: hidden;
  padding: 0;
}
.idca-user__profile {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 8px 20px 20px;
  min-width: 0;
}
.idca-user__av {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  flex: none;
  object-fit: cover;
  background: #e5e5e5;
  display: block;
}
.idca-user__info { min-width: 0; }
.idca-user__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.idca-user__name strong {
  font-size: 19px;
  font-weight: 600;
  color: var(--idca-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.idca-badge-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 10px 0 6px;
  border-radius: 980px;
  background: rgba(52, 199, 89, 0.12);
  color: #248a3d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.idca-badge-ok svg { flex: none; color: #34c759; }
.idca-badge-off {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 980px;
  background: rgba(60, 60, 67, 0.08);
  color: var(--idca-muted);
  font-size: 12px;
  font-weight: 500;
}
.idca-user__id {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--idca-muted);
  line-height: 1.4;
}
.idca-user__id b { font-weight: 500; color: var(--idca-text); }
.idca-user__time {
  font-size: 13px;
  color: var(--idca-muted);
  line-height: 1.4;
}
.idca-user__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--idca-muted);
  padding: 0;
  cursor: pointer;
}
.idca-user__copy:hover { color: var(--idca-primary); background: var(--idca-primary-soft); }
.idca-user__sec {
  flex: none;
  width: 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  padding: 20px 20px 20px 0;
  margin-left: 0;
}
.idca-user__sec-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.idca-user__sec-ico {
  width: 36px;
  height: 36px;
  color: #34c759;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.idca-user__sec-ico svg { width: 32px; height: 32px; }
.idca-user__sec-txt { display: flex; flex-direction: column; gap: 2px; }
.idca-user__sec-label { font-size: 13px; color: var(--idca-muted); line-height: 1.2; }
.idca-user__sec-val { font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.idca-user__sec-val.is-high { color: #248a3d; }
.idca-user__sec-val.is-mid { color: #c93400; }
.idca-user__sec-val.is-low { color: #d70015; }
.idca-user__sec-link {
  font-size: 13px;
  color: var(--idca-primary) !important;
  text-decoration: none !important;
  font-weight: 400;
  margin-left: 46px;
  line-height: 1.2;
}
.idca-user__sec-link:hover { text-decoration: underline !important; }

.idca-balance {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 22px 24px;
  overflow: hidden;
  background: #fff;
}
.idca-balance__main { position: relative; z-index: 1; }
.idca-balance__label { margin: 0 0 6px; font-size: 13px; color: var(--idca-muted); line-height: 1.2; }
.idca-balance__num {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--idca-text);
  font-variant-numeric: tabular-nums;
}
.idca-balance__actions { display: flex; gap: 10px; }
.idca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 72px;
  padding: 0 16px;
  border-radius: 980px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.idca-btn--primary {
  background: var(--idca-primary);
  color: #fff !important;
  box-shadow: none;
}
.idca-btn--primary:hover {
  background: var(--idca-primary-hover);
  color: #fff !important;
  opacity: 0.92;
}
.idca-btn--ghost {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--idca-text) !important;
  box-shadow: none;
}
.idca-btn--ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.16);
  color: var(--idca-text) !important;
}
.idca-balance__deco {
  position: absolute;
  right: 8px;
  bottom: auto;
  top: 50%;
  width: 96px;
  height: auto;
  pointer-events: none;
  opacity: 0.75;
  line-height: 0;
  transform: translateY(-50%) rotate(-18deg);
  transform-origin: center center;
}
.idca-balance__deco img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.idca-balance {
  overflow: hidden;
}

.idca-overview {
  padding: 20px 20px 18px;
  margin-top: 16px;
}
.idca-overview__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--idca-text);
  line-height: 1.3;
}
.idca-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.idca-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  padding: 18px 16px;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}
.idca-stat:hover {
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 113, 227, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06);
}
.idca-stat__main { min-width: 0; }
.idca-stat__label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--idca-muted);
  line-height: 1.2;
}
.idca-stat__val {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--idca-text);
}
.idca-stat__sub {
  margin: 0;
  font-size: 12px;
  color: var(--idca-tertiary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.idca-stat__ico {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  flex: none;
  line-height: 0;
  overflow: hidden;
}
.idca-stat__ico svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: 0;
  display: block;
  overflow: visible !important;
  transform: translate(-50%, -50%);
}
.idca-stat__ico.is-blue { background: #f5f8fe; color: #237efd; }
.idca-stat__ico.is-purple { background: #f4f3fe; color: #7f69fd; }
.idca-stat__ico.is-green { background: #f0fcf8; color: #1bd59b; }
.idca-stat__ico.is-cyan { background: #f1f9fe; color: #2aa3d6; }
.idca-stat__ico.is-orange { background: #fefaf6; color: #fe9629; }

.idca-mid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  margin-top: 16px;
}
/* home_order flex stack removed — restore original idca-mid / idca-bottom grids */
.idca-card__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 0;
}
.idca-card__hd h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--idca-text);
  line-height: 1.3;
}
.idca-card__hd a { font-size: 13px; color: var(--idca-primary) !important; text-decoration: none !important; }
.idca-card__hd a:hover { opacity: 0.85; }
.idca-card__bd { padding: 16px 18px 20px; }
.idca-funcs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
}
.idca-func {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
  padding: 14px 10px;
  border-radius: 10px;
  text-decoration: none !important; color: inherit !important;
}
.idca-func:hover { background: rgba(0, 0, 0, 0.03); }
.idca-func__ico {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: none;
  display: block;
  line-height: 0;
  overflow: hidden;
}
.idca-func__ico svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  margin: 0;
  display: block;
  overflow: visible !important;
  vertical-align: 0;
  transform: translate(-50%, -50%);
}
.idca-func__ico.is-blue { background: #f5f8fe; color: #237efd; }
.idca-func__ico.is-green { background: #f0fcf8; color: #1bd59b; }
.idca-func__ico.is-teal { background: #edfaf9; color: #23d3c4; }
.idca-func__ico.is-orange { background: #fefaf6; color: #fe9629; }
.idca-func__ico.is-amber { background: #fef9f3; color: #fd8d1a; }
.idca-func__ico.is-purple { background: #f4f3fe; color: #7f69fd; }
.idca-func__ico.is-sky { background: #f2f6fe; color: #2872fe; }
.idca-func__ico.is-cyan { background: #f1f9fe; color: #2aa3d6; }
.idca-func__ico.is-red { background: #fff5f4; color: #f04438; }
.idca-func > div { min-width: 0; }
.idca-func b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--idca-text);
  line-height: 1.25;
}
.idca-func span {
  display: block;
  font-size: 12px;
  color: var(--idca-tertiary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idca-news__hd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.idca-news__hd svg {
  width: 18px;
  height: 18px;
  color: var(--idca-primary);
  flex: none;
  display: block;
  overflow: visible !important;
}
.idca-news-card .idca-card__bd,
.idca-news-card__bd {
  padding: 6px 22px 16px;
}
.idca-news { list-style: none; margin: 0; padding: 0; }
.idca-news li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0;
  border-bottom: 1px solid rgba(60, 60, 67, 0.06);
}
.idca-news li:last-child { border-bottom: 0; }
.idca-news a {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--idca-muted) !important;
  text-decoration: none !important;
  font-size: 13px;
  line-height: 40px;
  font-weight: 400;
}
.idca-news a:hover { color: var(--idca-primary) !important; }
.idca-news time {
  flex: none;
  font-size: 12px;
  color: var(--idca-tertiary);
  line-height: 40px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.idca-empty { padding: 36px 8px; text-align: center; color: var(--idca-muted); font-size: 13px; }

.idca-bottom { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 16px; }
.idca-chart-box { height: 250px; width: 100%; }
.idca-select {
  height: 28px; border: 1px solid var(--idca-border); border-radius: 6px;
  padding: 0 8px; font-size: 12px; color: #4e5969; background: #fff;
}
.idca-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.idca-table th {
  text-align: left; font-weight: 500; color: #86909c;
  padding: 8px 10px; border-bottom: 1px solid #f2f3f5; white-space: nowrap;
}
.idca-table td {
  padding: 12px 10px; border-bottom: 1px solid #f2f3f5; color: #4e5969; vertical-align: middle;
}
.idca-table tr:last-child td { border-bottom: 0; }
.idca-table a { color: var(--idca-primary) !important; text-decoration: none !important; }
.idca-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 4px; font-size: 12px; font-weight: 600;
}
.idca-tag--ok { background: #e8ffea; color: #00b42a; }
.idca-tag--warn { background: #fff7e8; color: #ff7d00; }
.idca-tag--mute { background: #f2f3f5; color: #86909c; }

@media (max-width: 1199.98px) {
  .idca-stats { grid-template-columns: repeat(3, 1fr); }
  .idca-funcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .idca-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
  .idca-hero, .idca-mid { grid-template-columns: 1fr; }
  .idca-user { flex-direction: column; }
  .idca-user__sec { width: auto; padding: 16px 24px 24px; margin: 0; border-top: 1px solid #f2f3f5; }
  .idca-user__sec-link { margin-left: 46px; }
  .idca-user { padding: 0; flex-wrap: wrap; }
}
@media (max-width: 767.98px) {
  .idca-stats { grid-template-columns: 1fr 1fr; }
  .idca-funcs { grid-template-columns: 1fr; }
}


/* —— Mega / console nav —— */
html[data-nav-style="mega"] body.idca-ca-page {
  --idca-sider-w: 0px;
}
html[data-nav-style="mega"] body.idca-ca-page .vertical-menu,
html[data-nav-style="mega"] body.idca-ca-page .idca-sider {
  display: none !important;
}
html[data-nav-style="mega"] body.idca-ca-page .main-content,
html[data-nav-style="mega"] body.idca-ca-page .footer {
  margin-left: 0 !important;
  left: 0 !important;
}
html[data-nav-style="mega"] body.idca-ca-page .idca-sider__all-li { display: list-item !important; }
html[data-nav-style="mega"] body.idca-ca-page .idca-nav-classic { display: none !important; }
html[data-nav-style="mega"] body.idca-ca-page .idca-nav-mega { display: list-item !important; }
html:not([data-nav-style="mega"]) body.idca-ca-page .idca-sider__all-li,
html:not([data-nav-style="mega"]) body.idca-ca-page .idca-nav-mega { display: none !important; }
html:not([data-nav-style="mega"]) body.idca-ca-page .idca-nav-classic { display: list-item !important; }

/* Product context: reuse left sider (no second rail) */
body.idca-svc-ctx .idca-sider__back {
  color: var(--idca-muted) !important;
  font-size: 13px !important;
  margin-bottom: 2px;
}
body.idca-svc-ctx .idca-sider__back i {
  font-size: 18px !important;
  color: var(--idca-muted) !important;
}
body.idca-svc-ctx .idca-sider__back:hover {
  color: var(--idca-text) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}
body.idca-svc-ctx .idca-sider__label {
  margin: 14px 0 2px !important;
  padding: 0 16px !important;
}
body.idca-svc-ctx .idca-sider__label:first-of-type {
  margin-top: 8px !important;
}
body.idca-svc-ctx #sidebar-menu {
  padding: 8px 10px 28px !important;
}
body.idca-svc-ctx #sidebar-menu > ul > li > a {
  border-radius: 10px !important;
  min-height: 40px;
}
body.idca-svc-ctx #sidebar-menu > ul > li > a.active,
body.idca-svc-ctx #sidebar-menu > ul > li.mm-active > a:not(.has-arrow) {
  background: var(--idca-primary-soft) !important;
  color: var(--idca-text) !important;
  border-radius: 10px;
  font-weight: 500;
}
body.idca-svc-ctx #sidebar-menu > ul > li > a.active i,
body.idca-svc-ctx #sidebar-menu > ul > li.mm-active > a:not(.has-arrow) i {
  color: var(--idca-primary) !important;
}
html[data-nav-style="mega"] body.idca-svc-ctx {
  --idca-sider-w: 220px;
}
html[data-nav-style="mega"] body.idca-svc-ctx .vertical-menu,
html[data-nav-style="mega"] body.idca-svc-ctx .idca-sider {
  display: block !important;
}
html[data-nav-style="mega"] body.idca-svc-ctx .main-content {
  margin-left: var(--idca-sider-w) !important;
}
html[data-nav-style="mega"] body.idca-svc-ctx .footer {
  left: var(--idca-sider-w) !important;
}

html[data-nav-style="mega"] body.idca-ca-page .idca-topbar__toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 4px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: #4e5969 !important;
  line-height: 1;
  flex-shrink: 0;
}
html[data-nav-style="mega"] body.idca-ca-page .idca-topbar__toggle:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}
html[data-nav-style="mega"][data-theme="dark"] body.idca-ca-page .idca-topbar__toggle,
html[data-nav-style="mega"][data-theme="glass"] body.idca-ca-page .idca-topbar__toggle {
  color: rgba(255, 255, 255, 0.92) !important;
}

body.idca-ca-page .idca-sider__all {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 1px 0 !important;
  padding: 10px 12px !important;
  border: 0;
  border-radius: 8px !important;
  background: var(--idca-primary-soft) !important;
  color: var(--idca-primary) !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
body.idca-ca-page .idca-sider__all i { color: var(--idca-primary) !important; }

.idca-mega {
  position: fixed;
  top: var(--idca-top-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: block;
  pointer-events: none;
}
.idca-mega[hidden] { display: none !important; }
.idca-mega__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.28);
  pointer-events: auto;
  opacity: 0;
  animation: idca-mega-mask-in 0.18s ease forwards;
}
.idca-mega__sheet {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: auto;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  width: min(1120px, 100%);
  height: 100%;
  max-height: none;
  margin: 0;
  background: #fff;
  border-radius: 0;
  border-right: 1px solid #e8ecf2;
  border-bottom: 0;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transform-origin: left center;
  transform: translateX(-28px);
  opacity: 0;
  animation: idca-mega-sheet-in 0.22s ease forwards;
}
@keyframes idca-mega-mask-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes idca-mega-sheet-in {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.idca-mega__rail {
  background: #f5f7fa;
  border-right: 1px solid #e8ecf2;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: auto;
}
.idca-mega__rail-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1d2129;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.idca-mega__rail-item:hover { background: rgba(0, 0, 0, 0.04); }
.idca-mega__rail-item.is-on {
  background: #e8f3ff;
  color: var(--idca-primary);
}
.idca-mega__rail-hot {
  margin-top: auto;
  padding: 14px 12px 6px;
  border-top: 1px solid #e8ecf2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.idca-mega__rail-hot span {
  font-size: 11px;
  color: #86909c;
  margin-bottom: 2px;
}
.idca-mega__rail-hot a {
  font-size: 13px;
  color: #4e5969 !important;
  text-decoration: none !important;
}
.idca-mega__rail-hot a:hover { color: var(--idca-primary) !important; }
.idca-mega__jump { display: none !important; }

.idca-mega__body {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}
.idca-mega__toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #eef1f5;
}
.idca-mega__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  background: #f7f8fa;
  color: #86909c;
}
.idca-mega__search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #1d2129;
}
.idca-mega__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4e5969;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.idca-mega__close:hover { background: #f2f3f5; }
.idca-mega__scroll {
  min-height: 0;
  overflow: auto;
  padding: 8px 8px 24px 18px;
}
.idca-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 32px;
  align-content: start;
}
.idca-mega__group { min-width: 0; padding: 12px 0; }
.idca-mega__group.is-hidden { display: none !important; }
.idca-mega__group-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--idca-primary);
}
.idca-mega__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.idca-mega__link,
.idca-mega__l3 a,
.idca-mega__l2-title {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #1d2129 !important;
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none !important;
}
.idca-mega__link:hover,
.idca-mega__l3 a:hover { background: #f2f3f5; color: var(--idca-primary) !important; }
.idca-mega__link i,
.idca-mega__l3 a i,
.idca-mega__l2-title i {
  color: #86909c;
  font-size: 16px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px;
  height: 18px;
  line-height: 18px !important;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.idca-mega__branch { margin: 0 0 6px; padding: 0; }
.idca-mega__l2-title {
  margin: 0;
  font-weight: 600;
  cursor: default;
}
/* 发票列表等与一级入口同一图标列对齐 */
.idca-mega__l3 {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

body.idca-mega-open { overflow: hidden; }

html[data-theme="dark"] .idca-mega__sheet { background: #1c1c1e; border-color: rgba(255,255,255,0.08); box-shadow: 0 12px 28px rgba(0,0,0,0.4); }
html[data-theme="dark"] .idca-mega__rail { background: #121214; border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .idca-mega__rail-item { color: #f5f5f7; }
html[data-theme="dark"] .idca-mega__rail-item.is-on { background: rgba(10,132,255,0.18); color: #7eb6ff; }
html[data-theme="dark"] .idca-mega__rail-hot { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .idca-mega__rail-hot a { color: #aeaeb2 !important; }
html[data-theme="dark"] .idca-mega__toolbar { border-color: rgba(255,255,255,0.08); }
html[data-theme="dark"] .idca-mega__search { background: #2c2c2e; border-color: rgba(255,255,255,0.1); color: #aeaeb2; }
html[data-theme="dark"] .idca-mega__search input { color: #f5f5f7; }
html[data-theme="dark"] .idca-mega__close { color: #aeaeb2; }
html[data-theme="dark"] .idca-mega__group-title { color: #7eb6ff; }
html[data-theme="dark"] .idca-mega__link,
html[data-theme="dark"] .idca-mega__l3 a { color: #f5f5f7 !important; }
html[data-theme="dark"] .idca-mega__link:hover,
html[data-theme="dark"] .idca-mega__l3 a:hover { background: rgba(255,255,255,0.06); }
html[data-theme="dark"] .idca-mega__l2-title { color: #f5f5f7; }
html[data-theme="dark"] body.idca-ca-page .idca-sider__all {
  background: rgba(10, 132, 255, 0.18) !important;
  color: #7eb6ff !important;
}
html[data-theme="dark"] body.idca-ca-page .idca-sider__all i { color: #7eb6ff !important; }

/* Console mega nav — liquid glass sheet (not solid white) */
html[data-theme="glass"] .idca-mega__sheet {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 0 18px 18px 0 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    10px 0 36px rgba(0, 0, 0, 0.32) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  overflow: hidden;
}
html[data-theme="glass"] .idca-mega__sheet[data-idca-lg="1"] {
  background: transparent !important;
}
html[data-theme="glass"] .idca-mega__rail,
html[data-theme="glass"] .idca-mega__body,
html[data-theme="glass"] .idca-mega__toolbar,
html[data-theme="glass"] .idca-mega__scroll {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="glass"] .idca-mega__rail {
  background: rgba(0, 0, 0, 0.16) !important;
}
html[data-theme="glass"] .idca-mega__rail-item {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
html[data-theme="glass"] .idca-mega__rail-item:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="glass"] .idca-mega__rail-item.is-on {
  background: rgba(126, 182, 255, 0.28) !important;
  color: #fff !important;
}
html[data-theme="glass"] .idca-mega__rail-hot {
  border-color: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="glass"] .idca-mega__rail-hot span,
html[data-theme="glass"] .idca-mega__rail-hot a {
  color: rgba(255, 255, 255, 0.72) !important;
}
html[data-theme="glass"] .idca-mega__rail-hot a:hover {
  color: #9ec8ff !important;
}
html[data-theme="glass"] .idca-mega__group-title {
  color: #9ec8ff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
html[data-theme="glass"] .idca-mega__link,
html[data-theme="glass"] .idca-mega__l3 a,
html[data-theme="glass"] .idca-mega__l2-title {
  color: rgba(255, 255, 255, 0.94) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
html[data-theme="glass"] .idca-mega__link:hover,
html[data-theme="glass"] .idca-mega__l3 a:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}
html[data-theme="glass"] .idca-mega__link i,
html[data-theme="glass"] .idca-mega__l3 a i,
html[data-theme="glass"] .idca-mega__l2-title i {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
}
html[data-theme="glass"] .idca-mega__search {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html[data-theme="glass"] .idca-mega__search input {
  color: #fff !important;
}
html[data-theme="glass"] .idca-mega__search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
html[data-theme="glass"] .idca-mega__close {
  color: rgba(255, 255, 255, 0.85) !important;
}
html[data-theme="glass"] .idca-mega__close:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="glass"] .idca-mega__mask {
  background: rgba(8, 12, 20, 0.22);
}

@media (max-width: 991.98px) {
  .idca-mega__sheet {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .idca-mega__rail { display: none; }
  .idca-mega__body { grid-template-columns: 1fr; }
  .idca-mega__jump { display: none; }
  .idca-mega__grid { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
}
@media (max-width: 575.98px) {
  .idca-mega__grid { grid-template-columns: 1fr; }
}
