/* Scoped generator layout. External sheet also works with strict CSP. */
html body #content .report-generator .panel-body{padding:22px!important}
html body #content #generatorSaved{display:flex!important;flex-wrap:wrap;align-items:center;gap:16px 22px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid #d6e0eb}
html body #content #generatorSaved>label{display:flex!important;align-items:center;gap:14px;margin:0;flex:1 1 360px;min-width:0}
html body #content #generatorSaved>label>span{flex:0 0 auto}
html body #content #generatorSaved :is(input,select){flex:1;min-width:0;width:auto!important;height:40px;box-sizing:border-box}
html body #content #generatorSaved>button{margin:0!important;flex:0 0 auto}
html body #content .generator-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:stretch}
html body #content .generator-card{border:1px solid #cdd9e6;border-radius:10px;background:var(--panel-bg,#fff);padding:22px;min-width:0}
html body #content .generator-card>h3{margin:0 0 22px;font-size:18px}
html body #content #reportGeneratorForm{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important;width:100%;margin:0}
html body #content #reportGeneratorForm>label{display:grid!important;grid-template-columns:155px minmax(0,1fr);align-items:center!important;gap:18px!important;margin:0!important;min-width:0!important;width:100%!important;flex:none!important}
html body #content #reportGeneratorForm>label>span{line-height:1.4}
html body #content #reportGeneratorForm :is(input,select){width:100%!important;min-width:0!important;max-width:none!important;height:40px!important;box-sizing:border-box;margin:0!important}
html body #content #reportGeneratorForm>button[type=submit]{align-self:flex-end!important;margin:8px 0 0!important;width:auto!important;flex:none!important}
html body #content #generatorColumns{display:flex!important;flex-direction:column!important;gap:0!important;margin:0;max-height:460px;overflow:auto;scrollbar-gutter:stable}
html body #content #generatorColumns>label{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 8px!important;margin:0!important;min-height:40px;box-sizing:border-box;border-bottom:1px solid #e7edf3;flex:none!important;width:100%!important}
html body #content #generatorColumns input[type=checkbox]{flex:0 0 18px!important;width:18px!important;height:18px!important;min-width:18px!important;margin:0!important}
html body #content .generator-hint{margin:-8px 0 16px;line-height:1.5;color:#607287}
html body #content #generatorMessage{margin:22px 0 16px;line-height:1.5}
html body #content .generator-export-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:14px;margin:0 0 20px}
html body #content .generator-export-actions>button{margin:0!important}
html body #content #generatorResults{overflow:auto;max-height:65vh}
html body #content #generatorResults table{width:100%}
html body #content #generatorResults th{position:sticky;top:0;background:#e5edf4}
@media(max-width:1050px){html body #content .generator-workspace{grid-template-columns:minmax(0,1fr)}html body #content #generatorColumns{max-height:380px}}
@media(max-width:600px){html body #content .report-generator .panel-body,html body #content .generator-card{padding:16px!important}html body #content #reportGeneratorForm>label{grid-template-columns:minmax(0,1fr);gap:8px!important}html body #content #generatorSaved>label{flex-direction:column;align-items:stretch;gap:8px}html body #content #generatorSaved :is(input,select){flex:auto;width:100%!important}}

html body #content #generatorPdfPreview{margin-top:24px;border-top:1px solid #ccd8e4;padding-top:20px}html body #content #generatorPdfPreview[hidden]{display:none!important}html body #content #generatorPdfFrame{width:100%;height:75vh;border:1px solid #ccd8e4;background:#fff}
