.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#e8564a;color:#fff;font-size:10px;font-weight:700;line-height:1}
.venture-stats .stat p{overflow-wrap:anywhere}
.venture-recovery progress{width:100%;height:12px;margin:10px 0 14px;accent-color:var(--blue)}
.venture-recovery .row-between b{font-size:18px;font-variant-numeric:tabular-nums}
.venture-split{margin:6px 0 14px}
.venture-split td,.venture-split th{padding:12px 16px}
.venture-split .total-row td{font-weight:650;background:#fafbfe}
.venture-entries tr.not-counted td{color:#9aa3b5}
.venture-entries tr.not-counted td:nth-child(5){text-decoration:line-through}
.venture-kind{display:inline-block;padding:3px 8px;border-radius:5px;font-size:11px;background:#f1f3f8;color:#5d6880;white-space:nowrap}
.venture-kind.capital{background:#eef3ff;color:#3459c4}
.venture-kind.refund{background:#eaf4fb;color:#2a6f97}
.venture-kind.expense{background:#fff4e6;color:#9a5d12}
.venture-kind.income{background:#e9f7f0;color:#1f7a55}
.venture-kind.payout{background:#f4eefc;color:#7246a8}
.badge.venture-state.pending{background:#fff4dc;color:#895b12}
.badge.venture-state.confirmed{background:#e8f5ee;color:#126344}
.badge.venture-state.rejected,.badge.venture-state.voided{background:#fdeceb;color:#a1392f}
.badge.venture-state.cancelled{background:#eef1f6;color:#667086}
.venture-quick-review{margin-top:8px}
.venture-quick-review .button{min-height:34px;padding:7px 12px}
.venture-filters{margin:0;border-bottom:1px solid var(--line)}
.venture-form{max-width:760px}
.venture-entry-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:18px}
.venture-entry-facts span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}
.venture-entry-facts small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.venture-receipts{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;padding:0 24px 24px}
.venture-receipts figure{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fafbfc}
.venture-receipts img{display:block;width:100%;height:180px;object-fit:cover;background:#fff}
.venture-receipts .venture-pdf{display:flex;align-items:center;justify-content:center;height:180px;font-size:22px;font-weight:700;color:#a1392f;background:#fff}
.venture-receipts figcaption{padding:10px 12px;font-size:12px;overflow-wrap:anywhere}
.venture-receipts figcaption small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.field[hidden]{display:none}
@media(max-width:800px){.venture-split td,.venture-split th{padding:10px}.venture-receipts{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px 16px}.venture-receipts img,.venture-receipts .venture-pdf{height:140px}}
.receipt-paste{margin-top:10px;padding:16px;border:1.5px dashed #c5d2ea;border-radius:10px;background:#f8faff;outline:none;transition:border-color .15s,background .15s}
.receipt-paste:focus-visible,.receipt-paste.dragging{border-color:var(--blue);background:#eef3ff}
.receipt-paste-hint{margin:0;font-size:12px;color:#5d6880}
.receipt-paste-hint b{display:block;color:var(--ink);font-size:13px;margin-bottom:3px}
.receipt-paste-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.receipt-paste.has-files .receipt-paste-list{margin-top:12px}
.receipt-paste-list li{position:relative;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;font-size:11px}
.receipt-paste-list img,.receipt-paste-pdf{display:flex;align-items:center;justify-content:center;width:100%;height:96px;object-fit:cover;background:#fff}
.receipt-paste-pdf{font-weight:700;font-size:18px;color:#a1392f}
.receipt-paste-name{display:block;padding:6px 8px 30px;color:var(--muted);overflow-wrap:anywhere;line-height:1.4}
.receipt-paste-remove{position:absolute;left:8px;bottom:6px;border:0;background:none;color:#a1392f;font-size:11px;padding:2px 0}
.receipt-paste-remove:hover{text-decoration:underline}
.receipt-paste-status{margin:10px 0 0;font-size:12px;color:var(--green)}
.receipt-paste-status:empty{display:none}
.receipt-paste-status.error{color:#a44438}
.venture-check-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.venture-check-notice b{display:block;color:var(--ink);margin-bottom:3px}
.venture-to-check{border-color:#f0d9a8}
.venture-history{list-style:none;margin:0;padding:0 24px 20px}
.venture-history li{padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.venture-history li:last-child{border-bottom:0}
.venture-history p{margin:6px 0 0;color:#5d6880}
.venture-history-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.venture-history-head span{color:var(--muted);font-size:11px}
.venture-history-changes{margin-top:8px;max-width:640px}
.venture-history-changes th,.venture-history-changes td{padding:7px 12px}
.venture-history-changes td.before{color:#a1392f;text-decoration:line-through}
.venture-history-changes td.after{color:#126344;font-weight:600}
/* the dashed box is the picker; keep the native field only as a slim fallback line */
.receipt-native{font-size:12px;color:var(--muted)}
.receipt-native::file-selector-button{margin-right:10px;padding:7px 12px;border:1px solid #cdd8ea;border-radius:8px;background:#fff;color:var(--blue);font-weight:600}
.receipt-paste{cursor:pointer}
/* 工作台: 每月固定开销 that must be paid now (base.html) */
.due-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:10px 14px;border:1px solid #f4b4ae;border-radius:10px;background:#fff7f6;color:#b42318;font-weight:600}
.due-bar:hover{text-decoration:none;border-color:#e58d85}
.due-bar span{margin-left:auto;font-weight:500;font-size:12px;white-space:nowrap}
/* 待过目草稿 on the owner's home: a to-do, not an overdue payment, so it is not red. */
.due-bar.review-bar{border-color:#c9d8ff;background:#f1f5ff;color:#2145b8}
.due-bar.review-bar:hover{border-color:#9db6fb}
.venture-receipts .venture-pdf img{width:100%;height:100%;object-fit:cover}
