
/* SmartPOS business-owned document templates. Platform marks and oversized UI icons never print. */
.sp-document-header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:2px solid #d6dce6;padding:16px 10px 18px;margin-bottom:24px;background:#fff;color:#1c293b;border-radius:8px 8px 0 0}
.sp-document-identity{display:flex;align-items:center;gap:15px;min-width:0;flex:1}
.sp-document-logo{width:72px;height:72px;object-fit:contain;flex:0 0 auto}
.sp-document-monogram{width:64px;height:64px;display:grid;place-items:center;border:1px solid #dfe5ef;border-radius:8px;color:#314456;background:#f5f7fa;font-size:21px;font-weight:800}
.sp-document-company{font-size:20px;font-weight:800;line-height:1.25;overflow-wrap:anywhere}
.sp-document-contact,.sp-document-branch{font-size:11px;color:#475569;margin-top:4px;line-height:1.45}
.sp-document-meta{text-align:right;min-width:178px}
.sp-document-type{font-size:16px;font-weight:750;line-height:1.3;color:#243043}
.sp-document-period{font-size:12px;font-weight:600;color:#475569;margin-top:5px}
.sp-document-generated,.sp-document-currency{font-size:10px;color:#64748b;margin-top:5px}
.sp-report-actions{display:flex;justify-content:flex-end;gap:8px;margin:0 0 14px}
.report-page{background:#fff!important;color:#243043!important;min-width:0}
.report-page .summary-icon svg{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important}
.report-page .sp-bs-icon{width:20px;max-width:20px;height:20px;max-height:20px}
.report-page .table-responsive{overflow-x:auto;max-width:100%}
@media(max-width:640px){.sp-document-header{align-items:flex-start;flex-direction:column;gap:14px}.sp-document-meta{text-align:left}.sp-document-logo{width:56px;height:56px}}
@media print{
 .sp-document-header{border-radius:0;margin:0 0 14px;padding:0 0 13px;gap:15px;break-inside:avoid;page-break-inside:avoid}
 .sp-document-logo{height:64px;width:64px}.sp-document-company{font-size:18px}.sp-document-type{font-size:15px}
 .report-page,.p2-report-print,.invoice-paper,.quotation-paper{background:#fff!important;color:#17212f!important;max-width:none!important;box-shadow:none!important;border:0!important}
 .report-page .controls-paper,.report-page .filter-paper,.report-page .refresh-paper,.report-page .date-filter-paper,.report-page .generate-btn,.report-page .no-print,.report-page .sp-report-actions,.report-page .alert-message,.report-page input,.report-page select,.report-page .date-picker,.report-page button,
 .p2-report-print input,.p2-report-print button,.p2-date-bar,.no-print,.p2-head,.print-btn{display:none!important}
 .report-page .table-responsive,.report-page .table-container,.report-page .mud-table-container,.report-page .p2-scroll{overflow:visible!important}
 .report-page table,.p2-report-print table{width:100%!important;border-collapse:collapse!important;font-size:10px!important}
 .report-page thead,.p2-report-print thead{display:table-header-group!important}
 .report-page tr,.p2-report-print tr{break-inside:avoid!important;page-break-inside:avoid!important}
 .report-page th,.p2-report-print th{background:#f1f5f9!important;color:#17212f!important}
 .report-page th,.report-page td,.p2-report-print th,.p2-report-print td{padding:6px 8px!important;border-bottom:1px solid #dce1e9!important}
 .report-page svg,.p2-report-print svg,.quotation-paper svg,.invoice-paper svg{width:17px!important;height:17px!important;max-width:17px!important;max-height:17px!important}
 .report-page .summary-card,.report-page .card,.report-page .sp-panel{border:1px solid #e1e5eb!important;box-shadow:none!important;background:#fff!important;color:#17212f!important}
 .report-page .summary-card *{color:#17212f!important}
 .report-header-print{display:block!important}
 .report-footer-print{display:block!important}
}
