.profit-report-title{text-align:center!important;font-size:26px!important;margin:12px 0 20px;color:#151515!important;letter-spacing:1px}
.profit-report-meta{display:flex;justify-content:space-between;gap:20px;margin:20px 0;font-size:13px}
.profit-overview,.profit-general{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;background:#fff!important;color:#151515!important;font-size:13px}
.profit-overview th,.profit-overview td,.profit-general th,.profit-general td{border:1px solid #929aa1;padding:8px 10px!important;text-align:right!important;white-space:nowrap}
.profit-overview th:first-child,.profit-general th:first-child{text-align:left}
.profit-overview thead,.profit-general thead{background:#e5e9ed!important;color:#151515!important}
.profit-overview tbody tr:nth-child(even){background:#f5f6f7}
.profit-overview tfoot,.profit-general tfoot{background:#dfe5ea;font-weight:bold}.loss{color:#a01818}.gain{color:#125b36}
.profit-general{width:min(800px,100%);margin:30px auto}.profit-general caption{caption-side:top;border:1px solid #929aa1;border-bottom:0;background:#e5e9ed!important;padding:10px;font-weight:bold;font-size:16px;color:#151515!important}
.report-note{font-size:12px;color:#555;margin:12px 0}.profit-details{margin-top:24px}.profit-details summary{padding:12px;background:#e5e9ed!important;border:1px solid #929aa1;font-weight:bold;cursor:pointer}
@media print{.profit-details{display:none}.profit-report-title{font-size:22px}.profit-overview th,.profit-overview td{padding:5px;font-size:10px}.profit-scroll{overflow:visible}}

.profit-overview tbody tr,.profit-general tbody tr{background:#fff!important}.profit-overview tbody tr:nth-child(even),.profit-general tbody tr:nth-child(even){background:#f0f3f6!important}.profit-overview th:first-child,.profit-general th:first-child{text-align:left!important}.profit-overview tfoot th,.profit-general tfoot th{background:#dfe5ea!important;color:#151515!important}
.report-export-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.report-export-actions p{flex-basis:100%;margin:0}.profit-expenses{border-top:2px solid #406659;margin-top:24px;padding-top:16px}.profit-expenses h2{text-align:center}.profit-expenses .profit-general{margin-top:12px}.profit-expenses tfoot tr:last-child{font-size:16px;border-top:3px double #49665c}
@media print{body:has(#sales-report-export) header,body:has(#sales-report-export) nav,body:has(#sales-report-export) .module-titlebar,#sales-report-export form,#sales-report-export [data-no-export]{display:none!important}#sales-report-export .profit-details{display:none!important}#sales-report-export table{display:table!important;font-size:9px!important;width:100%!important}#sales-report-export thead{display:table-header-group!important}#sales-report-export tbody{display:table-row-group!important}#sales-report-export tr{display:table-row!important;break-inside:avoid}#sales-report-export td,#sales-report-export th{display:table-cell!important;white-space:normal!important;padding:4px!important}#sales-report-export td:before{display:none!important}.profit-scroll{overflow:visible!important}}
/* Printed reference: white paper, compact ruled groups and centered totals. */
#sales-report-export .profit-report-title{font-size:30px!important;letter-spacing:0;margin:24px 0!important}
#sales-report-export .profit-report-meta{align-items:flex-start;margin:28px 0 36px}
#sales-report-export .profit-overview,#sales-report-export .profit-general{font-family:Arial,sans-serif;font-size:13px}
#sales-report-export .profit-overview th,#sales-report-export .profit-overview td,#sales-report-export .profit-general th,#sales-report-export .profit-general td{border:1px solid #aaa;padding:6px 8px!important}
#sales-report-export .profit-overview tr,#sales-report-export .profit-general tr,#sales-report-export .profit-overview thead,#sales-report-export .profit-general thead,#sales-report-export .profit-overview tfoot th,#sales-report-export .profit-general tfoot th,#sales-report-export .profit-general caption{background:#fff!important;color:#111!important}
#sales-report-export .profit-summary{width:min(760px,100%);margin:40px auto}
#sales-report-export .profit-summary caption{font-size:18px;padding:9px}
#sales-report-export .expense-total{border-top:2px solid #555}
#sales-report-export .profit-summary tfoot td{font-weight:800;text-decoration:underline;text-underline-offset:3px}
@media screen and (max-width:700px){
#sales-report-export .profit-report-title{font-size:23px!important}
#sales-report-export .profit-report-meta{display:grid;gap:8px;margin:18px 0}
#sales-report-export .profit-scroll{overflow:visible}
#sales-report-export .profit-overview,#sales-report-export .profit-general{display:block;width:100%}
#sales-report-export .profit-overview thead,#sales-report-export .profit-general thead{display:none!important}
#sales-report-export .profit-overview tbody,#sales-report-export .profit-overview tfoot,#sales-report-export .profit-general tbody,#sales-report-export .profit-general tfoot{display:block}
#sales-report-export .profit-overview tr,#sales-report-export .profit-general tr{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-bottom:12px;border:1px solid #c8cfcc;border-radius:8px;overflow:hidden}
#sales-report-export .profit-overview th,#sales-report-export .profit-general th{grid-column:1/-1;text-align:left!important;background:#f0f4f2!important}
#sales-report-export .profit-overview td,#sales-report-export .profit-general td{display:flex;flex-direction:column;align-items:flex-start;white-space:normal;min-width:0;border:0;border-top:1px solid #e3e8e5;padding:10px!important;text-align:left!important;font-size:14px;overflow-wrap:anywhere}
#sales-report-export td[data-label]:before{content:attr(data-label);font-size:11px;font-weight:400;color:#56675e;display:block;margin-bottom:4px}
#sales-report-export .profit-general caption{display:block}
#sales-report-export td[colspan]{display:none}
}
