:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e6e8ec;
  --text: #1f2430;
  --text-2: #6b7280;
  /* 主色：与 LOGO 青蓝一致 */
  --primary: #12808f;
  --primary-hover: #0b6672;
  --primary-soft: #e6f4f6;
  --primary-deep: #0d5c63;
  --red: #e5484d;      /* 进账 / 正 */
  --green: #2f9e44;    /* 支出 / 负 */
  --amber: #d97706;    /* 欠款 */
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --glass-panel: linear-gradient(145deg, rgba(255,255,255,.46), rgba(225,249,248,.2));
  --glass-surface: rgba(248,255,255,.38);
  --glass-surface-strong: rgba(250,255,255,.52);
  --glass-border: rgba(255,255,255,.5);
  --glass-shadow: 0 24px 70px rgba(0,24,36,.28), inset 0 1px 0 rgba(255,255,255,.76);
}

* { box-sizing: border-box; }
/* 强制 hidden 属性生效，避免被 display:flex 等覆盖 */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #052e3b;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
input, select, textarea { font-family: inherit; font-size: 14px; }
/* 下拉框统一基线样式（后续所有 select 默认采用） */
select {
  padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
}
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- 登录 ---------- */
.login-wrap {
  --login-glass: rgba(247, 255, 255, .62);
  --login-line: rgba(255, 255, 255, .68);
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1; overflow: hidden; padding: 32px 20px;
  background: transparent;
}
.ambient-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(circle at 50% 115%, rgba(32, 196, 183, .44), transparent 42%),
    linear-gradient(145deg, #052e3b 0%, #074c59 42%, #0a6671 70%, #073f52 100%);
  background-size: 165% 165%, 190% 190%;
  animation: login-bg-flow 10s ease-in-out infinite alternate;
}
.ambient-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(112, 255, 226, .18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(79, 160, 255, .2), transparent 30%);
}
.ambient-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}
.aurora { overflow: hidden; pointer-events: none; }
.aurora-orb { position: absolute; display: block; border-radius: 50%; filter: blur(18px); opacity: .78; will-change: transform; }
.aurora-orb-one {
  width: min(62vw, 820px); aspect-ratio: 1; left: -18%; top: -32%;
  background: radial-gradient(circle at 38% 42%, rgba(91, 255, 218, .9), rgba(18, 128, 143, .42) 42%, transparent 70%);
  animation: aurora-drift-one 14s ease-in-out infinite alternate;
}
.aurora-orb-two {
  width: min(58vw, 760px); aspect-ratio: 1; right: -17%; top: -22%;
  background: radial-gradient(circle at 50% 45%, rgba(96, 163, 255, .86), rgba(72, 86, 208, .36) 48%, transparent 72%);
  animation: aurora-drift-two 18s ease-in-out infinite alternate;
}
.aurora-orb-three {
  width: min(56vw, 700px); aspect-ratio: 1; left: 28%; bottom: -46%;
  background: radial-gradient(circle at 48% 45%, rgba(88, 255, 201, .7), rgba(31, 178, 169, .32) 46%, transparent 72%);
  animation: aurora-drift-three 16s ease-in-out infinite alternate;
}
.aurora-ribbon {
  position: absolute; display: block; width: 120%; height: 34%; left: -10%; border-radius: 50%;
  filter: blur(44px); opacity: .22; mix-blend-mode: screen; will-change: transform;
}
.aurora-ribbon-one {
  top: 10%; transform: rotate(-10deg);
  background: linear-gradient(90deg, transparent 3%, rgba(71, 255, 213, .9) 31%, rgba(65, 145, 255, .72) 67%, transparent 96%);
  animation: aurora-wave-one 17s ease-in-out infinite alternate;
}
.aurora-ribbon-two {
  bottom: 2%; transform: rotate(12deg);
  background: linear-gradient(90deg, transparent 7%, rgba(52, 139, 255, .66) 31%, rgba(98, 255, 208, .82) 72%, transparent 96%);
  animation: aurora-wave-two 21s ease-in-out infinite alternate;
}
.aurora-specks {
  position: absolute; inset: -12%; opacity: .34; will-change: transform;
  background-image:
    radial-gradient(circle, rgba(221,255,249,.88) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(174,221,255,.7) 0 1px, transparent 1.8px);
  background-position: 0 0, 43px 67px; background-size: 96px 96px, 137px 137px;
  mask-image: radial-gradient(ellipse at center, #000 8%, transparent 74%); -webkit-mask-image: radial-gradient(ellipse at center, #000 8%, transparent 74%);
  animation: aurora-specks-drift 32s linear infinite;
}
.aurora-grid {
  position: absolute; inset: auto -10% -20% -10%; height: 58%; opacity: .17;
  background-image: linear-gradient(rgba(220,255,251,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(220,255,251,.22) 1px, transparent 1px);
  background-size: 54px 54px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to bottom, transparent, #000 45%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
}
.login-card {
  --tilt-x: 0deg; --tilt-y: 0deg;
  width: 420px; max-width: 100%; position: relative; overflow: hidden;
  padding: 38px 38px 28px; border: 1px solid rgba(229,255,255,.26); border-top-color: rgba(255,255,255,.46); border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(231,255,255,.24), rgba(164,222,226,.10) 55%, rgba(255,255,255,.12)),
    rgba(5,47,57,.32);
  box-shadow:
    0 34px 90px rgba(0,20,31,.34), 0 9px 26px rgba(0,31,42,.17),
    inset 0 1px 0 rgba(255,255,255,.55), inset 1px 0 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(84,216,207,.2);
  -webkit-backdrop-filter: blur(22px) saturate(152%) brightness(.94); backdrop-filter: blur(22px) saturate(152%) brightness(.94);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d; transition: transform .18s ease-out, box-shadow .3s ease;
}
/* LOGO：浅青底 + 圆角 */
.login-logo, .brand-logo {
  display: flex; align-items: center; justify-content: center;
  background: #e9f5f6;
}
.login-logo img, .brand-logo img { width: 82%; height: 82%; flex-shrink: 0; object-fit: cover; object-position: center; display: block; }
.login-logo {
  margin: 0 auto 18px; width: 92px; height: 92px; border-radius: 24px; padding: 13px;
  position: relative; background: rgba(239, 255, 253, .48); border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 14px 36px rgba(6, 81, 88, .16), inset 0 1px 0 rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.login-heading { text-align: center; }
.login-kicker { display: block; margin-bottom: 6px; color: rgba(164,237,233,.8); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.login-card h1 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; text-align: center; margin: 0 0 7px; color: rgba(239,253,253,.96); }
.login-heading { margin-bottom: 24px; }
.login-field { margin-top: 15px; }
.login-card label { display: block; font-size: 12px; font-weight: 650; color: rgba(218,242,244,.78); margin: 0 0 7px; }
.login-input-wrap { position: relative; border-radius: 14px; }
.login-input-wrap::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(71,224,208,.9), transparent);
  opacity: 0; transform: scaleX(.25); transition: opacity .25s, transform .35s ease; pointer-events: none;
}
.login-input-wrap:focus-within::after { opacity: 1; transform: scaleX(1); }
.login-input-wrap svg {
  position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  fill: none; stroke: rgba(13, 92, 99, .66); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
  transition: stroke .2s, filter .2s, transform .25s;
}
.login-input-wrap:focus-within svg { stroke: var(--primary); filter: drop-shadow(0 0 5px rgba(18,128,143,.38)); transform: translateY(-50%) scale(1.08); }
.login-card input {
  width: 100%; height: 48px; padding: 10px 14px 10px 43px; border: 1px solid rgba(255,255,255,.76); border-radius: 14px;
  background: rgba(250,255,255,.4); color: #163e45; box-shadow: inset 0 1px 0 rgba(255,255,255,.58), inset 0 -1px 2px rgba(9,69,77,.04);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .2s;
}
.login-card input::placeholder { color: rgba(54, 91, 97, .5); }
.login-card input:hover { background: rgba(255,255,255,.54); }
.login-card input:focus {
  outline: none; border-color: rgba(255,255,255,.88); background: rgba(255,255,255,.64);
  box-shadow: 0 0 0 4px rgba(18,128,143,.11), 0 9px 24px rgba(17,102,112,.08); transform: translateY(-1px);
}
.login-submit {
  height: 49px; margin-top: 8px; border-radius: 14px; justify-content: center; gap: 10px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--primary-deep), var(--primary) 55%, #23a9af); border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 13px 26px rgba(9, 91, 102, .24), inset 0 1px 0 rgba(255,255,255,.24);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.login-submit::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -45%; width: 35%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent); transition: left .6s ease;
}
.login-submit:hover::before { left: 115%; }
.login-submit:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 17px 32px rgba(9, 91, 102, .3), inset 0 1px 0 rgba(255,255,255,.24); }
.login-submit:active { transform: translateY(0); }
.login-submit.is-loading { cursor: wait; }
.login-submit.is-loading .login-arrow { width: 16px; height: 16px; font-size: 0; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
.login-arrow { font-size: 19px; line-height: 1; transition: transform .2s; }
.login-submit:hover .login-arrow { transform: translateX(3px); }
.login-card .form-error { min-height: 20px; margin-top: 8px; }

@keyframes aurora-drift-one { to { transform: translate(17vw, 13vh) scale(1.12) rotate(12deg); } }
@keyframes aurora-drift-two { to { transform: translate(-13vw, 18vh) scale(.92) rotate(-16deg); } }
@keyframes aurora-drift-three { to { transform: translate(8vw, -10vh) scale(1.14); } }
@keyframes aurora-wave-one { to { transform: translate3d(9%, 15%, 0) rotate(-4deg) scaleY(1.25); } }
@keyframes aurora-wave-two { to { transform: translate3d(-8%, -14%, 0) rotate(5deg) scaleY(.86); } }
@keyframes aurora-specks-drift { to { transform: translate3d(68px, -52px, 0) rotate(.01deg); } }
@keyframes login-bg-flow {
  0% { background-position: 42% 22%, 0% 36%; }
  50% { background-position: 58% 72%, 55% 55%; }
  100% { background-position: 35% 48%, 100% 65%; }
}
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .login-wrap { padding: 18px 14px; align-items: center; }
  .login-card { width: 100%; padding: 30px 22px 24px; border-radius: 24px; }
  .login-logo { width: 82px; height: 82px; border-radius: 21px; }
  .login-card h1 { font-size: 24px; }
  .aurora-orb-one, .aurora-orb-two, .aurora-orb-three { width: 105vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-bg, .ambient-bg::before, .aurora-orb, .aurora-ribbon, .aurora-specks { animation: none; }
  .login-card { transform: none !important; transition: none; }
  .login-card input, .login-submit, .login-arrow, .login-input-wrap::after { transition: none; }
  .login-submit.is-loading .login-arrow { animation-duration: 1.4s; }
  .hbar-fill, .chart-bar, .modal-mask, .modal { animation: none; }
}

/* ---------- 布局 ---------- */
.app { display: flex; gap: 16px; min-height: 100vh; height: 100vh; overflow: hidden; position: relative; z-index: 1; padding: 16px; }
.sidebar {
  width: 232px; flex: 0 0 232px; border: 1px solid rgba(255,255,255,.5); border-radius: 24px;
  background: var(--glass-panel);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(155%); backdrop-filter: blur(28px) saturate(155%);
  display: flex; flex-direction: column; position: relative; height: calc(100vh - 32px); overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 13px; border-bottom: 1px solid rgba(255,255,255,.34); overflow: hidden; }
.brand-logo { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; padding: 5px; }
.brand-name { font-weight: 600; font-size: 13px; line-height: 1.3; }
.nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 12px 14px; border: none; background: transparent; border-radius: 8px;
  font-size: 14px; color: var(--text); position: relative; overflow: hidden;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
}
.nav-item .ic { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s, filter .18s; }
.nav-item::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 0 4px 4px 0; background: #37d4c8; opacity: 0; transform: scaleY(.3); transition: opacity .18s, transform .18s; box-shadow: 0 0 12px rgba(55,212,200,.8); }
.nav-item:hover { background: rgba(255,255,255,.34); transform: translateX(2px); }
.nav-item:hover .ic { transform: scale(1.06); }
.nav-item.active { background: linear-gradient(90deg, rgba(224,251,248,.7), rgba(255,255,255,.32)); color: var(--primary-deep); font-weight: 650; box-shadow: inset 0 1px 0 rgba(255,255,255,.56), 0 8px 22px rgba(8,92,103,.09); }
.nav-item.active::before { opacity: 1; transform: scaleY(1); }
.nav-item.active .ic { color: #087f89; filter: drop-shadow(0 0 5px rgba(55,212,200,.36)); }
.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.34); display: flex; flex-direction: column; gap: 10px; }
.user-chip { display: flex; align-items: center; justify-content: space-between; }
.user-name { font-weight: 600; font-size: 13px; }

.content-stage { flex: 1; min-width: 0; height: calc(100vh - 32px); position: relative; overflow: hidden; border-radius: 24px; }
.content {
  width: 100%; height: 100%; padding: 24px 28px; overflow-y: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 24px;
  background: var(--glass-panel);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(155%); backdrop-filter: blur(28px) saturate(155%);
}
body.app-mode .content {
  border-color: rgba(255,255,255,.5);
  background: linear-gradient(142deg, rgba(4,43,55,.16), rgba(7,58,68,.1) 52%, rgba(8,43,67,.12));
  box-shadow: 0 24px 70px rgba(0,24,36,.3), inset 0 1px 0 rgba(255,255,255,.58), inset 1px 0 0 rgba(102,247,224,.08), inset -1px 0 0 rgba(122,149,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(108%) brightness(.78);
  backdrop-filter: blur(18px) saturate(108%) brightness(.78);
}
body.app-mode .sidebar {
  background: linear-gradient(150deg, rgba(4,43,55,.18), rgba(7,58,68,.11) 58%, rgba(8,43,67,.13));
  box-shadow: 0 24px 70px rgba(0,24,36,.3), inset 0 1px 0 rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(18px) saturate(108%) brightness(.78);
  backdrop-filter: blur(18px) saturate(108%) brightness(.78);
}
body.app-mode .page-title,
body.app-mode .section-title,
body.app-mode .brand-name,
body.app-mode .user-name,
body.app-mode .nav-item { color: rgba(235,250,251,.92); }
body.app-mode .page-sub,
body.app-mode .form-field label,
body.app-mode .muted,
body.app-mode .small { color: rgba(203,229,232,.7); }
body.app-mode .nav-item.active { color: #dffcf8; background: linear-gradient(90deg, rgba(84,218,207,.22), rgba(255,255,255,.08)); }
body.app-mode .nav-item:hover { background: rgba(255,255,255,.1); }
body.app-mode .bill-form-standalone table.items-table th { color: rgba(215,238,240,.72); }
body.app-mode .bill-form-standalone table.items-table td { color: rgba(225,244,245,.82); }
body.app-mode .bill-form-standalone .row-action { color: #65ded7; }

/* ---------- 通用 ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.page-title { font-size: 20px; font-weight: 700; margin: 0; }
.page-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-pad { padding: 18px; }
.card + .card { margin-top: 16px; }
.section-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.content .card:hover { border-color: rgba(255,255,255,.7); box-shadow: 0 16px 40px rgba(0,42,52,.15), inset 0 1px 0 rgba(255,255,255,.66); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat { padding: 16px 18px; min-height: 92px; display: flex; flex-direction: column; justify-content: center; background: var(--glass-surface-strong); }
.stat-label { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.stat-value { font-size: 16px; font-weight: 700; }
.stat-value.pos { color: var(--red); }
.stat-value.neg { color: var(--green); }
.stat-value.warn { color: var(--amber); }
.stat-value.ok { color: var(--green); }

/* 卡片内等距数据行（项目/供货商卡片） */
.stat-rows { margin-top: 10px; display: flex; flex-direction: column; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-row .k { color: var(--text-2); }

/* 仪表盘顶部 KPI 横条（居中，位于地图上方） */
.dash-map-wrap { position: relative; }
.dash-map-stats { flex: 0 0 auto; display: flex; justify-content: center; align-items: stretch; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.dms { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.3; min-width: 156px; padding: 10px 20px; }
.dms-label { font-size: 12px; }
.dms-value { font-size: 19px; font-weight: 750; letter-spacing: .01em; }
.dms-value.pos { color: var(--red); }
.dms-value.neg { color: var(--green); }
.dms-value.warn { color: var(--amber); }
.ds-trend { margin-top: 3px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 650; letter-spacing: .01em; }
.ds-trend.up { color: #b72e35; background: rgba(229,72,77,.1); }
.ds-trend.down { color: #247c37; background: rgba(47,158,68,.1); }
.ds-trend.flat { color: var(--text-2); background: rgba(107,114,128,.1); }
.ds-trend.pending { color: #a45b08; background: rgba(217,119,6,.11); }

/* 图表右上角图例（HTML 版，字号可控、固定在角落） */
.chart-legend { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--text-2); }
.chart-legend .cl-item { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .cl-item i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; transition: all .12s;
}
.btn:hover { background: var(--bg); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--red); }
.btn-danger:hover { background: #fef2f2; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 表单 ---------- */
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-field { flex: 1; min-width: 160px; }
.form-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-field label .req { color: var(--red); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: #fbfdfd;
}
.form-error { color: var(--red); font-size: 13px; min-height: 18px; margin: 4px 0; }

.seg { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button {
  border: none; background: transparent; padding: 7px 16px; border-radius: 6px; font-size: 14px; color: var(--text-2);
}
.seg button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.seg button.active.income { color: var(--red); }
.seg button.active.expense { color: var(--green); }

/* 记一笔：直接使用右侧主面板作为底板，去掉额外白色大卡片 */
.bill-form-standalone {
  padding: 4px 0 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.bill-form-standalone > .form-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
.bill-form-standalone > .form-row:first-child { grid-template-columns: minmax(190px,.72fr) minmax(240px,1.3fr) minmax(210px,1fr); }
.bill-form-standalone > .form-row:nth-child(2) { grid-template-columns: repeat(3, minmax(190px,1fr)); }
.bill-form-standalone .form-field { min-width: 0; }
.bill-form-standalone .form-field label { color: rgba(28,65,72,.72); font-weight: 560; }
.content .bill-form-standalone input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.content .bill-form-standalone select,
.content .bill-form-standalone textarea {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  color: rgba(238,252,252,.94);
  background:
    radial-gradient(circle at 6% 0%, rgba(132,255,231,.075), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(108,147,255,.07), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.115), rgba(220,249,250,.035));
  box-shadow:
    inset 0 0 0 1px rgba(0,24,36,.08),
    0 8px 22px rgba(0,35,50,.075),
    0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(8px) saturate(205%) brightness(1.04);
  backdrop-filter: blur(8px) saturate(205%) brightness(1.04);
  transition: border-color .22s, background .22s, box-shadow .22s, transform .22s;
}
.content .bill-form-standalone input::placeholder,
.content .bill-form-standalone textarea::placeholder { color: rgba(211,234,236,.45); }
.content .bill-form-standalone select option { color: #173c43; background: #eaf5f5; }

/* 不做统一整圈描边，用不同角落的短高光模拟玻璃折射 */
.content .bill-form-standalone .form-row .form-field:nth-child(4n+1) :is(input, select, textarea) {
  background:
    linear-gradient(90deg, rgba(255,255,255,.48), transparent 72%) left top / 34% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.38), transparent 72%) left top / 1px 46% no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(220,249,250,.03));
}
.content .bill-form-standalone .form-row .form-field:nth-child(4n+2) :is(input, select, textarea) {
  background:
    linear-gradient(270deg, rgba(255,255,255,.44), transparent 72%) right top / 30% 1px no-repeat,
    linear-gradient(180deg, rgba(255,255,255,.32), transparent 74%) right top / 1px 38% no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(220,249,250,.025));
}
.content .bill-form-standalone .form-row .form-field:nth-child(4n+3) :is(input, select, textarea) {
  background:
    linear-gradient(90deg, rgba(255,255,255,.36), transparent 72%) left bottom / 28% 1px no-repeat,
    linear-gradient(0deg, rgba(255,255,255,.3), transparent 72%) left bottom / 1px 34% no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(220,249,250,.02));
}
.content .bill-form-standalone .form-row .form-field:nth-child(4n) :is(input, select, textarea),
.content .bill-form-standalone > .form-field :is(input, select, textarea) {
  background:
    linear-gradient(270deg, rgba(255,255,255,.4), transparent 74%) right bottom / 32% 1px no-repeat,
    linear-gradient(0deg, rgba(255,255,255,.28), transparent 72%) right bottom / 1px 36% no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.085), rgba(220,249,250,.02));
}
.content .bill-form-standalone .items-table :is(input, select) {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(0,24,36,.07);
}
.content .bill-form-standalone textarea { min-height: 74px; resize: vertical; }
.content .bill-form-standalone input:hover,
.content .bill-form-standalone select:hover,
.content .bill-form-standalone textarea:hover { background-color: rgba(255,255,255,.055); }
.content .bill-form-standalone input:focus,
.content .bill-form-standalone select:focus,
.content .bill-form-standalone textarea:focus {
  border-color: rgba(255,255,255,.94);
  background:
    radial-gradient(circle at 8% 5%, rgba(99,255,224,.12), transparent 36%),
    radial-gradient(circle at 94% 100%, rgba(99,149,255,.11), transparent 40%),
    linear-gradient(135deg, rgba(255,255,255,.19), rgba(222,248,248,.07));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 0 0 3px rgba(84,231,219,.1), 0 14px 30px rgba(0,50,62,.1), -2px 0 rgba(55,231,209,.17), 2px 0 rgba(116,128,255,.13);
  transform: translateY(-1px);
}
.content .bill-form-standalone .seg {
  min-height: 46px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(213,244,245,.035));
  box-shadow: inset 0 0 0 1px rgba(0,24,36,.07), 0 9px 24px rgba(0,48,59,.07);
  -webkit-backdrop-filter: blur(8px) saturate(200%);
  backdrop-filter: blur(8px) saturate(200%);
}
.content .bill-form-standalone .seg button { min-width: 78px; border-radius: 10px; }
.content .bill-form-standalone .seg button { color: rgba(212,235,237,.68); }
.content .bill-form-standalone .seg button.active {
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(225,250,248,.1));
  box-shadow: 0 5px 14px rgba(0,61,70,.1), -1px 0 rgba(75,224,205,.14), 1px 0 rgba(102,139,255,.09);
}
.bill-form-standalone .items-section {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.46);
}
.bill-form-standalone .table-wrap { border: 1px solid rgba(255,255,255,.38); background: rgba(232,250,250,.035); }
.content .bill-form-standalone table.items-table { border: 0; background: transparent; box-shadow: none; }
.content .bill-form-standalone table.items-table th {
  background: rgba(255,255,255,.105);
  border-color: rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(8px) saturate(190%);
  backdrop-filter: blur(8px) saturate(190%);
}
.content .bill-form-standalone table.items-table tbody tr:nth-child(even),
.content .bill-form-standalone table.items-table tbody tr { background: transparent; }
.content .bill-form-standalone table.items-table tfoot td { background: rgba(255,255,255,.025); }
.bill-form-standalone .items-excel-tools .btn { border-radius: 10px; }

@media (max-width: 1180px) {
  .bill-form-standalone > .form-row:first-child,
  .bill-form-standalone > .form-row:nth-child(2) { grid-template-columns: repeat(2, minmax(190px,1fr)); }
}

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; position: relative; border-radius: 14px; box-shadow: inset 10px 0 18px -20px rgba(0,30,40,.5), inset -10px 0 18px -20px rgba(0,30,40,.5); }
table.tbl {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.tbl th {
  color: var(--text-2); font-weight: 600; font-size: 12px;
  background: #f7f8fa; text-transform: uppercase; letter-spacing: 0.4px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; z-index: 3; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
table.tbl tr:last-child td { border-bottom: none; }
table.tbl tbody tr:nth-child(even) { background: #fafbfc; }
table.tbl tbody tr { transition: background .16s, box-shadow .16s; }
table.tbl tbody tr:hover { background: var(--primary-soft); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-action { color: var(--primary); cursor: pointer; margin-right: 10px; font-size: 13px; transition: opacity .16s, color .16s; }
.row-action.danger { color: var(--red); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.income { background: #fef2f2; color: var(--red); }
.badge.expense { background: #e6f4ea; color: var(--green); }
.badge.warn { background: #fff4e5; color: var(--amber); }
.badge.ok { background: #e6f4ea; color: var(--green); }

.money-income { color: var(--red); font-weight: 600; }
.money-expense { color: var(--green); font-weight: 600; }
.money-neutral { font-weight: 600; }

.empty { text-align: center; color: var(--text-2); padding: 40px 0; }
.muted { color: var(--text-2); }
.small { font-size: 12px; }

/* ---------- 附件 ---------- */
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-item { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.att-item a { color: var(--primary); text-decoration: none; }
.att-item a:hover { text-decoration: underline; }

/* ---------- 账单展开明细 ---------- */
.bill-detail-cell { padding: 14px 20px 14px 48px; background: #eceef4; border-left: 3px solid var(--primary); }

/* ---------- 项目资料：文件夹树 ---------- */
.doc-layout { display: flex; gap: 16px; align-items: flex-start; }
.doc-tree { width: 280px; flex: 0 0 280px; }
.doc-main { flex: 1; min-width: 0; }
.tree { font-size: 14px; }
.tree-node { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.tree-node:hover { background: var(--bg); }
.tree-node.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tree-node .fold { width: 16px; text-align: center; color: var(--text-2); font-size: 12px; }
.tree-node .fold-del { margin-left: auto; font-size: 12px; opacity: .5; }
.tree-node .fold-del:hover { opacity: 1; }
.tree-children { margin-left: 18px; border-left: 1px dashed var(--border); padding-left: 6px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.file-row:last-child { border-bottom: none; }
.file-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.file-name .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.file-actions { display: flex; gap: 8px; white-space: nowrap; }
.file-actions a, .file-actions span { cursor: pointer; color: var(--primary); font-size: 13px; text-decoration: none; }
.file-actions .danger { color: var(--red); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
  padding: 9px 16px; border: none; background: transparent; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- 明细行 ---------- */
.items-table input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; }
.items-table select { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 13px; }
.items-table input:focus { outline: none; border-color: var(--primary); }
.items-table select:focus { outline: none; border-color: var(--primary); }
.items-table td { padding: 6px 6px; }

/* 拖动手柄与名称输入框保持同一行 */
.items-table .td-handle { width: 44px; }
.cell-handle { display: flex; align-items: center; gap: 4px; }
.cell-handle .drag-handle { flex: 0 0 auto; line-height: 1; }
.cell-handle input { flex: 1 1 auto; width: auto; min-width: 0; }
/* 数量 / 单价：纯输入，不显示数字微调箭头 */
.items-table input[type=number]::-webkit-outer-spin-button,
.items-table input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.items-table input[type=number] { -moz-appearance: textfield; }

/* 账本列表：同一天合并显示（仅当天首行显示日期，并加分组分隔线） */
table.tbl tr.bill-row.day-start td { border-top: 2px solid var(--border); }
table.tbl tbody tr.bill-row.day-start:first-child td { border-top: none; }
table.tbl tr.bill-row.day-start td.date-cell { font-weight: 600; color: var(--text); }
table.tbl td.date-cell { vertical-align: top; }
table.tbl tr.bill-row.day-cont td.date-cell { border-top: none; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(3,27,38,.42); display: flex;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
  -webkit-backdrop-filter: blur(7px) saturate(120%); backdrop-filter: blur(7px) saturate(120%);
  animation: modal-mask-in .18s ease-out both;
}
.modal {
  background: var(--glass-panel); border: 1px solid var(--glass-border); border-radius: 20px; width: 680px; max-width: 100%; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(32px) saturate(160%); backdrop-filter: blur(32px) saturate(160%);
  animation: modal-panel-in .22s cubic-bezier(.2,.78,.2,1) both;
}
@keyframes modal-mask-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-panel-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-mask.is-closing { animation: modal-mask-out .17s ease-in both; pointer-events: none; }
.modal-mask.is-closing .modal { animation: modal-panel-out .17s ease-in both; }
@keyframes modal-mask-out { to { opacity: 0; } }
@keyframes modal-panel-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.36); }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.36); }
.modal-close { border: none; background: transparent; font-size: 20px; color: var(--text-2); cursor: pointer; }

/* 弹窗内的账单表单：整体限高可滚动，材料明细区独立滚动（基本信息保持固定） */
#modal-root .bill-form {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 12px;
}
#modal-root .bill-form .items-section .table-wrap {
  max-height: 240px;
  overflow: auto;
}
/* 底部「取消 / 保存」按钮栏：滚动时固定在底部，始终可点 */
#modal-root .bill-form > div:last-child {
  position: sticky; bottom: 0; z-index: 3;
  background: rgba(236,251,250,.62);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  padding: 12px 0 4px;
}

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #1f2430; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: slidein .18s ease;
}
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- 活动日历横道图 ---------- */
.gantt { font-size: 13px; }
.gantt-header, .gantt-row { display: flex; align-items: center; }
.gantt-label { width: 150px; flex: 0 0 150px; padding: 4px 12px 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--text); }
.gantt-axis, .gantt-track { flex: 1; position: relative; min-width: 0; }
.gantt-axis { display: flex; justify-content: space-between; color: var(--text-2); font-size: 11px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.gantt-track { height: 36px; }
.gantt-body .gantt-row { border-bottom: 1px solid #f0f1f4; }
.gantt-body .gantt-row:last-child { border-bottom: none; }
.gantt-bar {
  position: absolute; top: 7px; height: 22px; border-radius: 4px; color: #fff;
  font-size: 11px; line-height: 22px; padding: 0 8px; overflow: hidden; white-space: nowrap;
  text-overflow: ellipsis; cursor: pointer;
}
.gantt-bar.done { background: #9aa0aa !important; color: #fff; text-decoration: line-through; opacity: 0.85; }

/* 日历工具栏 + 今天中轴标记 */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.gantt-today { display: none; }

/* ---------- 事件颜色选择 ---------- */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch { display: inline-block; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.color-swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px #fff inset; }

/* ---------- 仪表盘条形图（排行） ---------- */
.hbar-list { display: flex; flex-direction: column; gap: 14px; }
.hbar-row { display: grid; grid-template-columns: 180px 1fr; align-items: start; gap: 14px; padding: 8px 0; }
.hbar-left { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; min-width: 0; }
.hbar-left .hbar-name { font-weight: 600; font-size: 13px; color: var(--text); line-height: 1.35; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hbar-left .hbar-meta { font-size: 11px; color: var(--text-2); }
.hbar-track { background: #f1f3f5; height: 22px; border-radius: 4px; position: relative; overflow: hidden; align-self: center; }
.hbar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #0d5c63, #1aa7b8); border-radius: 4px; }
.hbar-fill { transform-origin: left center; animation: hbar-grow .65s cubic-bezier(.2,.78,.2,1) both; }
.hbar-value { position: relative; padding-left: 10px; line-height: 22px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.15); }
.chart-bar { transform-box: fill-box; transform-origin: center bottom; animation: chart-bar-grow .62s cubic-bezier(.2,.78,.2,1) both; }
@keyframes hbar-grow { from { transform: scaleX(0); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }
@keyframes chart-bar-grow { from { transform: scaleY(0); opacity: .25; } to { transform: scaleY(1); opacity: 1; } }

/* ---------- 详情页：受限滚动区 ---------- */
.scroll-box { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.scroll-box .tbl { margin: 0; }

/* ---------- 项目/供货商详情：分区域滚动 ---------- */
.scroll-cards { display: flex; flex-direction: column; gap: 18px; }
.scroll-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; }
.scroll-card .section-title { margin-bottom: 10px; }
.scroll-card .scroll-body { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }

/* ---------- 采购历史价格：左右分栏 ---------- */
.mat-layout { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.mat-list-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; max-height: 78vh; position: sticky; top: 0; }
.mat-list-header { display: flex; gap: 8px; margin-bottom: 10px; }
.mat-list-header input { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
.mat-list { flex: 1; overflow-y: auto; border-top: 1px solid var(--border); margin: 0 -4px; padding: 4px; }
.mat-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 6px; cursor: pointer; margin-bottom: 2px; }
.mat-item:hover { background: var(--bg); }
.mat-item.active { background: var(--primary-soft); }
.mat-item .mat-name { font-weight: 600; font-size: 13px; }
.mat-item .mat-meta { font-size: 11px; color: var(--text-2); }
.mat-item .mat-price { color: var(--primary); font-weight: 700; font-size: 13px; }
.mat-detail { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; min-height: 60vh; }

/* ---------- 拖动排序 ---------- */
.items-table tr[draggable] { cursor: grab; }
.items-table tr.drag-over { border-top: 2px solid var(--primary); }
.items-table tr.dragging { opacity: 0.4; }
.items-table td:first-child { position: relative; }
.drag-handle { display: inline-block; margin-right: 4px; color: var(--text-2); cursor: grab; font-size: 14px; user-select: none; }

/* ---------- 键盘导航高亮 ---------- */
.items-table input.cell-focus, .items-table select.cell-focus { outline: 2px solid var(--primary); outline-offset: -1px; }

/* ---------- Excel 导入按钮区 ---------- */
.items-excel-tools { display: flex; gap: 8px; align-items: center; }
.items-excel-tools input[type="file"] { display: none; }

/* ---------- 用途管理 ---------- */
.purpose-list { display: flex; flex-direction: column; gap: 4px; }
.purpose-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 6px; background: #fafbfc;
}
.purpose-item:hover { background: var(--primary-soft); }
.purpose-name { font-size: 13px; }

/* ---------- 内容区 / 弹窗：统一液态玻璃材质 ---------- */
.content, .modal {
  --card: rgba(248,255,255,.34);
  --border: rgba(255,255,255,.46);
}
.content .card,
.content .scroll-card,
.content .mat-list-wrap,
.content .mat-detail,
.modal .card,
.modal .scroll-card {
  background: var(--glass-surface);
  border-color: var(--glass-border);
  box-shadow: 0 12px 34px rgba(0,42,52,.12), inset 0 1px 0 rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(16px) saturate(135%); backdrop-filter: blur(16px) saturate(135%);
}
.content table.tbl,
.modal table.tbl {
  background: rgba(249,255,255,.3);
  border-color: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42);
}
.content table.tbl th,
.modal table.tbl th {
  background: rgba(239,250,250,.48);
  border-color: rgba(255,255,255,.44);
}
.content table.tbl tbody tr:nth-child(even),
.modal table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.18); }
.content table.tbl tbody tr:hover,
.modal table.tbl tbody tr:hover { background: rgba(222,246,246,.52); }
.content input:not([type="checkbox"]):not([type="radio"]),
.content select,
.content textarea,
.modal input:not([type="checkbox"]):not([type="radio"]),
.modal select,
.modal textarea {
  background: rgba(250,255,255,.4);
  border-color: rgba(255,255,255,.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}
.content input:focus,
.content select:focus,
.content textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus { background: rgba(255,255,255,.58); }
.content .seg,
.modal .seg { background: rgba(226,244,244,.38); }
.content .seg button.active,
.modal .seg button.active { background: rgba(255,255,255,.58); }
.content .btn:not(.btn-primary):not(.btn-danger),
.modal .btn:not(.btn-primary):not(.btn-danger) {
  background: rgba(255,255,255,.34);
  border-color: rgba(255,255,255,.5);
}
.content .btn:not(.btn-primary):not(.btn-danger):hover,
.modal .btn:not(.btn-primary):not(.btn-danger):hover { background: rgba(255,255,255,.56); }
.content .purpose-item,
.modal .purpose-item { background: rgba(255,255,255,.26); }
.content .hbar-track { background: rgba(241,243,245,.54); }

@media (hover: hover) and (pointer: fine) {
  table.tbl tbody .row-action { opacity: .42; }
  table.tbl tbody tr:hover .row-action, table.tbl tbody .row-action:focus { opacity: 1; }
}

/* ==========================================================================
   深色玻璃面板：项目账目 / 供货商 / 来往公司 三个列表页 + 详情页
   面板配方直接复用「记一笔」里 Codex 写好的选择框玻璃材质
   （.content .bill-form-standalone select），保证两处质感完全一致。
   文字色同样对齐记一笔：正文 rgba(238,252,252,.94)
   ========================================================================== */
body.app-mode {
  /* —— 玻璃面板配方（与记一笔选择框逐值一致） —— */
  --g-panel-border: rgba(255,255,255,.15);
  --g-panel-bg:
    radial-gradient(circle at 6% 0%, rgba(132,255,231,.075), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(108,147,255,.07), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.115), rgba(220,249,250,.035));
  --g-panel-shadow:
    inset 0 0 0 1px rgba(0,24,36,.08),
    0 8px 22px rgba(0,35,50,.075),
    0 1px 0 rgba(255,255,255,.04);
  --g-panel-blur: blur(8px) saturate(205%) brightness(1.04);
  /* —— 文字色（取自记一笔：正文 .94 / 次要 .62 / 表头 .72） —— */
  --g-text: rgba(238,252,252,.94);
  --g-text-2: rgba(211,234,236,.62);
  --g-text-3: rgba(215,238,240,.72);
  --g-line: rgba(255,255,255,.12);
  /* —— 深底上的业务语义色：仍是红=进账 / 绿=支出，仅提亮以保证可读 —— */
  --g-money-in: #ff8a8e;
  --g-money-out: #5fd97a;
}

/* ---------- 任务1：列表页的项目 / 公司卡片 ---------- */
body.app-mode .card.stat[data-action="open-project"],
body.app-mode .card.stat[data-action="open-supplier"] {
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .card.stat[data-action="open-project"]:hover,
body.app-mode .card.stat[data-action="open-supplier"]:hover {
  border-color: rgba(255,255,255,.3);
  box-shadow:
    inset 0 0 0 1px rgba(0,24,36,.08),
    0 14px 34px rgba(0,35,50,.16),
    0 1px 0 rgba(255,255,255,.07);
  transform: translateY(-2px);
}
body.app-mode .card.stat[data-action="open-project"] .stat-label,
body.app-mode .card.stat[data-action="open-supplier"] .stat-label { color: var(--g-text-2); }
body.app-mode .card.stat[data-action="open-project"] .stat-row,
body.app-mode .card.stat[data-action="open-supplier"] .stat-row { border-bottom-color: var(--g-line); }
body.app-mode .card.stat[data-action="open-project"] .stat-row .k,
body.app-mode .card.stat[data-action="open-supplier"] .stat-row .k { color: var(--g-text-2); }

/* ---------- 任务2：详情页的四个板块（.scroll-card） ---------- */
body.app-mode .scroll-card {
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .scroll-card .section-title { color: rgba(235,250,251,.92); }
body.app-mode .scroll-card .stat-label { color: var(--g-text-2); }
body.app-mode .scroll-card .stat-value { color: var(--g-text); }
body.app-mode .scroll-card .stat-value.pos { color: var(--g-money-in); }
body.app-mode .scroll-card .stat-value.neg { color: var(--g-money-out); }
body.app-mode .scroll-card .stat-value.warn { color: #ffc46b; }
body.app-mode .scroll-card .stat-value.ok { color: var(--g-money-out); }
body.app-mode .scroll-card .scroll-body { border-color: var(--g-line); background: rgba(232,250,250,.035); }
body.app-mode .scroll-card .empty { color: var(--g-text-2); }

/* 板块内的表格：跟随玻璃底改深色 */
body.app-mode .scroll-card table.tbl {
  background: transparent;
  border-color: var(--g-line);
  box-shadow: none;
}
body.app-mode .scroll-card table.tbl th {
  color: var(--g-text-3);
  background: rgba(255,255,255,.05);
  border-color: var(--g-line);
}
body.app-mode .scroll-card table.tbl th,
body.app-mode .scroll-card table.tbl td { border-bottom-color: var(--g-line); }
body.app-mode .scroll-card table.tbl td { color: rgba(225,244,245,.82); }
body.app-mode .scroll-card table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
body.app-mode .scroll-card table.tbl tbody tr:hover { background: rgba(255,255,255,.075); }
body.app-mode .scroll-card .row-action { color: #65ded7; }

/* 板块内的筛选下拉 / 输入框 / 按钮：统一成小的玻璃块 */
body.app-mode .scroll-card select,
body.app-mode .scroll-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.app-mode .page-head .btn:not(.btn-primary):not(.btn-danger) {
  border: 1px solid var(--g-panel-border);
  border-radius: 10px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .scroll-card select option { color: #173c43; background: #eaf5f5; }
body.app-mode .page-head .btn:not(.btn-primary):not(.btn-danger):hover {
  border-color: rgba(255,255,255,.32);
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(220,249,250,.06));
}

/* ---------- 任务3：账单展开明细（浅灰底 → 深色玻璃，浅色文字）----------
   该面板为 5 处共用（账本总览 / 项目账目 / 供货商 / 来往公司 / 计划采购），
   改这一处即可全部修复。 */
body.app-mode .bill-detail-cell {
  padding: 14px 20px 14px 48px;
  background: rgba(6, 38, 48, .55);
  border-left: 3px solid rgba(101, 222, 215, .5);
  color: var(--g-text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
body.app-mode .bill-detail-cell table.tbl {
  background: transparent;
  border-color: var(--g-line);
  box-shadow: none;
}
body.app-mode .bill-detail-cell table.tbl th {
  color: var(--g-text-3);
  background: rgba(255,255,255,.05);
  border-color: var(--g-line);
}
body.app-mode .bill-detail-cell table.tbl th,
body.app-mode .bill-detail-cell table.tbl td { border-bottom-color: var(--g-line); }
body.app-mode .bill-detail-cell table.tbl td { color: rgba(225,244,245,.82); }
body.app-mode .bill-detail-cell table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
body.app-mode .bill-detail-cell .muted,
body.app-mode .bill-detail-cell .small { color: var(--g-text-2); }
body.app-mode .bill-detail-cell a { color: #65ded7; }

/* ---------- 账本总览：统计横条 + 无底筛选区 + 玻璃表格 ---------- */
body.app-mode .ledger-summary {
  display: flex; align-items: stretch;
  margin-bottom: 16px; overflow: hidden;
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .ledger-summary .ls-item {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
}
body.app-mode .ledger-summary .ls-item + .ls-item { border-left: 1px solid var(--g-line); }
body.app-mode .ledger-summary .ls-label { color: var(--g-text-2); font-size: 13px; white-space: nowrap; }
body.app-mode .ledger-summary .ls-value { font-size: 20px; font-weight: 700; color: var(--g-text); font-variant-numeric: tabular-nums; }
body.app-mode .ledger-summary .ls-value.pos { color: var(--g-money-in); }
body.app-mode .ledger-summary .ls-value.neg { color: var(--g-money-out); }

/* 筛选区：取消面板底色，控件直接落在信息板上 */
body.app-mode .ledger-filters {
  margin-bottom: 16px; padding: 0 2px;
  background: none; border: 0; box-shadow: none;
}
body.app-mode .ledger-filters .form-field label { color: var(--g-text-2); }

body.app-mode .ledger-table-card {
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode #all-table table.tbl {
  background: transparent;
  border-color: var(--g-line);
  box-shadow: none;
}
body.app-mode #all-table table.tbl th {
  color: var(--g-text-3);
  background: rgba(255,255,255,.05);
  border-color: var(--g-line);
}
body.app-mode #all-table table.tbl th,
body.app-mode #all-table table.tbl td { border-bottom-color: var(--g-line); }
body.app-mode #all-table table.tbl td { color: rgba(225,244,245,.82); }
body.app-mode #all-table table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
body.app-mode #all-table table.tbl tbody tr:hover { background: rgba(255,255,255,.075); }
body.app-mode #all-table .row-action { color: #65ded7; }

/* ---------- 计划采购订单：面板 + 表格改深色玻璃 ---------- */
body.app-mode .po-table-card {
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .po-table-card .section-title { color: rgba(235,250,251,.92); }
body.app-mode .po-table-card table.tbl {
  background: transparent;
  border-color: var(--g-line);
  box-shadow: none;
}
body.app-mode .po-table-card table.tbl th {
  color: var(--g-text-3);
  background: rgba(255,255,255,.05);
  border-color: var(--g-line);
}
body.app-mode .po-table-card table.tbl th,
body.app-mode .po-table-card table.tbl td { border-bottom-color: var(--g-line); }
body.app-mode .po-table-card table.tbl td { color: rgba(225,244,245,.82); }
body.app-mode .po-table-card table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
body.app-mode .po-table-card table.tbl tbody tr:hover { background: rgba(255,255,255,.075); }
body.app-mode .po-table-card .row-action { color: #65ded7; }
body.app-mode .po-table-card .empty { color: var(--g-text-2); }

/* ---------- 任务1：支付方式做成徽章，排在类型徽章右侧 ---------- */
.badge-row { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.badge.pay-cash { background: #e0f4f5; color: #0e7490; }
.badge.pay-credit { background: #fff4e5; color: #b45309; }

/* ---------- 任务2：菜单激活态图标看不清 ----------
   根因：.nav-item.active .ic 把图标设成深青 #087f89，深色背景下与背景糊在一起。
   深色模式下改为亮青色（与激活态左侧强调条 #37d4c8 同一色系）。 */
body.app-mode .nav-item.active .ic {
  color: #7df0e2;
  filter: drop-shadow(0 0 6px rgba(55,212,200,.45));
}

/* ---------- 任务3：内容区全面玻璃化（覆盖 7 个页面 + 仪表盘）----------
   采购历史价格 / 项目资料管理 / 公司文件 / 回收站 / 用户管理 / 访问记录 / 操作日志
   这些页面的容器都是 .card / .mat-list-wrap / .mat-detail，统一转深色玻璃。 */
body.app-mode .content .card,
body.app-mode .content .mat-list-wrap,
body.app-mode .content .mat-detail {
  border: 1px solid var(--g-panel-border);
  border-radius: 16px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
/* 内容区表格 → 深色 */
body.app-mode .content table.tbl {
  background: transparent;
  border-color: var(--g-line);
  box-shadow: none;
}
body.app-mode .content table.tbl th {
  color: var(--g-text-3);
  background: rgba(255,255,255,.05);
  border-color: var(--g-line);
}
body.app-mode .content table.tbl th,
body.app-mode .content table.tbl td { border-bottom-color: var(--g-line); }
body.app-mode .content table.tbl td { color: rgba(225,244,245,.82); }
body.app-mode .content table.tbl tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
body.app-mode .content table.tbl tbody tr:hover { background: rgba(255,255,255,.075); }
body.app-mode .content .row-action { color: #65ded7; }

/* 卡片悬停反馈（全局规则优先级高于原 .content .card:hover，需补回） */
body.app-mode .content .card:hover {
  border-color: rgba(255,255,255,.3);
  box-shadow:
    inset 0 0 0 1px rgba(0,24,36,.08),
    0 14px 34px rgba(0,35,50,.16),
    0 1px 0 rgba(255,255,255,.07);
}

/* 内容区文字与语义色 */
body.app-mode .content .stat-label { color: var(--g-text-2); }
body.app-mode .content .empty { color: var(--g-text-2); }
body.app-mode .content .card .muted,
body.app-mode .content .card .small { color: var(--g-text-2); }
body.app-mode .content .stat-value { color: var(--g-text); }
body.app-mode .content .stat-value.pos { color: var(--g-money-in); }
body.app-mode .content .stat-value.neg { color: var(--g-money-out); }
body.app-mode .content .stat-value.warn { color: #ffc46b; }
body.app-mode .content .stat-value.ok { color: var(--g-money-out); }
body.app-mode .content .money-income { color: var(--g-money-in); }
body.app-mode .content .money-expense { color: var(--g-money-out); }

/* 仪表盘条形图轨道（原为浅色，深底上会刺眼） */
body.app-mode .content .hbar-track { background: rgba(255,255,255,.08); }
body.app-mode .content .hbar-row .k,
body.app-mode .content .hbar-row .hbar-label { color: var(--g-text-2); }

/* 项目资料管理的文件夹树 */
body.app-mode .content .tree-node.active { background: rgba(84,218,207,.18); color: var(--g-text); }
body.app-mode .content .tree-node:hover { background: rgba(255,255,255,.08); }

/* 采购历史价格：左侧材料列表的选中/悬停/价格色（原为浅色） */
body.app-mode .content .mat-item:hover { background: rgba(255,255,255,.08); }
body.app-mode .content .mat-item.active { background: rgba(84,218,207,.18); }
body.app-mode .content .mat-item .mat-name { color: var(--g-text); }
body.app-mode .content .mat-item .mat-meta { color: var(--g-text-2); }
body.app-mode .content .mat-item .mat-price { color: #65ded7; }
body.app-mode .content .mat-list { border-top-color: var(--g-line); }
body.app-mode .content .mat-list-header input {
  border: 1px solid var(--g-panel-border);
  border-radius: 10px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
}

/* ---------- 任务1（本轮）：活动日历去面板底 + 时间轴/任务名配色 ---------- */
body.app-mode .cal-panel {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 6px 0 0 !important;
}
body.app-mode .gantt-label { color: var(--g-text); }
body.app-mode .gantt-axis { color: var(--g-text-2); border-bottom-color: var(--g-line); }
body.app-mode .gantt-body .gantt-row { border-bottom-color: var(--g-line); }
body.app-mode .gantt-bar.done { background: rgba(154,160,170,.55) !important; color: rgba(255,255,255,.8); }

/* ---------- 全站下拉框/日期框统一玻璃（用户要求"后续默认下拉都这种"） ---------- */
body.app-mode .content select,
body.app-mode .content input[type="date"] {
  border: 1px solid var(--g-panel-border);
  border-radius: 10px;
  color: var(--g-text);
  background: var(--g-panel-bg);
  box-shadow: var(--g-panel-shadow);
  -webkit-backdrop-filter: var(--g-panel-blur);
  backdrop-filter: var(--g-panel-blur);
}
body.app-mode .content select option { color: #173c43; background: #eaf5f5; }
body.app-mode .content input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }

/* ==========================================================================
   仪表盘：中国 2.5D 地图（无卡片外壳、无悬浮指引，直接落在内容板上）
   地图为自包含 SVG，不依赖任何境外地图服务、无需 API Key
   ========================================================================== */
/* 三个图表暂时隐藏时，若恢复显示则横向排布 */
.dash-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; min-width: 0; margin-top: 16px; }

/* 仪表盘整块吃掉内容区可视高度：
   内容区高度 = 视口 - .app 内边距(16×2) - .content 内边距(24×2) - .content 边框(1×2) ≈ 100vh - 84px
   这样仪表盘不会产生滚动条；地图再按 flex 剩余空间自适应缩放 */
.dash-map-wrap { display: flex; flex-direction: column; height: calc(100vh - 84px); min-height: 0; }
.dash-map-wrap .page-head { flex: 0 0 auto; margin-bottom: 12px; }

/* 地图面板：无背景框；地图按剩余高度等比缩放到刚好填满（不裁切、不溢出） */
.map-panel { flex: 1 1 auto; min-height: 0; position: relative; }
.map-stage { height: 100%; perspective: 1500px; perspective-origin: 50% 42%; }
.cn-map { width: 100%; height: 100%; display: block; }

/* 2.5D：主图平面后倾；南海诸岛小图保持正面朝上以确保可读 */
/* 2.5D：主图平面后倾。角度越小，垂直方向压得越少、地图占的高度越大（34° 为空间利用率与立体感的折中） */
.map-plane { transform-box: fill-box; transform-origin: 50% 34%; transform: rotateX(34deg); }

/* 省份板块：玻璃填充 + 边缘描边 + 分层投影形成厚度 */
.map-faces path {
  fill: url(#cnProvFill);
  stroke: rgba(160,240,238,.5);
  stroke-width: .7;
  stroke-linejoin: round;
}
.map-slab {
  filter:
    drop-shadow(0 3px 0 rgba(3,28,38,.62))
    drop-shadow(0 6px 0 rgba(3,28,38,.46))
    drop-shadow(0 12px 10px rgba(0,0,0,.4));
}
/* 有公司/项目的省份：淡散光 */
.map-glow-layer {
  filter: drop-shadow(0 0 5px rgba(111,231,220,.7)) drop-shadow(0 0 15px rgba(60,200,205,.45));
}
.map-glow-layer path {
  fill: url(#cnGlowFill);
  stroke: rgba(190,255,250,.88);
  stroke-width: .9;
  stroke-linejoin: round;
}

/* 流向线束 */
.map-flow-base { fill: none; stroke: rgba(111,231,220,.2); stroke-width: 1; }
.map-flow {
  fill: none; stroke: #7df0e2; stroke-width: 1.8; stroke-linecap: round;
  stroke-dasharray: 8 10;
  animation: map-flow-run 1.6s linear infinite;
  filter: drop-shadow(0 0 4px rgba(111,231,220,.85));
}
@keyframes map-flow-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -36; } }

/* 标记点 */
.map-marker .mk-core { stroke: rgba(255,255,255,.85); stroke-width: .8; }
.map-marker-company .mk-core { fill: #ffc46b; }
.map-marker-project .mk-core { fill: #6fe7dc; }
.map-marker .mk-pulse {
  fill: none; stroke-width: 1.2;
  transform-box: fill-box; transform-origin: center;
  animation: mk-pulse 2.4s ease-out infinite;
}
.map-marker-company .mk-pulse { stroke: #ffc46b; }
.map-marker-project .mk-pulse { stroke: #6fe7dc; }
@keyframes mk-pulse {
  0% { transform: scale(.5); opacity: .9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* 南海诸岛（岛礁 + 九段线）：按真实比例并入主图，不另设小图 */
.map-sea-line { fill: rgba(170,244,240,.78); stroke: rgba(170,244,240,.5); stroke-width: .5; }
.map-sea-dot { fill: rgba(190,250,244,.95); }

@media (max-width: 1180px) {
  .dash-side { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .map-flow, .map-marker .mk-pulse { animation: none; }
}

/* ---------- 仪表盘 KPI 横条（深色场景：玻璃面板 + 白色系文字）---------- */
body.app-mode .dms {
  color: rgba(238,252,252,.94);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background:
    radial-gradient(circle at 6% 0%, rgba(132,255,231,.075), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(108,147,255,.07), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.115), rgba(220,249,250,.035));
  box-shadow: inset 0 0 0 1px rgba(0,24,36,.08), 0 8px 22px rgba(0,35,50,.075), 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(8px) saturate(205%) brightness(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(205%) brightness(1.04);
}
body.app-mode .dms-label { color: rgba(211,234,236,.62); }
body.app-mode .dms-value { color: rgba(238,252,252,.96); }
body.app-mode .dms-value.pos { color: var(--g-money-in); }
body.app-mode .dms-value.neg { color: var(--g-money-out); }
body.app-mode .dms-value.warn { color: #ffc46b; }
body.app-mode .ds-trend.up { color: #ffb3b6; background: rgba(255,138,142,.16); }
body.app-mode .ds-trend.down { color: #9ff0b0; background: rgba(95,217,122,.16); }
body.app-mode .ds-trend.flat { color: rgba(211,234,236,.62); background: rgba(255,255,255,.08); }
body.app-mode .ds-trend.pending { color: #ffd894; background: rgba(255,196,107,.15); }

/* ---------- 行政区划三级联动选择器（弹窗内）---------- */
.area-picker .area-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.area-picker .area-tip { margin: 0 0 8px; font-size: 12px; color: var(--text-2); }
.area-picker select:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 720px) {
  .area-picker .area-row { grid-template-columns: 1fr; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .mat-layout { grid-template-columns: 1fr; }
  .mat-list-wrap { position: static; max-height: 50vh; }
}
@media (max-width: 860px) {
  .sidebar { width: 64px; flex-basis: 64px; }
  .brand-name, .user-name { display: none; }
  .nav-item { justify-content: center; text-align: center; padding: 12px 0; font-size: 0; }
  .nav-item .ic { display: inline-block; font-size: 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .hbar-row { grid-template-columns: 120px 1fr; }
  .bill-form-standalone > .form-row:first-child,
  .bill-form-standalone > .form-row:nth-child(2) { grid-template-columns: 1fr; }
}
