/* 费控报销云 —— 深海军蓝顶栏 + 橙色强调，票据感 */
:root {
  --primary: #2f5bea; --primary-hover: #4a70ef; --primary-active: #2349c9;
  --primary-1: #eef2fe; --primary-2: #dde5fd; --primary-3: #b3c4f8;
  --accent: #f76b1c; --accent-1: #fff1e8; --navy: #14213d; --navy-2: #1d2d52;
  --success: #12a150; --success-1: #e7f6ee; --warning: #e8890c; --warning-1: #fff4e3; --danger: #e5484d; --danger-1: #fdecec;
  --info: #2f5bea; --info-1: #eef2fe;
  --text: #172033; --text-2: #4a5468; --text-3: #8791a5; --text-4: #c7cdd9;
  --border: #e3e6ee; --border-2: #edf0f5; --bg: #f4f5f8; --fill: #f5f7fa;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .04), 0 2px 8px rgba(20, 33, 61, .04);
}
html, body { height: 100%; }
body { background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.nowrap { white-space: nowrap; } .mb8 { margin-bottom: 8px; } .fs16 { font-size: 16px; } .p0 { padding: 0 !important; }
.select.sm, .input.sm { height: 28px; font-size: 13px; padding: 0 8px; }
.input-icon .input.sm { padding-left: 30px; }
.icon-btn.xs { width: 24px; height: 24px; }
.grid { display: grid; gap: 16px; }
.g-2-1 { grid-template-columns: 2fr 1fr; } .g-1-1 { grid-template-columns: 1fr 1fr; } .g-3-1 { grid-template-columns: 3fr 1fr; } .g-1-2 { grid-template-columns: 1fr 2fr; }
.grid > * { min-width: 0; }
.chart { width: 100%; }
.pg { animation: fadeUp .2s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card-hd h3 { font-size: 15px; font-weight: 600; }
.card-hd .extra { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.up { color: var(--danger); display: inline-flex; align-items: center; gap: 2px; }
.down { color: var(--success); display: inline-flex; align-items: center; gap: 2px; }

/* ---------- 顶栏 ---------- */
.topbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--navy); color: #fff; position: relative; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; position: relative; flex-shrink: 0; }
.brand-a { display: flex; align-items: center; gap: 9px; color: #fff; }
.brand-a:hover { color: #fff; }
.brand-a b { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.tenant-btn { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #d7def0; font-size: 13px; cursor: pointer; white-space: nowrap; }
.tenant-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.t-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--accent-1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.tnav { display: flex; align-items: stretch; height: 56px; margin-left: 4px; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tnav::-webkit-scrollbar { display: none; }
.tn { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 11px; color: #aeb8cf; font-size: 14px; white-space: nowrap; }
.tn:hover { color: #fff; }
.tn.active { color: #fff; font-weight: 600; }
.tn.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.tn em { font-style: normal; font-size: 11px; font-weight: 600; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; line-height: 17px; }
.top-search { position: relative; margin-left: auto; width: 200px; flex-shrink: 1; min-width: 150px; }
.top-search .input { padding-left: 32px; height: 32px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: #fff; }
.top-search .input::placeholder { color: #8f9ab3; }
.top-search .input:focus { background: #fff; color: var(--text); box-shadow: none; }
.ts-ic { position: absolute; left: 10px; top: 8px; color: #8f9ab3; display: flex; z-index: 1; }
.ts-drop { position: absolute; top: 40px; right: 0; width: 400px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); padding: 6px; display: none; z-index: 60; color: var(--text); }
.ts-drop.open { display: block; }
.plan-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(247, 107, 28, .14); color: #ffb383; font-size: 12px; white-space: nowrap; }
.plan-chip .pc-short { display: none; }
.plan-chip:hover { color: #ffd0b1; background: rgba(247, 107, 28, .22); }
.new-btn { background: var(--accent); border-color: var(--accent); }
.new-btn:hover { background: #ff7f36; border-color: #ff7f36; }
.topbar .icon-btn { color: #c9d1e3; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.icon-btn.has-dot { position: relative; }
.icon-btn.has-dot::after { content: ""; position: absolute; right: 7px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid var(--navy); }
.me { position: relative; cursor: pointer; display: flex; }
.main-scroll { flex: 1; overflow: auto; min-height: 0; }
.page { padding: 20px 28px 48px; max-width: 1480px; margin: 0 auto; }

/* 下拉 */
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; color: var(--text); border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-2); padding: 6px; display: none; z-index: 60; }
.dropdown.right { left: auto; right: 0; }
.dropdown.open { display: block; }
.dd-h { font-size: 12px; color: var(--text-3); padding: 6px 10px; }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--text); }
.dd-item:hover { background: var(--fill); }
.dd-item small { display: block; font-size: 12px; color: var(--text-3); }
.dd-sep { height: 1px; background: var(--border-2); margin: 6px 0; }
.dd-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.dd-me small { display: block; color: var(--text-3); font-size: 12px; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 500; flex-shrink: 0; line-height: 1; }

/* 通知 */
.nt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; color: var(--text); font-size: 13px; }
.nt:hover { background: var(--fill); color: var(--text); }
.nt-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--warning-1); color: var(--warning); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nt-ic.r { background: var(--danger-1); color: var(--danger); }

/* ---------- 页头 ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: 22px; font-weight: 600; letter-spacing: .2px; }
.ph p { color: var(--text-3); margin-top: 2px; font-size: 13px; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.back:hover { color: var(--primary); }

/* ---------- 总览 ---------- */
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-radius: 14px; margin-bottom: 16px; color: #fff; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #2a3f73 100%); position: relative; overflow: hidden; flex-wrap: wrap; }
.dash-hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 107, 28, .35), rgba(247, 107, 28, 0) 70%); pointer-events: none; }
.dash-hero h1 { font-size: 22px; font-weight: 600; }
.dash-hero p { color: #b8c2d9; margin-top: 4px; }
.dash-hero p b { color: #ffb383; font-size: 16px; margin: 0 2px; }
.qa { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; position: relative; }
.qa-i { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.qa-i:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.qa-i > span { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qa-i b { display: block; font-size: 13px; font-weight: 600; }
.qa-i small { display: block; font-size: 12px; color: #aeb8cf; white-space: nowrap; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi { background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.kpi-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.k-o { background: var(--accent-1); color: var(--accent); } .k-b { background: var(--primary-1); color: var(--primary); } .k-g { background: var(--success-1); color: var(--success); } .k-p { background: #f3effe; color: #7c3aed; } .k-r { background: var(--danger-1); color: var(--danger); }
.kpi-v { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 12px; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.row-i { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border-2); color: var(--text); }
.row-i:last-child { border-bottom: 0; }
a.row-i:hover { background: var(--fill); color: var(--text); }
.row-i .bd { flex: 1; min-width: 0; }
.bb { padding: 10px 0; }
.bb + .bb { border-top: 1px dashed var(--border-2); }
.bbar { position: relative; display: flex; height: 8px; border-radius: 4px; background: var(--border-2); overflow: hidden; margin: 6px 0 4px; }
.bbar i { display: block; height: 100%; }
.bbar i.u { background: var(--primary); } .bbar i.o { background: #8ea6f4; } .bbar i.n { background: var(--accent); }
.bbar.over i.u { background: var(--danger); }
.bbar b.tl { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--navy); border-radius: 1px; }
.bb-lg { display: flex; gap: 14px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.bb-lg span { display: inline-flex; align-items: center; gap: 5px; }
.bb-lg i { width: 10px; height: 6px; border-radius: 2px; display: inline-block; }
.bb-lg i.u { background: var(--primary); } .bb-lg i.o { background: #8ea6f4; } .bb-lg i.n { background: var(--accent); } .bb-lg i.tl { width: 2px; height: 10px; background: var(--navy); }

/* ---------- 列表 ---------- */
.cat-ic { display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.inv-n { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-2); background: var(--fill); border-radius: 4px; padding: 1px 6px; }
.bulk { display: none; align-items: center; gap: 12px; padding: 10px 16px; margin-bottom: 12px; border-radius: 8px; background: var(--primary-1); border: 1px solid var(--primary-2); font-size: 13px; }
.bulk.show { display: flex; }
.bulk b { color: var(--primary); }
.route { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.route b { color: var(--text); font-weight: 500; }
.cell-sub { font-size: 12px; color: var(--text-3); }
table.mini { width: 100%; font-size: 13px; border-collapse: collapse; }
table.mini td, table.mini th { padding: 7px 4px; border-bottom: 1px solid var(--border-2); text-align: left; }
table.mini .ta-right { text-align: right; }
.tr-sum td { font-weight: 600; background: var(--fill); }
.table tr.tr-warn td { background: #fffaf2; }
.rk { display: inline-flex; width: 20px; height: 20px; border-radius: 5px; align-items: center; justify-content: center; font-size: 12px; background: var(--fill); color: var(--text-3); font-weight: 600; }
.rk.top { background: var(--accent); color: #fff; }

/* ---------- 新建报销 ---------- */
.new-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.new-main { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.new-side { display: flex; flex-direction: column; gap: 0; position: sticky; top: 0; }
.ocr { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 20px 14px; border: 1.5px dashed var(--primary-3); border-radius: 10px; background: var(--primary-1); cursor: pointer; transition: all .15s; }
.drop:hover, .drop.over { border-color: var(--primary); background: #e6ecfd; }
.drop b { font-size: 13px; }
.drop small { font-size: 12px; color: var(--text-3); }
.drop-ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: var(--shadow); }
.samples { margin-top: 14px; }
.smp { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transition: all .15s; font-size: 13px; }
.smp:hover { border-color: var(--primary-3); background: var(--fill); }
.smp b { display: block; font-weight: 500; }
.smp small { color: var(--text-3); font-size: 12px; }
.smp-ok { display: none; position: absolute; right: 10px; top: 50%; margin-top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; align-items: center; justify-content: center; }
.smp.done { border-color: #bfe5cf; background: #f6fcf8; }
.smp.done .smp-ok { display: inline-flex; }
.ocr-stage { min-height: 360px; border-radius: 10px; background: #f1f3f7 repeating-linear-gradient(45deg, transparent 0 10px, rgba(20, 33, 61, .018) 10px 20px); border: 1px solid var(--border-2); padding: 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ocr-empty { text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.ocr-doc { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.ocr-doc .inv-svg { display: block; width: 100%; height: auto; box-shadow: 0 6px 24px rgba(20, 33, 61, .12); border-radius: 6px; }
.scan-line { animation: scan 1.3s linear infinite; }
@keyframes scan { from { transform: translateY(-36px); } to { transform: translateY(400px); } }
.ocr-box { fill: rgba(47, 91, 234, .08); stroke: var(--primary); stroke-width: 1.5; animation: boxIn .35s ease both; }
@keyframes boxIn { from { opacity: 0; } to { opacity: 1; } }
.ocr-status { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 12px; font-size: 13px; }
.ocr-status small { color: var(--text-3); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary-2); border-top-color: var(--primary); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.ocr-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.ocr-thumb { cursor: zoom-in; }
.ocr-thumb .inv-svg { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(20, 33, 61, .1); }
.ocr-fields { background: #fff; border-radius: 8px; padding: 12px 14px; border: 1px solid var(--border-2); min-width: 0; }
.of { display: flex; gap: 10px; font-size: 13px; padding: 4px 0; }
.of span { color: var(--text-3); width: 64px; flex-shrink: 0; }
.of b { font-weight: 500; min-width: 0; word-break: break-all; display: inline-flex; align-items: center; gap: 6px; }
.ocr-alert { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 8px 10px; border-radius: 7px; margin-top: 10px; background: var(--warning-1); color: #a75d00; }
.ocr-alert svg { flex-shrink: 0; margin-top: 1px; }
.ocr-alert.ok { background: var(--success-1); color: #0c7a3c; }
.ocr-alert.err { background: var(--danger-1); color: #c0282d; }
.over-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; color: #b86a00; font-size: 12px; }
.over-note .input { flex: 1; min-width: 180px; }
.input.err, .over-note .input.err { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-1); }
.card-hd .total { font-size: 20px; color: var(--accent); font-weight: 700; }
.bk { padding: 8px 0; }
.bk + .bk { border-top: 1px dashed var(--border-2); }
.vflow { position: relative; }
.vf { position: relative; display: flex; gap: 10px; padding-bottom: 14px; }
.vf:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 2px; background: var(--border-2); }
.vf > i { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-1); color: var(--primary); font-style: normal; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vf b { display: block; font-size: 13px; font-weight: 600; }
.vf span { font-size: 12px; color: var(--text-3); }

/* ---------- 单据详情 ---------- */
.cd-top { display: flex; gap: 24px; padding: 20px 24px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.cd-amt { padding-right: 24px; border-right: 1px solid var(--border-2); min-width: 240px; }
.cd-amt span { font-size: 13px; color: var(--text-3); }
.cd-amt b { display: block; font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; margin: 2px 0; }
.cd-amt small { font-size: 12px; color: var(--text-3); }
.cd-meta { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; font-size: 13px; min-width: 0; }
.cd-meta > div > span:first-child { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 2px; }
.cd-meta > div > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hsteps { display: flex; gap: 0; overflow-x: auto; padding: 4px 0; }
.hs { flex: 1; min-width: 110px; position: relative; text-align: center; padding: 0 6px; font-size: 12px; }
.hs::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.hs:first-child::before { display: none; }
.hs.done::before, .hs.cur::before, .hs.rej::before { background: var(--primary); }
.hs > i { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; background: #fff; border: 2px solid var(--border); color: var(--text-3); }
.hs.done > i { background: var(--primary); border-color: var(--primary); color: #fff; }
.hs.cur > i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-1); }
.hs.rej > i { background: var(--danger); border-color: var(--danger); color: #fff; }
.hs b { display: block; font-size: 13px; }
.hs span { display: block; color: var(--text-2); }
.hs small { display: block; color: var(--text-3); }
.hs.cur small { color: var(--accent); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.inv-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--fill); cursor: zoom-in; font-size: 13px; text-align: left; transition: all .15s; }
.inv-card:hover { border-color: var(--primary-3); box-shadow: var(--shadow); }
.inv-card .inv-svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.inv-wrap { background: #f1f3f7; padding: 14px; border-radius: 8px; }
.inv-wrap .inv-svg { width: 100%; height: auto; display: block; }
.inv-meta { margin-top: 14px; }
.audit { border: 1px solid var(--border-2); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; }
.audit-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.audit-h span { margin-left: auto; font-size: 12px; font-weight: 500; }
.au { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 5px 0; color: var(--text-2); }
.au svg { flex-shrink: 0; margin-top: 2px; }
.au b { color: var(--text); font-weight: 500; white-space: nowrap; margin-right: 4px; }
.au-ok svg { color: var(--success); } .au-warn svg { color: var(--warning); } .au-err svg { color: var(--danger); }
.au-warn { background: var(--warning-1); margin: 2px -8px; padding: 6px 8px; border-radius: 6px; }
.au-err { background: var(--danger-1); margin: 2px -8px; padding: 6px 8px; border-radius: 6px; }

/* ---------- 审批中心 ---------- */
.ap { display: grid; grid-template-columns: 380px minmax(0, 1fr); background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); height: calc(100vh - 56px - 130px); min-height: 520px; overflow: hidden; }
.ap-l { display: flex; flex-direction: column; border-right: 1px solid var(--border-2); min-height: 0; }
.ap-tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border-2); }
.ap-tabs button { border: 0; background: none; padding: 8px 10px; font-size: 13px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 4px; }
.ap-tabs button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.ap-tabs button em { font-style: normal; font-size: 11px; background: var(--accent); color: #fff; border-radius: 9px; padding: 0 6px; line-height: 16px; }
.ap-tool { display: flex; gap: 8px; padding: 10px 12px; align-items: center; }
.ap-bulk { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--primary-1); font-size: 12.5px; }
.ap-list { flex: 1; overflow-y: auto; min-height: 0; }
.ap-i { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-bottom: 1px solid var(--border-2); cursor: pointer; border-left: 3px solid transparent; }
.ap-i:hover { background: var(--fill); }
.ap-i.active { background: var(--primary-1); border-left-color: var(--primary); }
.ap-i input { margin-top: 10px; }
.ap-r { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ap-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border-2); }
.ap-amt { text-align: right; }
.ap-amt b { display: block; font-size: 24px; font-weight: 700; color: var(--navy); }
.ap-body { flex: 1; overflow-y: auto; padding: 16px 20px; min-height: 0; }
.ap-sec { margin-bottom: 18px; }
.ap-st { font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.ln { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-2); font-size: 13px; }
.ln:last-child { border-bottom: 0; }
.ap-foot { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-2); background: #fbfcfe; }
.ap-foot .input { flex: 1; }

/* ---------- 差旅 ---------- */
.trip-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; margin-bottom: 16px; }
.th-c { text-align: center; min-width: 80px; }
.th-c b { display: block; font-size: 22px; font-weight: 700; }
.th-c small { color: #aeb8cf; font-size: 12px; }
.th-m { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #ffb383; font-size: 12px; position: relative; }
.th-m::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; border-top: 1.5px dashed rgba(255, 255, 255, .25); z-index: 0; }
.th-m svg { position: relative; background: var(--navy-2); padding: 0 6px; box-sizing: content-box; }
.est { margin-top: 4px; border: 1px solid #fde0cc; background: #fffaf6; border-radius: 10px; padding: 12px 14px; }
.est:empty { display: none; }
.est-h { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #b3520d; margin-bottom: 10px; }
.est-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.est-g > div { background: #fff; border-radius: 8px; padding: 8px 10px; border: 1px solid #fbe8da; min-width: 0; }
.est-g span { display: block; font-size: 12px; color: var(--text-3); }
.est-g b { display: block; font-size: 15px; }
.est-g small { display: block; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 预算 ---------- */
.btable td { vertical-align: middle; }
.bt-d { cursor: pointer; }
.bt-d td { background: #fff; }
.bt-car { display: inline-flex; margin-right: 6px; color: var(--text-3); transition: transform .15s; vertical-align: -2px; }
.bt-d.open .bt-car { transform: rotate(90deg); }
.bt-g { display: none; }
.bt-g.show { display: table-row; }
.bt-g td { background: #fafbfd; font-size: 12.5px; }
.bt-g td:first-child { padding-left: 38px; }
.gdot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.gdot.lg { width: 10px; height: 10px; border-radius: 3px; margin: 0; flex-shrink: 0; }
.adj-cur { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adj-cur > div { background: var(--fill); border-radius: 8px; padding: 10px 12px; }
.adj-cur span { display: block; font-size: 12px; color: var(--text-3); }
.adj-cur b { font-size: 18px; }

/* ---------- 审批流 ---------- */
.fl { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fl-l { padding: 6px; }
.fl-i { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 8px; cursor: pointer; }
.fl-i:hover { background: var(--fill); }
.fl-i.active { background: var(--primary-1); }
.fl-i b { display: block; font-size: 13px; }
.fl-i small { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fl-c { min-width: 0; }
.fl-canvas { padding: 28px 16px 36px; background: #f7f8fb radial-gradient(circle, #dfe3ec 1px, transparent 1.2px) 0 0 / 18px 18px; border-radius: 0 0 var(--radius) var(--radius); overflow-x: auto; }
.fl-flow { display: flex; flex-direction: column; align-items: center; }
.fn { position: relative; display: flex; align-items: center; gap: 10px; width: 260px; padding: 12px 14px; background: #fff; border-radius: 10px; border: 1px solid var(--border); border-top: 4px solid var(--primary); box-shadow: var(--shadow); cursor: pointer; font-size: 13px; }
.fn:hover { border-color: var(--primary-3); border-top-color: var(--primary); }
.fn b { display: block; font-size: 13.5px; }
.fn small { display: block; font-size: 12px; color: var(--text-3); }
.fn.start { border-top-color: var(--navy); cursor: default; }
.fn.end { border-top-color: var(--text-4); cursor: default; width: auto; padding: 8px 18px; border-radius: 20px; border-top-width: 1px; color: var(--text-3); }
.fn.t-fin { border-top-color: #7c3aed; } .fn.t-pay { border-top-color: var(--success); } .fn.t-role { border-top-color: var(--primary); }
.fn.skip { opacity: .45; }
.fn-x { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border: 0; border-radius: 4px; background: transparent; color: var(--text-3); cursor: pointer; display: none; align-items: center; justify-content: center; }
.fn:hover .fn-x { display: inline-flex; }
.fn-x:hover { background: var(--danger-1); color: var(--danger); }
.fl-add { position: relative; height: 44px; width: 2px; background: var(--text-4); display: flex; align-items: center; justify-content: center; }
.fl-add button { position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(47, 91, 234, .35); transition: transform .15s; }
.fl-add button:hover { transform: scale(1.15); }
.fcond { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #b3520d; background: var(--accent-1); border: 1px solid #fcd9c2; border-radius: 12px; padding: 2px 10px; margin-bottom: 8px; }
.fl-sim { background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.switch { position: relative; display: inline-flex; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 36px; height: 20px; border-radius: 10px; background: var(--text-4); position: relative; transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--success); }
.switch input:checked + i::after { transform: translateX(16px); }

/* ---------- 设置 ---------- */
.std-in { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); }
.std-in .input { width: 76px; text-align: right; }
.role-i { padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.role-i:last-child { border-bottom: 0; }
.plan-hero { border-radius: 12px; padding: 22px 24px; color: #fff; background: linear-gradient(140deg, var(--navy), #243866); position: relative; overflow: hidden; }
.plan-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 107, 28, .35), transparent 70%); }
.plan-hero small { color: #aeb8cf; }
.plan-hero h2 { font-size: 24px; margin: 2px 0; }
.plan-hero p { color: #ffb383; margin-bottom: 12px; }
.ph-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); position: relative; z-index: 1; }
.ph-row span { color: #aeb8cf; }
.ph-row b { font-weight: 500; }
.plan-hero .flex { position: relative; z-index: 1; }
.plan-hero .btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.plan-hero .btn:hover { background: rgba(255, 255, 255, .18); }
.plan-hero .btn.btn-w { background: var(--accent); border-color: var(--accent); }
.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.use { background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.use-v { font-size: 22px; font-weight: 700; margin: 4px 0 8px; }
.use-v small { font-size: 13px; font-weight: 400; color: var(--text-3); }
.intg { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-2); font-size: 13px; }
.intg:last-child { border-bottom: 0; }
.ck-l { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .qa { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .fl { grid-template-columns: 240px minmax(0, 1fr); }
  .fl-sim { grid-column: 1 / -1; }
  .plan-chip .pc-seat { display: none; }
  .plan-chip .pc-short { display: inline; }
  .ocr { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .new-grid { grid-template-columns: 1fr; }
  .new-side { position: static; }
  .g-2-1, .g-3-1, .g-1-2 { grid-template-columns: 1fr; }
  .top-search { display: none; }
  .ap { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .topbar { padding: 0 12px; gap: 8px; flex-wrap: wrap; height: auto; padding-top: 8px; }
  .brand { flex: 1; }
  .tnav { order: 5; width: 100%; margin: 0 -12px; padding: 0 4px; height: 42px; flex-basis: calc(100% + 24px); }
  .new-btn span { display: none; }
  .page { padding: 14px 16px 60px; }
  .kpis, .kpis.k4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-v { font-size: 20px; }
  .qa { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .qa-i { padding: 8px; gap: 8px; }
  .qa-i > span { width: 30px; height: 30px; }
  .qa-i small { white-space: normal; }
  .dash-hero { padding: 18px 16px; }
  .card-bd.p0 { overflow-x: auto; }
  .g-1-1 { grid-template-columns: 1fr; }
  .ocr-res { grid-template-columns: 1fr; }
  .cd-amt { border-right: 0; padding-right: 0; }
  .cd-meta { grid-template-columns: 1fr 1fr; }
  .ap { grid-template-columns: 1fr; height: auto; }
  .ap-l { max-height: 380px; border-right: 0; border-bottom: 1px solid var(--border-2); }
  .fl { grid-template-columns: 1fr; }
  .est-g { grid-template-columns: 1fr 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .tenant-btn { display: none; }
  .ph h1 { font-size: 19px; }
  .ph > .flex { flex-wrap: wrap; }
  .ap-h { flex-direction: column; }
  .ap-amt { text-align: left; }
  .ap-amt b { display: inline; margin-right: 8px; }
  .ap-amt small { margin-right: 6px; }
}
.ap-tool .input, .ap-tool .input-icon { flex: 1; }
.bbar.lg { flex: 1; height: 10px; margin: 0; overflow: visible; min-width: 80px; }
.bbar.lg i:first-child { border-radius: 5px 0 0 5px; }
.bbar i.u.over { background: var(--danger); }
.bbar.lg + span { width: 40px; text-align: right; }

/* 窄屏：用户菜单中的企业与套餐信息 */
.dd-m { display: none; }
.dd-plan { display: flex; align-items: center; gap: 8px; margin: 2px 6px 4px; padding: 8px 10px; border-radius: 8px; background: var(--accent-1); color: #b3520d; font-size: 12.5px; cursor: pointer; }
.dd-plan b { font-weight: 600; }
.dd-plan .ml-auto { color: var(--text-3); }
@media (max-width: 768px) {
  .plan-chip { display: none; }
  .dd-m { display: block; }
  .dd-item.dd-m { display: flex; }
  .dropdown.right#me-dd { width: min(300px, calc(100vw - 24px)); }
  /* 预算表改为卡片式 */
  .btable, .btable tbody { display: block; }
  .btable thead { display: none; }
  .btable tr.bt-d, .btable tr.bt-g.show { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); }
  .btable tr.bt-d { background: #fff; }
  .btable tr.bt-g.show { background: #fafbfd; padding-left: 28px; }
  .btable tr.bt-d td, .btable tr.bt-g td { display: block; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
  .btable tr td:first-child { grid-column: 1 / -1; }
  .bt-g td:first-child { padding-left: 0; }
  .btable td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-3); font-weight: 400; }
  .btable td.bt-bar { grid-column: 1 / -1; }
  .btable tr td:empty { display: none; }
  .btable tr.bt-g td.bt-act { text-align: right; align-self: center; }
  .btable tr.bt-g td.bt-mode { align-self: center; }
}
/* 1101–1400px：搜索框收起为图标（聚焦时展开），为导航与套餐席位标记腾出空间 */
@media (max-width: 1400px) and (min-width: 1101px) {
  .top-search { width: 36px; min-width: 36px; flex-shrink: 0; transition: width .2s ease; }
  .top-search .input { padding-right: 0; cursor: pointer; }
  .top-search .input::placeholder { color: transparent; }
  .top-search:focus-within { width: 220px; }
  .top-search:focus-within .input { cursor: text; }
  .top-search:focus-within .input::placeholder { color: #8f9ab3; }
}
/* 1101–1280px：收紧顶栏，保证导航完整显示 */
@media (max-width: 1440px) and (min-width: 1401px) {
  .top-search { width: 150px; min-width: 150px; }
}
@media (max-width: 1400px) and (min-width: 769px) {
  .tn { padding: 0 8px; }
  .tn.active::after { left: 8px; right: 8px; }
}
@media (max-width: 1280px) and (min-width: 769px) {
  .new-btn { width: 32px; padding: 0; justify-content: center; }
  .new-btn span { display: none; }
  .topbar { gap: 10px; }
}
@media (max-width: 1200px) and (min-width: 769px) {
  .brand-a b { display: none; }
}
/* 769–1100px：套餐席位与企业切换并入用户菜单，导航完整显示 */
@media (max-width: 1100px) {
  .plan-chip { display: none; }
  .dd-m { display: block; }
  .dropdown.right#me-dd { width: min(300px, calc(100vw - 24px)); }
}
@media (max-width: 900px) {
  .tenant-btn { display: none; }
}
@media (max-width: 1100px) and (min-width: 769px) {
  .new-btn { margin-left: auto; }
}

/* 窄屏：cfg.cards 的表格改为卡片（主列作标题，其余"标签：值"两列） */
@media (max-width: 768px) {
  .dt.dt-cards .dt-scroll { overflow: visible; }
  .dt.dt-cards .table, .dt.dt-cards .table tbody { display: block; }
  .dt.dt-cards .table thead { display: none; }
  .dt.dt-cards .table tbody tr[data-key] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); position: relative; }
  .dt.dt-cards .table tbody tr[data-key] td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; background: none; }
  .dt.dt-cards .table tbody tr[data-key] td.dt-main { grid-column: 1 / -1; padding-right: 40px; }
  .dt.dt-cards .table tbody tr[data-key] td[data-l]:not(.dt-main):not(.dt-corner)::before { content: attr(data-l); display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
  .dt.dt-cards .table tbody tr[data-key] td.dt-corner { position: absolute; right: 14px; top: 14px; }
  .dt.dt-cards .table tbody tr:not([data-key]), .dt.dt-cards .table tbody tr:not([data-key]) td { display: block; }
  .dt.dt-cards .pager { justify-content: center; }
}
@media (max-width: 768px) {
  .cd-amt, .cd-meta { flex-basis: 100%; }
  .dt.dt-cards td.dt-main .cell-main.ellipsis { max-width: none !important; }
  .dt.dt-cards td.dt-main > .flex { min-width: 0 !important; }
  .dt.dt-cards .table tbody tr[data-key] td.col-check { position: absolute; left: 14px; top: 13px; width: auto; }
  .dt.dt-cards .table tbody tr[data-key]:has(td.col-check) { padding-left: 44px; }
  .card-hd { flex-wrap: wrap; row-gap: 6px; }
  .card-hd h3 { white-space: nowrap; }
}

/* 「在线体验」标记：挂在顶部导航下沿右侧，正文整体下移 8px 留出位置，不压内容 */
.pg { padding-top: 8px; }
.demo-badge { top: 56px; bottom: auto; right: 24px; font-size: 10.5px; line-height: 16px; padding: 0 9px; border-radius: 0 0 7px 7px; border-top: 0; box-shadow: none; background: rgba(255, 255, 255, .96); z-index: 19; letter-spacing: .3px; }
@media (max-width: 768px) { .demo-badge { top: 90px; right: 12px; font-size: 10px; line-height: 15px; padding: 0 8px; } }
.au > span, .au > div { text-wrap: pretty; }
.ph p, .drop small, .qa-i small { text-wrap: pretty; }
@media (max-width: 768px) {
  .kpis:not(.k4) > :last-child:nth-child(odd) { grid-column: span 2; }
  .qa-i small { font-size: 11.5px; }
}
@media (max-width: 760px) { .qa-i small { text-wrap: balance; } }
