
* { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; color: #26334d; font-size: 13px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 60%, #4299e1 100%); }
.login-card { width: 360px; background: #fff; border-radius: 12px; padding: 28px 30px 24px; box-shadow: 0 16px 48px rgba(10,30,70,.35); }
.login-card h1 { font-size: 20px; color: #1a365d; text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: #718096; font-size: 12px; margin-bottom: 20px; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 184px; background: #1a365d; color: #cbd5e0; flex-shrink: 0; display: flex; flex-direction: column; }
.logo { padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo b { color: #fff; font-size: 15px; letter-spacing: 1px; }
.logo span { display: block; font-size: 11px; color: #90a4c0; margin-top: 2px; }
.menu { flex: 1; padding: 6px 0; }
.menu-item { display: flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; transition: background .15s; }
.menu-item:hover { background: rgba(255,255,255,.06); }
.menu-item.active { background: #2b6cb0; color: #fff; border-right: 3px solid #63b3ed; }
.menu-item .badge { margin-left: auto; background: #e53e3e; color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; }
.side-foot { padding: 10px 14px; font-size: 11px; color: #7a92b3; border-top: 1px solid rgba(255,255,255,.08); line-height: 1.7; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 46px; background: #fff; display: flex; align-items: center; padding: 0 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); gap: 12px; flex-shrink: 0; }
.topbar .title { font-size: 15px; font-weight: 600; color: #1a365d; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 7px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: #2b6cb0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.role-tag { background: #ebf8ff; color: #2b6cb0; font-size: 12px; border-radius: 4px; padding: 1px 7px; }
.content { flex: 1; padding: 14px 16px; overflow: auto; }

.card { background: #fff; border-radius: 8px; padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); margin-bottom: 12px; }
.card h3 { font-size: 14px; color: #1a365d; margin-bottom: 8px; }
.card h3 small { color: #90a4c0; font-weight: normal; margin-left: 6px; font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #fff; border-radius: 8px; padding: 10px 14px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.stat .label { color: #718096; font-size: 12px; }
.stat .value { font-size: 20px; font-weight: 700; color: #1a365d; margin-top: 2px; }
.stat .value small { font-size: 12px; color: #a0aec0; font-weight: normal; }
.stat.warn .value { color: #c05621; }
.stat.ok .value { color: #2f855a; }

table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { background: #f7fafc; color: #4a5568; font-size: 12px; text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.tbl td { padding: 6px 8px; border-bottom: 1px solid #edf2f7; font-size: 12.5px; vertical-align: middle; }
.tbl tr:hover td { background: #fafffe; }
.tbl .money { color: #c05621; font-weight: 600; }

.btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #cbd5e0; background: #fff; color: #4a5568;
  border-radius: 5px; padding: 4px 12px; font-size: 12.5px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.btn:hover { border-color: #2b6cb0; color: #2b6cb0; }
.btn.primary { background: #2b6cb0; border-color: #2b6cb0; color: #fff; }
.btn.primary:hover { background: #2c5282; }
.btn.warn { background: #dd6b20; border-color: #dd6b20; color: #fff; }
.btn.danger { background: #fff; border-color: #fc8181; color: #e53e3e; }
.btn.sm { padding: 2px 8px; font-size: 12px; border-radius: 4px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.tag { display: inline-block; font-size: 11.5px; border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.tag.blue { background: #ebf8ff; color: #2b6cb0; }
.tag.green { background: #f0fff4; color: #2f855a; }
.tag.orange { background: #fffaf0; color: #c05621; }
.tag.red { background: #fff5f5; color: #c53030; }
.tag.gray { background: #edf2f7; color: #718096; }
.tag.purple { background: #faf5ff; color: #6b46c1; }

input, select, textarea { border: 1px solid #cbd5e0; border-radius: 5px; padding: 5px 9px; font-size: 12.5px; color: #26334d; outline: none; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #2b6cb0; box-shadow: 0 0 0 2px rgba(43,108,176,.12); }
label.fl { font-size: 12.5px; color: #4a5568; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }

.modal-mask { position: fixed; inset: 0; background: rgba(20,32,54,.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 10px; width: 600px; max-width: 94vw; max-height: 88vh; display: flex; flex-direction: column; }
.modal.wide { width: 740px; }
.modal-head { padding: 12px 16px 10px; border-bottom: 1px solid #edf2f7; display: flex; align-items: center; }
.modal-head b { font-size: 14px; color: #1a365d; }
.modal-head .x { margin-left: auto; cursor: pointer; color: #a0aec0; font-size: 17px; }
.modal-body { padding: 12px 16px; overflow: auto; }
.modal-foot { padding: 10px 16px 12px; border-top: 1px solid #edf2f7; text-align: right; display: flex; gap: 8px; justify-content: flex-end; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.form-item { display: flex; flex-direction: column; gap: 4px; }
.form-item.full { grid-column: span 2; }
.form-item .lab { font-size: 12px; color: #4a5568; }
.form-item .lab em { color: #e53e3e; font-style: normal; margin-left: 2px; }
.form-err { background: #fff5f5; border: 1px solid #feb2b2; color: #c53030; padding: 6px 10px; border-radius: 5px; font-size: 12px; margin-bottom: 8px; }
.form-ok { background: #f0fff4; border: 1px solid #9ae6b4; color: #276749; padding: 6px 10px; border-radius: 5px; font-size: 12px; margin-bottom: 8px; }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 140px; padding-top: 6px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.bar-col .bar { width: 70%; background: linear-gradient(180deg, #4299e1, #2b6cb0); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar-col .bar.money-bar { background: linear-gradient(180deg, #f6ad55, #dd6b20); }
.bar-col .cap { font-size: 10px; color: #718096; white-space: nowrap; }
.bar-col .val { font-size: 10px; color: #2b6cb0; }
.hbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.hbar-row .hlab { width: 84px; font-size: 12px; color: #4a5568; text-align: right; flex-shrink: 0; }
.hbar-row .htrack { flex: 1; background: #edf2f7; border-radius: 4px; height: 14px; overflow: hidden; }
.hbar-row .hfill { height: 100%; background: linear-gradient(90deg, #4299e1, #2b6cb0); border-radius: 4px; }
.hbar-row .hval { width: 52px; font-size: 12px; color: #2b6cb0; }

.timeline { padding-left: 16px; }
.tl-item { position: relative; padding: 0 0 10px 12px; border-left: 2px solid #bee3f8; }
.tl-item:last-child { border-left-color: transparent; }
.tl-item::before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #2b6cb0; }
.tl-item .t1 { font-size: 12.5px; font-weight: 600; color: #1a365d; }
.tl-item .t2 { font-size: 12px; color: #718096; margin-top: 1px; }
.tl-item .src { font-size: 11px; margin-left: 6px; }

.steps { display: flex; gap: 0; margin-bottom: 14px; }
.step { flex: 1; text-align: center; position: relative; color: #a0aec0; font-size: 12px; }
.step::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #e2e8f0; z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { width: 24px; height: 24px; border-radius: 50%; background: #e2e8f0; color: #718096; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 3px; position: relative; z-index: 1; }
.step.on { color: #2b6cb0; }
.step.on .dot { background: #2b6cb0; color: #fff; }
.step.done .dot { background: #48bb78; color: #fff; }

.toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 200; background: #1a202c; color: #fff;
  padding: 8px 18px; border-radius: 7px; font-size: 12.5px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.toast.err { background: #c53030; }
.toast.ok { background: #2f855a; }

.empty { text-align: center; color: #a0aec0; padding: 22px 0; font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 104px 1fr; gap: 5px 10px; font-size: 12.5px; }
.kv .k { color: #718096; }
.kv .v { color: #26334d; word-break: break-all; }
.img-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 4px; background: #edf2f7; margin-right: 4px; }
