.pq295-modal .modal-box{width:min(960px,96vw);max-width:960px}.pq295{display:grid;gap:14px;font-family:Arial,sans-serif}.pq295 label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0}.pq295 input,.pq295 select,.pq295 textarea{width:100%;min-width:0;min-height:38px;padding:8px;border:1px solid #cbd5e1;border-radius:8px;font:14px Arial,sans-serif}.pq295-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pq295-wide{grid-column:1/-1}.pq295-inline{display:flex;gap:6px}.pq295-inline select{flex:1}.pq295-line{display:grid;grid-template-columns:3fr 1fr 1fr 1.5fr auto;align-items:end;gap:8px;padding:10px 0;border-bottom:1px solid #e2e8f0}.pq295-totals{display:flex;flex-wrap:wrap;gap:18px;background:#eff6ff;padding:14px;border-radius:10px}.pq295-totals span{flex:1;min-width:105px}.pq295-totals b{display:block;font-size:18px;margin-top:5px}.pq295-actions{display:flex;gap:8px;flex-wrap:wrap}.pq295 details summary{cursor:pointer;padding:8px 0}@media(max-width:600px){.pq295-grid{grid-template-columns:1fr}.pq295-line{grid-template-columns:repeat(3,minmax(0,1fr))}.pq295-line label:first-child{grid-column:1/-1}.pq295-line button{grid-column:3}.pq295-actions .btn{flex:1}}

/* Invoice list actions: scoped so other reports retain their layout. */
html body #content .report-page-head.ami251-invoice-head .report-page-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%;box-sizing:border-box}
html body #content .report-page-head.ami251-invoice-head .report-page-actions>.btn{width:auto!important;flex:0 1 auto!important;min-width:0!important;min-height:40px!important;height:auto!important;margin:0!important;padding:9px 12px!important;white-space:normal!important;line-height:1.3!important}
@media(max-width:760px){html body #content .report-page-head.ami251-invoice-head{padding:10px!important;min-width:0!important}html body #content .report-page-head.ami251-invoice-head .report-page-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:7px!important;padding:0!important}html body #content .report-page-head.ami251-invoice-head .report-page-actions>.btn{grid-column:auto!important;width:100%!important;max-width:100%!important;padding:9px 6px!important;font-size:12px!important;overflow-wrap:anywhere!important}html body #content .report-page-head.ami251-invoice-head #inv251-toggle{grid-column:1/-1!important}}
