/* Leitura integral sem corte lateral; reutilizável na moldura escolar. */
#project-dialog{width:min(1180px,calc(100% - 40px));max-width:calc(100% - 40px)}
#project-dialog .project-layout,#project-dialog .project-content,#project-dialog .detail-card,#project-dialog .table-scroll{min-width:0;max-width:100%;box-sizing:border-box}
#project-dialog .project-content{overflow:auto;overflow-wrap:anywhere;scrollbar-gutter:stable;padding-right:28px}
#project-dialog .table-scroll{overflow:auto;margin:20px 0}
#project-dialog .table-scroll table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}
#project-dialog th,#project-dialog td{white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top;box-sizing:border-box}
#project-dialog th:first-child,#project-dialog td:first-child{width:24%}
#detail-dialog .modal-copy{min-width:0;min-height:0;max-height:none;overflow:auto;overflow-wrap:anywhere;scrollbar-gutter:stable}
.modal-window-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;flex-shrink:0}
.modal-header{flex-wrap:wrap}.modal-header h2{flex:1;min-width:180px;overflow-wrap:anywhere}
.modal-window-actions .modal-maximize{min-height:44px;padding:9px 14px;font-size:15px;line-height:1.35;white-space:normal}
#project-dialog.reading-maximized[open],#detail-dialog.reading-maximized[open],#pdf-dialog.reading-maximized[open]{position:fixed;inset:10px;margin:0;width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}
@media(max-width:760px){#project-dialog{width:calc(100% - 20px);max-width:calc(100% - 20px)}#project-dialog .project-content{padding:18px 16px}#project-dialog th,#project-dialog td{padding:10px 8px;font-size:14px}.modal-header{padding:14px;gap:12px}.modal-window-actions{gap:8px}.modal-window-actions .modal-maximize{font-size:14px;padding:8px 11px}}

#project-dialog .table-scroll tr>:first-child:nth-last-child(3){width:16%}#project-dialog .table-scroll tr>:nth-child(2):nth-last-child(2){width:24%}#project-dialog .table-scroll tr>:last-child:nth-child(3){width:60%}
