.profit-report{--pr-ink:#2b3935;--pr-accent:#25604f;--pr-loss:#9c484d;--pr-muted:#697970;--pr-line:#e2e9e5;--pr-soft:#f5f8f6;color:var(--pr-ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-variant-numeric:tabular-nums}
.profit-report h1,.profit-report h2,.profit-report p{margin:0}.profit-report h1{font-size:28px;line-height:1.3}.profit-report h2{font-size:20px;line-height:1.4}.pr-muted,.pr-notes,.pr-basis{color:var(--pr-muted)}
.pr-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.pr-header .pr-muted{margin-top:7px;font-size:14px}.pr-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.pr-controls .tabs{margin:0}.pr-controls #filter-form{display:flex;gap:8px;padding:0;margin:0;border:0;align-items:center}.pr-controls #filter-form label{min-width:0;gap:0}.pr-controls #filter-form label>span{display:none}.pr-controls input{max-width:162px}.pr-controls button,.pr-controls input{min-height:38px}.pr-controls .tabs button{padding:8px 14px}.pr-controls #filter-form [data-action=reset]{display:none}
.pr-overview,.pr-payroll-metrics{display:grid;gap:10px}.pr-overview{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:25px}.pr-payroll-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0}
.pr-metric{min-width:0;padding:15px 14px;border:1px solid var(--pr-line);border-radius:5px;background:#fff}.pr-metric>span{font-size:13px;font-weight:600}.pr-metric strong{display:block;margin-top:6px;font-size:25px;line-height:1.25;white-space:nowrap}.pr-loss-label{display:block;margin-top:3px;color:var(--pr-loss);font-size:12px;font-weight:600}.pr-money{color:var(--pr-ink);white-space:nowrap}.pr-accent{color:var(--pr-accent)}.pr-loss{color:var(--pr-loss)}.pr-pending{color:var(--pr-muted);font-weight:600;font-size:inherit}
.pr-section{margin:25px 0}.pr-section-heading{display:flex;gap:14px;align-items:baseline;justify-content:flex-start;margin-bottom:12px}.pr-section-heading p{font-size:13px}.pr-section-link{margin-left:auto;color:var(--pr-accent);font-size:13px}.pr-section>h2{margin-bottom:12px}.pr-table-scroll{overflow:auto;border:1px solid var(--pr-line);border-radius:5px}.pr-table{width:100%;border-collapse:collapse;font-size:14px;margin:0}.pr-table th,.pr-table td{padding:11px 13px;color:var(--pr-ink);border-bottom:1px solid var(--pr-line);text-align:left;vertical-align:middle}.pr-table th{font-size:13px;font-weight:600;background:var(--pr-soft);white-space:nowrap}.pr-table td.pr-value,.pr-table th.pr-value{text-align:right}.pr-table tbody tr:last-child td{border-bottom:0}.pr-table tfoot td{font-weight:700;background:var(--pr-soft);border-top:1px solid var(--pr-line);border-bottom:0}.pr-table a{color:var(--pr-ink);text-decoration:none;border-bottom:1px dotted #a9bcb2}.pr-table a:hover{color:var(--pr-accent)}.pr-table .pr-empty{text-align:center;color:var(--pr-muted);padding:22px}.pr-business{min-width:680px}.pr-wages{min-width:790px}.pr-expenses{min-width:660px}.pr-expenses th:nth-child(2),.pr-expenses td:nth-child(2),.pr-expenses th:nth-child(3),.pr-expenses td:nth-child(3),.pr-expenses th:nth-child(5),.pr-expenses td:nth-child(5),.pr-expenses th:nth-child(6),.pr-expenses td:nth-child(6){text-align:left}.pr-wages td:first-child{white-space:nowrap}
.pr-row-note{display:block;margin-top:4px;color:var(--pr-muted);font-size:12px;font-weight:400;line-height:1.6;max-width:340px}.pr-value .pr-row-note{margin-left:auto}
.pr-subheading{margin:15px 0 0;font-size:15px;font-weight:600}.pr-customer-wages .pr-metric{background:var(--pr-soft)}.pr-payroll>.pr-notes{margin:9px 0 12px}.pr-cash td:last-child,.pr-cash th:last-child{text-align:left;white-space:normal}.pr-cash{min-width:640px}.pr-months{min-width:920px}
.pr-table.pr-expenses{min-width:1100px}.pr-table.pr-expenses th,.pr-table.pr-expenses td{text-align:left}.pr-table.pr-expenses th:nth-child(6),.pr-table.pr-expenses td:nth-child(6),.pr-table.pr-expenses th:nth-child(7),.pr-table.pr-expenses td:nth-child(7){text-align:right}.pr-expenses td:nth-child(3),.pr-expenses td:nth-child(4),.pr-expenses td:nth-child(9){white-space:nowrap}
.pr-notes{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 20px;margin-top:9px;font-size:12px;line-height:1.7}.pr-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.pr-category{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 14px;border:1px solid var(--pr-line);border-radius:5px;font-size:13px}.pr-category>span{margin-right:auto;font-weight:600}.pr-category small{color:var(--pr-muted);font-size:12px}.pr-equation{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 15px;padding:16px;background:#f0f6f2;border:1px solid #dce9e0;border-radius:5px;font-size:14px}.pr-equation strong{font-size:19px}.pr-operator{font-size:22px;color:var(--pr-muted)}.pr-basis{margin-top:22px;padding-top:16px;border-top:1px solid var(--pr-line);font-size:12px;line-height:1.8}.pr-basis summary{cursor:pointer;font-weight:600}.pr-basis p{margin-top:10px}.pr-basis dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.pr-basis dl>div{min-width:0}.pr-basis dd{margin:3px 0 0;font-weight:600}.pr-warning{padding:12px 16px;border:1px solid #dccfc0;background:#faf8f3;border-radius:5px;font-size:13px;color:#71634e;margin-bottom:20px}.pr-warning p{margin-top:4px}
@media(min-width:1550px){.pr-metric strong{font-size:28px}}
@media(max-width:1550px){.pr-header{align-items:flex-start;flex-wrap:wrap}.pr-controls{justify-content:flex-start}.pr-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.pr-notes{display:block}.pr-notes p+p{margin-top:4px}}
@media(max-width:700px){.pr-header{gap:15px;margin-bottom:18px}.profit-report h1{font-size:25px}.profit-report h2{font-size:18px}.pr-header .pr-muted{font-size:12px}.pr-controls{gap:8px;width:100%}.pr-controls button{font-size:12px;padding:8px 10px}.pr-controls .tabs{flex-shrink:0}.pr-controls #filter-form{flex:1;min-width:0}.pr-controls input{max-width:none;width:100%;font-size:12px}.pr-controls #filter-form label{flex:1;min-width:100px}.pr-controls .tabs button{padding:8px 12px}.pr-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pr-metric{padding:12px 10px}.pr-metric>span{font-size:12px}.pr-metric strong{font-size:21px}.pr-payroll-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pr-section{margin:22px 0}.pr-section-heading{flex-wrap:wrap;gap:4px 10px}.pr-section-heading p{font-size:12px}.pr-section-link{font-size:12px}.pr-categories{grid-template-columns:1fr;gap:7px}.pr-category{padding:9px 12px}.pr-equation{justify-content:flex-start;gap:8px;font-size:12px}.pr-equation strong{font-size:16px}.pr-notes{font-size:11px}.pr-table th,.pr-table td{padding:10px 11px;font-size:12px}.pr-basis dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body:has(#print-content>.pr-print),#print-content:has(>.pr-print){page:profit-report}}
@media print{@page profit-report{size:A4 landscape;margin:12mm}.pr-print{page:profit-report;--pr-ink:#222;--pr-accent:#222;--pr-loss:#222;--pr-muted:#555;--pr-line:#bbb;--pr-soft:#f2f2f2;font-size:10px}.pr-print .pr-header{margin-bottom:12px;display:block}.pr-print h1{font-size:21px}.pr-print h2{font-size:15px}.pr-print .pr-header .pr-muted{font-size:11px}.pr-print .pr-overview{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-bottom:14px}.pr-print .pr-metric{padding:9px}.pr-print .pr-metric>span{font-size:10px}.pr-print .pr-metric strong{font-size:17px}.pr-print .pr-loss-label{font-size:9px}.pr-print .pr-section{margin:16px 0}.pr-print .pr-section-heading{margin-bottom:8px}.pr-print .pr-section-heading p{font-size:10px}.pr-print .pr-payroll-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0}.pr-print .pr-table-scroll{overflow:visible;border-color:#bbb;border-radius:0}.pr-print .pr-table{min-width:0;font-size:10px}.pr-print .pr-table th,.pr-print .pr-table td{font-size:10px;padding:6px 8px}.pr-print .pr-table th{background:#f2f2f2}.pr-print .pr-table thead{display:table-header-group}.pr-print .pr-table tfoot{display:table-row-group}.pr-print tr,.pr-print .pr-metric{break-inside:avoid}.pr-print h2,.pr-print .pr-section-heading{break-after:avoid}.pr-print .pr-notes{display:block;font-size:9px}.pr-print .pr-categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pr-print .pr-category{padding:7px 9px;font-size:10px}.pr-print .pr-equation{padding:10px;font-size:11px;break-inside:avoid;background:#f6f6f6;border-color:#bbb}.pr-print .pr-equation strong{font-size:16px}.pr-print .pr-basis{font-size:9px;margin-top:15px;padding-top:10px}.pr-print .pr-basis dl{grid-template-columns:repeat(4,minmax(0,1fr))}.pr-print .pr-warning{font-size:10px;padding:8px;border-color:#bbb;color:#222}}
.pr-valuations{min-width:740px}.pr-valuations td:last-child,.pr-valuations th:last-child{text-align:left}.pr-stock-valuation .pr-metric strong{font-size:22px}
