/* 云算账企服 · 税务蓝（照手提袋 VI：深税务蓝侧栏 + 口号胶囊）
   税务蓝 #1D4A9C 侧栏 / 操作蓝 #3567D1 / 印泥红 #C2372C 逾期·驳回·印章 / 账簿绿 #2B7A57 入库·已续 / 底色 #EEF2F8 */
:root {
  --ink: #1D4A9C; --ink-2: #2858B0; --ink-3: #AFC2E6;
  --blue: #3567D1; --blue-d: #2650B0; --blue-l: #EAF0FC;
  --red: #C2372C; --red-l: #FBECEA; --green: #2B7A57; --green-l: #E7F3ED; --amber: #B7791F; --amber-l: #FDF4E3;
  --bg: #EEF2F8; --card: #FFFFFF; --line: #DAE2EF; --rule: #EDF1F8; --text: #1E2B3D; --muted: #687A92;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Segoe UI", sans-serif;
  --cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --side-w: 212px;
}
html { font-size: 14px; }
body { background: var(--bg); color: var(--text); font-family: var(--cn); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.num, .table td, .stat, .paper .calc { font-variant-numeric: tabular-nums; }

/* ---------- 侧栏 ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: linear-gradient(180deg, #1F50A8 0%, var(--ink) 55%, #183F86 100%); color: #fff; display: flex; flex-direction: column; z-index: 40; }
.side-brand { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-mark { display: flex; align-items: flex-end; gap: 6px; }
.side-mark img { height: 36px; display: block; }
.side-mark em { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #DCE6FA; padding-bottom: 1px; }
.side-slogan { margin-top: 12px; padding: 3px 12px; border-radius: 999px; background: #4C78D6; color: #fff; font-size: 11.5px; letter-spacing: .32em; text-indent: .32em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.side-nav a { display: block; color: #D3DEF4; padding: 9px 22px; font-size: 14.5px; border-left: 3px solid transparent; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-nav a.on { color: #fff; background: rgba(255,255,255,.13); border-left-color: #fff; font-weight: 600; }
.side-nav .side-cta { margin: 6px 16px 10px; border: 1px solid rgba(255,255,255,.45); border-left-width: 1px; border-radius: 6px; color: #fff; text-align: center; padding: 8px 0; background: rgba(255,255,255,.1); }
.side-nav .side-cta:hover, .side-nav .side-cta.on { background: #fff; border-color: #fff; color: var(--ink); }
.side-group { color: #93AADB; font-size: 12px; padding: 16px 22px 6px; }
.side-user { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; padding: 14px 18px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-avatar { width: 34px; height: 34px; border-radius: 50%; background: #4C78D6; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.side-who { line-height: 1.25; min-width: 0; }
.side-who b { display: block; font-weight: 600; }
.side-who small { color: var(--ink-3); font-size: 11.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-links { grid-column: 1 / -1; display: flex; gap: 14px; padding-top: 6px; font-size: 12.5px; }
.side-links a { color: var(--ink-3); } .side-links a:hover { color: #fff; }
.side-mask { display: none; }

/* ---------- 顶部导航 + 左侧二级菜单（照经纬布局，税务蓝） ---------- */
:root { --top-h: 56px; --sub-w: 188px; }
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 50; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  background: linear-gradient(90deg, #1A4596 0%, #1F50A8 55%, #2558B6 100%); color: #fff; box-shadow: 0 2px 10px -4px rgba(10,30,80,.45); }
.tb-brand { display: flex; align-items: flex-end; gap: 6px; margin-right: 18px; flex-shrink: 0; }
.tb-brand img { height: 30px; display: block; }
.tb-brand em { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .12em; color: #DCE6FA; padding-bottom: 1px; }
.tb-nav { display: flex; height: 100%; }
.tb-nav a { display: flex; align-items: center; padding: 0 18px; color: #DCE6FA; font-size: 15px; height: 100%; position: relative; white-space: nowrap; }
.tb-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.tb-nav a.on { color: #fff; background: rgba(8,24,70,.28); font-weight: 600; }
.tb-nav a.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #fff; }
.tb-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.tb-user a { color: #C9D7F3; } .tb-user a:hover { color: #fff; }
.tb-slogan { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); letter-spacing: .25em; font-size: 12px; color: #EAF0FC; }
.tb-avatar { width: 30px; height: 30px; border-radius: 50%; background: #4C78D6; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.tb-who { display: flex; flex-direction: column; line-height: 1.15; } .tb-who small { color: #B9CAEB; font-size: 11px; }
.nav-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 20px; }
.subnav { position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--sub-w); background: #fff; border-right: 1px solid var(--line); padding: 10px 0; overflow-y: auto; z-index: 40; }
.sn-group { color: #8A99AD; font-size: 12px; padding: 14px 20px 6px; letter-spacing: .05em; }
.subnav a { display: block; padding: 8px 20px 8px 28px; color: var(--text); font-size: 14px; border-left: 3px solid transparent; }
.subnav a:hover { background: var(--blue-l); color: var(--ink); }
.subnav a.on { background: var(--blue-l); color: var(--ink); font-weight: 600; border-left-color: var(--blue); }
.nav-mask { display: none; }
.has-top .shell { padding-top: var(--top-h); }
.has-sub .shell { margin-left: var(--sub-w); }
.crumb { color: var(--muted); font-size: 12px; margin-bottom: 2px; }
@media (max-width: 1280px) { .tb-slogan { display: none; } }
@media (max-width: 991px) {
  .nav-toggle { display: inline-block; }
  .tb-nav { position: fixed; top: var(--top-h); left: 0; right: 0; flex-direction: column; height: auto; background: #1F50A8; display: none; }
  .tb-nav a { padding: 12px 20px; } .nav-open .tb-nav { display: flex; }
  .tb-who, .tb-user a:first-of-type { display: none; }
  .has-sub .shell { margin-left: 0; } .subnav { display: none; }
  .nav-open .subnav { display: block; top: auto; bottom: 0; height: 45vh; width: 100%; border-top: 1px solid var(--line); }
}
@media print { .topbar, .subnav { display: none !important; } .has-top .shell { padding-top: 0; } .has-sub .shell { margin-left: 0; } }

/* ---------- 内容区 ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.has-side .shell { margin-left: var(--side-w); }
.shell main { flex: 1; padding: 22px 28px 10px; }
.pagebar { display: flex; align-items: center; gap: 14px; padding: 18px 28px 0; }
.pagebar h1 { font-size: 21px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: .02em; }
.pagebar-tools { margin-left: auto; display: flex; gap: 8px; }
.side-toggle { display: none; border: 0; background: var(--ink); color: #fff; border-radius: 6px; width: 36px; height: 36px; font-size: 18px; }
.site-footer { text-align: center; color: #98A6B3; font-size: 12px; padding: 18px 0 22px; }
.site-footer a { color: #98A6B3; }

/* ---------- 卡片 / 表格 / 表单 ---------- */
.card { border: 1px solid var(--line); border-radius: 8px; box-shadow: none; background: var(--card); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); padding: 12px 16px; font-size: 14.5px; }
.card-body { padding: 16px; }
.table { margin: 0; --bs-table-bg: transparent; color: var(--text); }
.table > :not(caption) > * > * { padding: 9px 12px; border-bottom-color: var(--rule); }
.table thead th { background: #F5F8FA; color: var(--muted); font-weight: 600; font-size: 12.5px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #F4F9FC; }
.table-bordered > :not(caption) > * > * { border-color: var(--line); }
.table td { font-size: 13.5px; }
.table-warning, .table-warning > * { --bs-table-bg: #FBF6E7 !important; }
.row-stopped td { color: #A3B0BC; }
.table > tbody > tr.row-review > * { --bs-table-bg-type: #FFF4B8; --bs-table-bg-state: #FFF4B8; background-color: #FFF4B8; }
.review-card { border-color: #E9C94B; } .review-card .card-header { background: #FFF4B8; }
.row-overdue > td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.row-overdue td:first-child { color: var(--red); font-weight: 600; }
.form-control, .form-select { border-color: #CDD7E0; border-radius: 6px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(53,103,209,.15); }
.form-label { color: var(--muted); margin-bottom: 3px; }
.btn { border-radius: 6px; font-weight: 500; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-d); border-color: var(--blue-d); }
.btn-success { background: var(--green); border-color: var(--green); }
.btn-success:hover { background: #22624A; border-color: #22624A; }
.btn-outline-success { color: var(--green); border-color: #9CCAB5; }
.btn-outline-success:hover { background: var(--green); border-color: var(--green); }
.btn-outline-primary { color: var(--blue-d); border-color: #9CCFEA; }
.btn-outline-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-outline-danger { color: var(--red); border-color: #E3A7A1; }
.btn-outline-danger:hover { background: var(--red); border-color: var(--red); }
.btn-outline-secondary { color: var(--muted); border-color: #CDD7E0; }
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: 8px 4px; margin-right: 22px; }
.nav-tabs .nav-link.active { color: var(--ink); background: transparent; border-bottom-color: var(--blue); font-weight: 600; }
.alert { border-radius: 8px; border: 0; }
.alert-success { background: var(--green-l); color: var(--green); }
.alert-danger { background: var(--red-l); color: var(--red); }
.alert-warning { background: var(--amber-l); color: #7A5214; }
.pagination .page-link { color: var(--ink); border-color: var(--line); }
.pagination .active .page-link { background: var(--ink); border-color: var(--ink); }
.badge { font-weight: 500; border-radius: 4px; padding: .35em .6em; }
.bg-success { background: var(--green-l) !important; color: var(--green) !important; }
.bg-secondary { background: #EEF1F4 !important; color: #7B8A98 !important; }

/* 状态：像盖在单子上的章 */
[class*="badge-s-"] { background: transparent; border: 1px solid currentColor; border-radius: 4px; font-weight: 600; }
.badge-s-草稿 { color: #8494A3; }
.badge-s-审核中, .badge-s-待主管审核, .badge-s-待公司审核 { color: var(--amber); background: var(--amber-l); }
.badge-s-已入库 { color: var(--green); background: var(--green-l); }
.badge-s-已驳回 { color: var(--red); background: var(--red-l); }
.badge-s-已作废 { color: #9AA6B2; text-decoration: line-through; }

/* ---------- 工作台数字 ---------- */
.stat { font-family: var(--num); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1.15; letter-spacing: .01em; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-bottom: 4px; }
.stat .text-danger { color: var(--red) !important; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 18px; }
.kpi > div { padding: 16px 20px; border-right: 1px solid var(--rule); }
.kpi > div:last-child { border-right: 0; }
.kpi small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- 登录 ---------- */
.no-side .shell main { padding: 0; display: flex; }
.login { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - 60px); }
/* 左半边：税务蓝底 + 柔光 + 细点阵 + 同心细环，只放 云算账企服 / 口号 / 公司名 */
.login-art { color: #fff; padding: 56px 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(96,148,255,.55) 0%, rgba(96,148,255,0) 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(10,32,90,.75) 0%, rgba(10,32,90,0) 60%),
    linear-gradient(155deg, #2B62C8 0%, #1D4A9C 52%, #163A80 100%); }
.login-art::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 75%); }
.login-glow { position: absolute; z-index: -1; width: 520px; height: 520px; left: 50%; top: 45%; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(140,180,255,.35) 0%, rgba(140,180,255,0) 65%); filter: blur(10px); }
.login-rings { position: absolute; z-index: -1; width: 640px; height: 640px; left: 50%; top: 45%; transform: translate(-50%, -50%); }
.login-brand { display: flex; flex-direction: column; align-items: center; margin-top: -48px; animation: login-in .8s ease-out both; }
.login-mark { display: flex; align-items: flex-end; gap: 12px; }
.login-mark img { height: 92px; width: auto; display: block; filter: drop-shadow(0 10px 24px rgba(8,26,74,.35)); }
.login-mark em { font-style: normal; font-size: 26px; font-weight: 600; letter-spacing: .16em; color: #DDE7FB; padding-bottom: 6px; }
.login-rule { width: 56px; height: 2px; margin: 26px 0 22px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); }
.login-slogan { padding: 10px 36px; border-radius: 999px; font-size: 18px; letter-spacing: .55em; text-indent: .55em; white-space: nowrap; color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06)); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 12px 30px -16px rgba(5,20,60,.6); }
.login-company { position: absolute; bottom: 36px; left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: .3em; text-indent: .3em; color: rgba(255,255,255,.78); }
.login-company::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 14px; background: rgba(255,255,255,.4); }
@keyframes login-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .login-brand { animation: none; } }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login-form form { width: 100%; max-width: 340px; }
.login-form h1 { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.login-form .form-control { height: 44px; }
.login-form .btn { height: 44px; font-size: 15px; }
.no-side .site-footer { position: fixed; bottom: 0; right: 0; width: 47.6%; background: transparent; }

/* ---------- 流转单（照纸质单原样） ---------- */
.paper { background: #fff; max-width: 1040px; margin: 0 auto; border: 1.5px solid var(--ink); font-size: 14.5px; position: relative; box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(24,52,110,.35); }
.paper table { width: 100%; border-collapse: collapse; }
.paper td { border: 1px solid #9FB0BF; padding: 8px 10px; vertical-align: middle; }
.paper .lbl { white-space: nowrap; width: 1%; font-weight: 600; color: var(--ink); background: #F6F9FB; }
.paper .title-row td { border-bottom: 1.5px solid var(--ink); background: #fff; }
.paper .title { font-size: 25px; font-weight: 700; letter-spacing: .14em; text-align: center; color: var(--ink); }
.paper .paper-logo { height: 38px; }
.paper input[type=text], .paper input[type=number], .paper input[type=date], .paper input[type=tel], .paper select, .paper textarea {
  border: 0; border-bottom: 1px solid #B8C6D2; background: transparent; border-radius: 0; padding: 2px 4px; font-size: 14.5px; color: var(--text); }
.paper input[type=number], .paper .calc { font-family: var(--num); }
.paper input:focus, .paper select:focus, .paper textarea:focus { outline: none; border-bottom: 2px solid var(--blue); background: var(--blue-l); }
.paper textarea { width: 100%; border: 1px dashed #B8C6D2; min-height: 110px; }
.paper .w-num { width: 96px; text-align: right; } .paper .w-yr { width: 70px; text-align: center; } .paper .w-mo { width: 48px; text-align: center; }
.paper .chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; white-space: nowrap; cursor: pointer; }
.paper .chk input { width: 15px; height: 15px; accent-color: var(--blue); }
.paper .calc { font-weight: 700; color: var(--blue-d); font-size: 16px; }
.paper .pay td { text-align: center; }
.paper .pay tr:first-child td { background: #F6F9FB; color: var(--muted); font-size: 13px; }
.paper .pay input, .paper .pay select { width: 100%; min-width: 70px; text-align: center; }
.paper .hint { font-size: 12px; color: #8494A3; }
.paper .ro { padding: 1px 4px; min-height: 1.4em; display: inline-block; font-weight: 600; }
.paper .ticked::before { content: "☑ "; color: var(--blue-d); }
.paper .unticked { color: #A9B6C2; } .paper .unticked::before { content: "☐ "; }
.paper .stamp { display: inline-block; border: 2px solid var(--red); color: var(--red); padding: 1px 8px; transform: rotate(-6deg); font-weight: 700; border-radius: 3px; }
.paper .stamp.ok { border-color: var(--green); color: var(--green); }
/* 单据右上角的大印章 */
.seal { position: absolute; top: 112px; right: 300px; width: 108px; height: 108px; border-radius: 50%; border: 3px solid; display: grid; place-items: center;
  transform: rotate(-16deg); font-size: 21px; font-weight: 800; letter-spacing: .12em; pointer-events: none; opacity: .82; mix-blend-mode: multiply; z-index: 2; }
.seal::after { content: ""; position: absolute; inset: 6px; border: 1px solid; border-radius: 50%; }
.seal small { position: absolute; bottom: 24px; font-size: 10px; font-weight: 500; letter-spacing: 0; font-family: var(--num); }
.seal-已入库 { color: var(--green); } .seal-已驳回 { color: var(--red); } .seal-已作废 { color: #8C99A6; }
.seal-审核中, .seal-待主管审核, .seal-待公司审核 { color: var(--amber); } .seal-草稿 { color: #9AA8B5; }

/* ---------- 流转单提单（收款登记式） ---------- */
.oform .card-header { font-size: 15px; }
.oform .form-label { color: var(--text); font-weight: 500; font-size: 13px; }
.oform .req { color: var(--red); }
.seg { gap: 6px; } .seg .btn { border-radius: 6px !important; margin: 0 !important; padding: 4px 12px; }
.seg .btn-outline-primary { color: var(--text); border-color: #CBD6E8; background: #fff; }
.seg .btn-check:checked + .btn-outline-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.seg-lg .btn { padding: 8px 26px; font-size: 15px; font-weight: 600; }
.svc { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; background: #FBFCFE; }
.svc-title { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 13.5px; }
.kv span { color: var(--muted); }
.flow-list { padding-left: 18px; margin: 0; font-size: 13.5px; } .flow-list li { margin: 3px 0; }
@media (min-width: 1200px) { .sticky-xl { position: sticky; top: 16px; } }
.flow-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.flow-steps .fs-label { color: var(--muted); margin-right: 4px; }
.fs-item { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; background: #fff; color: var(--muted); }
.fs-item small { margin-left: 6px; color: #9AA8B5; }
.fs-item.done { border-color: #9CCAB5; color: var(--green); background: var(--green-l); }
.fs-item.now { border-color: var(--amber); color: #7A5214; background: var(--amber-l); font-weight: 600; }
.fs-arrow { color: #B5C2D3; }

/* ---------- 工具条（照经纬：搜索 + 筛选一行，右上主按钮） ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.toolbar .form-select, .toolbar .form-control { width: auto; }

.state-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.state-tabs .st { border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px; background: #fff; color: var(--text); font-size: 13.5px; }
.state-tabs .st b { font-family: var(--num); margin-left: 4px; } .state-tabs .st.on { border-color: var(--blue); background: var(--blue-l); }
.hfilter th { padding: 3px 6px !important; background: #FAFBFD !important; } .hfilter input { height: 26px; font-size: 12px; min-width: 60px; }
.sticky-head thead th { position: sticky; top: 0; z-index: 2; }

/* ---------- 客户全生命周期弹窗 ---------- */
.life-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.life-tl { display: flex; gap: 0; overflow-x: auto; padding: 6px 0 14px; }
.tl-node { position: relative; min-width: 150px; padding: 18px 12px 0 0; }
.tl-node::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: #D5DFEE; }
.tl-dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; }
.tl-new .tl-dot { background: var(--green); }
.tl-k { font-weight: 600; font-size: 13px; color: var(--ink); } .tl-v { font-size: 12.5px; } .tl-s { font-size: 12px; color: var(--muted); }
.life-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.life-sum > div { background: #F6F9FD; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.life-sum span { color: var(--muted); font-size: 12px; } .life-sum b { font-family: var(--num); font-size: 20px; color: var(--ink); } .life-sum small { color: var(--muted); font-size: 11.5px; }
.life-h { font-weight: 700; color: var(--ink); margin: 14px 0 6px; }
.life-ap td { border-top: 0 !important; padding-top: 0 !important; }

/* ---------- 首页看板 ---------- */
.dash-sec h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; } .dash-sec h2 small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 16px; }
.dcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.dc-title { font-weight: 600; color: var(--ink); margin-bottom: 10px; } .dc-title span { color: var(--muted); font-weight: 400; font-size: 13px; }
.dc-body { display: flex; align-items: center; gap: 16px; }
.donut { width: 104px; height: 104px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.donut > div { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.donut b { font-family: var(--num); font-size: 17px; color: var(--ink); } .donut small { color: var(--muted); font-size: 11px; }
.dc-rows { flex: 1; font-size: 13px; } .dc-rows > div { display: grid; grid-template-columns: 10px 1fr 52px auto; gap: 6px; align-items: center; padding: 3px 0; }
.dc-rows i { width: 8px; height: 8px; border-radius: 2px; } .dc-rows em { font-style: normal; color: var(--muted); text-align: right; } .dc-rows b { font-family: var(--num); text-align: right; }
.trend { width: 100%; height: auto; } .legend i { display: inline-block; width: 10px; height: 3px; margin: 0 4px 2px 10px; vertical-align: middle; }
.rank { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13.5px; } .rank b { margin-left: auto; font-family: var(--num); }
.rk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #EDF1F8; color: var(--muted); }
.rk1 { background: #F5C451; color: #fff; } .rk2 { background: #B9C4D3; color: #fff; } .rk3 { background: #D9A06B; color: #fff; }
.bar { display: inline-block; width: 60px; height: 6px; background: #EDF1F8; border-radius: 3px; margin-right: 6px; vertical-align: middle; } .bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; height: 100%; }
.kpi2 { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; }
.kpi2:hover { border-color: var(--blue); color: var(--text); } .kpi2 span { color: var(--muted); font-size: 12.5px; } .kpi2 b { font-family: var(--num); font-size: 28px; color: var(--ink); } .kpi2 small { color: var(--muted); font-size: 11.5px; }

/* ---------- 组织架构 / 身份组 ---------- */
.org-tree { padding: 6px 0; max-height: 72vh; overflow: auto; }
.org-node { display: flex; justify-content: space-between; align-items: center; padding: 7px 14px; color: var(--text); font-size: 14px; border-left: 3px solid transparent; }
.org-node small { color: var(--muted); }
.org-node:hover { background: var(--blue-l); color: var(--ink); }
.org-node.on { background: var(--blue-l); border-left-color: var(--blue); font-weight: 600; color: var(--ink); }
.org-node.off { color: #A3B0BC; }
.flow-edit td { padding: 3px 4px !important; border: 0 !important; }
.perm-group { margin-bottom: 6px; } .perm-g { display: inline-block; min-width: 56px; color: var(--muted); font-size: 12.5px; }
.ac-list { position: absolute; z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 6px; max-height: 280px; overflow: auto; min-width: 420px; box-shadow: 0 10px 28px -10px rgba(24,52,110,.35); }
.ac-list div { padding: 8px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--rule); } .ac-list div:hover { background: var(--blue-l); }
.form-actions { position: sticky; bottom: 0; background: rgba(237,241,244,.92); backdrop-filter: blur(4px); padding: 12px 0; margin-top: 16px; text-align: center; z-index: 5; }

/* ---------- 响应式 / 打印 ---------- */
@media (max-width: 991px) {
  .has-side .shell { margin-left: 0; }
  .side { transform: translateX(-100%); transition: transform .2s ease; }
  .side-open .side { transform: none; }
  .side-open .side-mask { display: block; position: fixed; inset: 0; background: rgba(24,52,110,.4); z-index: 30; }
  .side-toggle { display: inline-block; }
  .shell main { padding: 16px 12px 8px; } .pagebar { padding: 14px 12px 0; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; } .no-side .site-footer { position: static; width: auto; }
  .paper { font-size: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; } .paper > table { min-width: 760px; } .paper td { padding: 5px; } .paper .title { font-size: 18px; letter-spacing: .04em; } .paper .chk { margin-right: 9px; }
  .seal { width: 84px; height: 84px; font-size: 15px; top: 60px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media print {
  .no-print, .side, .side-mask, .alert, .pagebar, .form-actions { display: none !important; }
  .has-side .shell { margin-left: 0; } body { background: #fff; } .shell main { padding: 0; }
  .paper { box-shadow: none; border-width: 1px; }
}

/* =====================================================================
   v3 视觉规范（2026-11-19 晚）：一套按钮 / 卡片 / 表格 / 标签 / 图标，覆盖上面的旧样式
   主色税务蓝；主按钮实心渐变，其余一律浅色描边次按钮（导出、筛选、编辑…）；危险操作浅红
   ===================================================================== */
:root { --bg: #F2F5FA; --line: #E2E9F3; --rule: #EEF2F8; --shadow: 0 1px 2px rgba(16,40,90,.04), 0 6px 18px -10px rgba(16,40,90,.12); --radius: 12px; }
body { background: var(--bg); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }

/* 页头 */
.pagebar { padding: 22px 28px 4px; align-items: flex-end; }
.pagebar h1 { font-size: 22px; letter-spacing: .01em; }
.crumb { font-size: 12px; color: #8A99AD; }
.shell main { padding: 16px 28px 12px; }

/* 按钮 */
.btn { border-radius: 8px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-primary { background: linear-gradient(180deg, #3E74E0 0%, #2C5CC5 100%); border: 0; color: #fff;
  box-shadow: 0 1px 2px rgba(20,60,150,.25), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(180deg, #3368D4 0%, #2551B3 100%); color: #fff; box-shadow: 0 4px 12px -4px rgba(37,81,179,.55); }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-success, .btn-light {
  background: #fff; border: 1px solid #D5DFEE; color: #2A4776; }
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover, .btn-success:hover, .btn-light:hover {
  background: #EEF3FD; border-color: #A9C0EC; color: #1D4A9C; }
.btn-outline-danger { background: #fff; border: 1px solid #F0C9C4; color: #B4362B; }
.btn-outline-danger:hover { background: #FCEEEC; border-color: #E3A39B; color: #9C2B21; }
.btn-warning { background: #F5B941; border: 0; color: #4A3400; } .btn-warning:hover { background: #EAA923; color: #3A2900; }
.btn-link { color: var(--blue-d); text-decoration: none; } .btn-link:hover { color: var(--ink); text-decoration: underline; }
.btn:disabled, .btn.disabled { opacity: .45; }

/* 表单 */
.form-control, .form-select { border-color: #D5DFEE; border-radius: 8px; }
.form-control-sm, .form-select-sm { min-height: 32px; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: #5B89E4; box-shadow: 0 0 0 3px rgba(53,103,209,.14); }
.form-check-input:checked { background-color: var(--blue); border-color: var(--blue); }

/* 卡片 */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { background: #fff; border-bottom: 1px solid var(--rule); padding: 13px 18px; font-size: 15px; font-weight: 600; color: var(--ink); position: relative; }
.card-header::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); }
.card-body { padding: 16px 18px; }
.card-footer { background: #FAFBFE; border-top: 1px solid var(--rule); }

/* 表格 */
.table { --bs-table-hover-bg: #F5F8FE; }
.table thead th { background: #F6F8FC; color: #6B7C93; font-size: 12.5px; font-weight: 600; border-bottom: 1px solid var(--line); padding: 10px 12px; letter-spacing: .02em; }
.table > :not(caption) > * > * { padding: 10px 12px; border-bottom-color: var(--rule); }
.table-sm > :not(caption) > * > * { padding: 8px 12px; }
.table td a { font-weight: 500; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #F5F8FE; }

/* 标签：浅底圆角 */
.badge { border-radius: 999px; padding: .32em .7em; font-weight: 500; font-size: 12px; }
.bg-success { background: #E6F5EE !important; color: #1F7A54 !important; }
.bg-secondary { background: #EEF1F5 !important; color: #6E7D8F !important; }
[class*="badge-s-"] { border: 0; }
.badge-s-草稿 { background: #EEF1F5; color: #6E7D8F; }
.badge-s-审核中, .badge-s-待主管审核, .badge-s-待公司审核 { background: #FFF3DC; color: #9A6200; }
.badge-s-已入库 { background: #E6F5EE; color: #1F7A54; }
.badge-s-已驳回 { background: #FCEBE9; color: #B4362B; }
.badge-s-已作废 { background: #F1F3F6; color: #A0AAB6; text-decoration: line-through; }

/* 工具条 / 分页 / 提示 */
.toolbar { border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; gap: 10px; }
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; border-color: var(--line); color: var(--text); }
.pagination .active .page-link { background: var(--blue); border-color: var(--blue); }
.alert { border-radius: 10px; }
.nav-tabs { border-bottom: 1px solid var(--line); }
.nav-tabs .nav-link { padding: 10px 2px; margin-right: 26px; }

/* 顶栏 */
.tb-user a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; }
.tb-user a:hover { background: rgba(255,255,255,.1); }
.tb-user a .ic { width: 16px; height: 16px; }
@media (max-width: 1400px) { .tb-user a span { display: none; } }

/* 二级菜单 */
.subnav { box-shadow: 1px 0 0 var(--line); border-right: 0; }
.subnav a { margin: 2px 10px; padding: 8px 14px; border-left: 0; border-radius: 8px; }
.subnav a.on { background: linear-gradient(90deg, #E8EFFD 0%, #F1F5FE 100%); color: var(--blue-d); box-shadow: inset 3px 0 0 var(--blue); }

/* ---------- 首页看板 v3 ---------- */
.hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.hero-t { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; align-items: center; position: relative; overflow: hidden; }
.hero-t::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--tint, #EEF3FD); opacity: .55; }
.hero-ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad, linear-gradient(135deg, #4A80E8, #2C5CC5)); box-shadow: 0 6px 14px -6px var(--glow, rgba(44,92,197,.6)); }
.hero-ic .ic { width: 22px; height: 22px; }
.hero-l { color: var(--muted); font-size: 12.5px; position: relative; z-index: 1; }
.hero-v { font-family: var(--num); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; position: relative; z-index: 1; display: flex; align-items: baseline; gap: 8px; }
.hero-v small { font-size: 12px; color: var(--muted); font-weight: 400; }
.delta { font-size: 12px; font-family: var(--cn); font-weight: 500; padding: 1px 7px; border-radius: 999px; }
.delta.up { background: #E6F5EE; color: #1F7A54; } .delta.down { background: #FCEBE9; color: #B4362B; } .delta.flat { background: #EEF1F5; color: #6E7D8F; }
.t-green { --grad: linear-gradient(135deg, #3DBB86, #1F8E62); --glow: rgba(31,142,98,.55); --tint: #E6F5EE; }
.t-amber { --grad: linear-gradient(135deg, #F6B84B, #E08E1B); --glow: rgba(224,142,27,.55); --tint: #FFF3DC; }
.t-violet { --grad: linear-gradient(135deg, #8B7CF0, #5E4FD6); --glow: rgba(94,79,214,.5); --tint: #EFEDFD; }

.sec-h { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 10px; }
.sec-h h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; } .sec-h span { color: var(--muted); font-size: 12.5px; }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.ring-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.ring-card h3 { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ring-card h3 em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-left: auto; }
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 112px; height: 112px; flex-shrink: 0; }
.ring text.v { font-family: var(--num); font-size: 17px; font-weight: 600; fill: var(--ink); }
.ring text.u { font-size: 10.5px; fill: #8A99AD; }
.legend2 { flex: 1; font-size: 13px; }
.legend2 > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.legend2 > div:last-child { border-bottom: 0; }
.legend2 i { width: 9px; height: 9px; border-radius: 3px; } .legend2 b { font-family: var(--num); font-weight: 600; }
.legend2 small { color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.area { width: 100%; height: auto; display: block; }
.area .grid line { stroke: #EDF1F8; } .area .ytick { font-size: 10.5px; fill: #9AA8BA; } .area .xtick { font-size: 11px; fill: #8A99AD; }
.area circle { stroke: #fff; stroke-width: 2; }
.lg { display: inline-flex; align-items: center; gap: 5px; margin-left: 14px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.lg i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.hbar { display: grid; grid-template-columns: 76px 1fr 70px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.hbar .track { height: 10px; background: #EEF2F8; border-radius: 999px; overflow: hidden; display: flex; }
.hbar .track i { height: 100%; } .hbar b { font-family: var(--num); text-align: right; }
.hbar small { color: var(--muted); font-size: 11.5px; display: block; text-align: right; }
.rkrow { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; background: linear-gradient(135deg, #6C95EA, #3567D1); }
.av.g1 { background: linear-gradient(135deg, #F7C74F, #E59A12); } .av.g2 { background: linear-gradient(135deg, #B8C3D3, #8D9AAE); } .av.g3 { background: linear-gradient(135deg, #E2A877, #BF7A3E); }
.rkrow .bar2 { height: 4px; background: #EEF2F8; border-radius: 4px; margin-top: 4px; } .rkrow .bar2 i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6C95EA, #3567D1); }
.rkrow b { font-family: var(--num); }
.ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.op { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; color: var(--text); display: flex; flex-direction: column; gap: 2px; transition: transform .15s, box-shadow .15s; }
.op:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(16,40,90,.3); }
.op .op-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--tint, #EEF3FD); color: var(--col, #2C5CC5); margin-bottom: 6px; }
.op span { color: var(--muted); font-size: 12.5px; } .op b { font-family: var(--num); font-size: 24px; color: var(--ink); } .op small { color: var(--muted); font-size: 11.5px; }
.o-red { --tint: #FCEBE9; --col: #C2372C; } .o-amber { --tint: #FFF3DC; --col: #B7791F; } .o-green { --tint: #E6F5EE; --col: #1F7A54; } .o-gray { --tint: #EEF1F5; --col: #6E7D8F; }
.mine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mine > div { background: #F7F9FD; border-radius: 10px; padding: 10px 12px; } .mine span { color: var(--muted); font-size: 12px; } .mine b { display: block; font-family: var(--num); font-size: 19px; color: var(--ink); }
.todo-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); color: var(--text); font-size: 13.5px; }
.todo-row:last-child { border-bottom: 0; } .todo-row:hover { color: var(--blue-d); } .todo-row .amt { margin-left: auto; font-family: var(--num); }
.empty { text-align: center; color: #9AA8BA; padding: 22px 0; font-size: 13px; } .empty .ic { width: 28px; height: 28px; display: block; margin: 0 auto 6px; stroke-width: 1.4; }
@media (max-width: 1280px) { .hero, .rings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hero, .rings, .mine { grid-template-columns: 1fr; } }

/* 报表导出卡 */
.exp { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.exp:last-child { border-bottom: 0; }
.exp-ic { width: 40px; height: 40px; border-radius: 10px; background: #EEF3FD; color: var(--blue-d); display: grid; place-items: center; flex-shrink: 0; }
.exp h4 { font-size: 14.5px; font-weight: 600; color: var(--ink); margin: 0 0 2px; } .exp p { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.matrix th, .matrix td { text-align: center; white-space: nowrap; } .matrix td.rate { color: var(--muted); font-size: 12px; }
.matrix td.hot { color: #1F7A54; font-weight: 600; } .matrix td.cold { color: #B4362B; }
.matrix tr.total td { background: #F6F8FC; font-weight: 600; }

/* 待核实 / 逾期：柔和提示，不刺眼 */
.table > tbody > tr.row-review > * { --bs-table-bg-type: #FFFBEF; --bs-table-bg-state: #FFF6DD; background-color: #FFFBEF; }
.table > tbody > tr.row-review > *:first-child { box-shadow: inset 3px 0 0 #E9B949; }
.row-overdue > td:first-child { box-shadow: inset 3px 0 0 #D9534A; }
.row-overdue td:first-child { color: inherit; font-weight: inherit; }
.review-card { border-color: #F0DCA4; } .review-card .card-header { background: #FFFBEF; } .review-card .card-header::before { background: #E9B949; }
.err-box { max-width: 520px; margin: 12vh auto; text-align: center; }
.err-box .ic { width: 44px; height: 44px; color: #9AA8BA; stroke-width: 1.4; }
.err-box h3 { margin: 12px 0 6px; color: var(--ink); font-weight: 700; } .err-box p { color: var(--muted); }
