/* One A4 landscape document; the actual print action opens the generated PDF. */
#dailyPreview .a5-preview,.standalone-sheet .a5-preview{background:white!important;color:#111!important;border:1px solid #ccc;border-radius:0;aspect-ratio:297/210;padding:4%;box-shadow:0 10px 28px #0001;font-family:Arial,sans-serif}
#dailyPreview .a5-preview:before,.standalone-sheet .a5-preview:before{display:none}
#dailyPreview .a5-head,.standalone-sheet .a5-head{display:none!important}
#dailyPreview .a5-columns,.standalone-sheet .a5-columns{gap:7%;padding:0;grid-template-columns:1fr 1fr}
#dailyPreview .menu-flyer-column,.standalone-sheet .menu-flyer-column{padding:0;border:0;text-align:center}
#dailyPreview .a5-preview *,.standalone-sheet .a5-preview *{color:#111!important;box-shadow:none;background:transparent;border-color:#ccc}
#dailyPreview h3,.standalone-sheet h3{font-family:Arial,sans-serif!important;font-weight:400;background:none!important;border:0!important}
#dailyPreview .flyer-title,.standalone-sheet .flyer-title,#dailyPreview .special-box,.standalone-sheet .special-box{background:none;border:0;padding:0;margin:1em 0}
#dailyPreview .flyer-title b,.standalone-sheet .flyer-title b{text-decoration:underline}
#dailyPreview .flyer-contact,.standalone-sheet .flyer-contact{font-size:8px;line-height:1.4}
#dailyPreview .flyer-bottom,.standalone-sheet .flyer-bottom{flex-direction:column;border:0;gap:8px}
#dailyPreview .flyer-qr,.standalone-sheet .flyer-qr{width:65px;height:65px;image-rendering:pixelated}
.pdf-modal{max-width:min(1040px,calc(100% - 1rem))}
#pdfFrame{width:100%;height:65vh;border:1px solid #ddd;background:#eee}
.pdf-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:14px}
.history-row{grid-template-columns:minmax(200px,1fr) minmax(160px,.7fr) auto;align-items:center;gap:16px}
.history-row p{margin:.4em 0}.history-row time{font-size:.9rem}.history-row small{color:#665b52}
#couponHistory .button{border-radius:8px;font-size:.85rem;padding:.7rem 1rem}
@media(max-width:700px){.history-row{grid-template-columns:1fr;gap:.6rem}.history-row .button{width:100%}.panel-heading{flex-wrap:wrap}.panel-actions{flex-wrap:wrap}.pdf-dialog-content{padding:1rem!important}#pdfFrame{height:55vh}.standalone-sheet .a5-preview{aspect-ratio:auto}.standalone-sheet .a5-columns{grid-template-columns:1fr}.standalone-sheet .a5-preview p,.standalone-sheet .a5-preview li{font-size:14px!important}.standalone-sheet .flyer-contact{font-size:12px!important}}
