@media print {
 html,body{background:#fff!important;background-image:none!important;color-scheme:light!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none!important}
 dialog::backdrop{display:none!important;background:transparent!important;opacity:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
 dialog[open]{height:auto!important;min-height:0!important;max-height:none!important;background:#fff!important;box-shadow:none!important;overflow:visible!important;filter:none!important}
 .app-shell,.staff-layout,.workspace,.staff-main{height:auto!important;min-height:0!important;max-height:none!important;background:#fff!important;background-image:none!important;box-shadow:none!important;overflow:visible!important}
 .topbar,.staff-sidebar,.cloud-block,.auth-screen,.toast,.no-print,.receipt-actions,.receipt-copy-notice{display:none!important}
 body.printing-receipt>dialog:not(#receipt-dialog){display:none!important}
 body.printing-receipt>#receipt-dialog{height:auto!important;max-height:none!important;min-height:0!important;inset:auto!important;position:static!important;background:#fff!important}
 body.printing-report>dialog,body.printing-ledger>dialog{display:none!important}
 #receipt-preview,#report-sheet,#ledger-sheet{height:auto!important;min-height:0!important;max-height:none!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}
 body.printing-receipt .receipt-customer{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:7px 12px!important;width:100%!important;box-sizing:border-box!important}
 body.printing-receipt .receipt-customer>div{flex:0 0 48%!important;width:48%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:break-word!important}
 body.printing-receipt .receipt-customer>div.wide{flex-basis:100%!important;width:100%!important}
 body.printing-receipt .receipt-customer strong{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
 body.printing-ledger .ledger-profile-grid{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:5px!important}
 body.printing-ledger .ledger-profile-item{flex:0 0 23%!important;width:23%!important;min-width:0!important;box-sizing:border-box!important}
 body.printing-ledger .ledger-profile-item.wide{flex-basis:48%!important;width:48%!important}
 body.printing-ledger .ledger-profile-item.full{flex-basis:100%!important;width:100%!important}
 body.printing-receipt .agreement-detail-list{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:5px!important}
 body.printing-receipt .agreement-detail-item{flex:0 0 47%!important;width:47%!important;min-width:0!important;box-sizing:border-box!important}
 body.printing-receipt .agreement-detail-item.wide{flex-basis:100%!important;width:100%!important}
}
