.gg071-overlay{position:fixed;inset:0;z-index:999999;background:rgba(7,22,49,.6);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px)}
.gg071-dialog{width:min(100%,460px);background:#fff;color:#112b50;border-radius:18px;box-shadow:0 24px 80px #07162d66;padding:28px;font-family:Inter,system-ui,sans-serif}
.gg071-dialog h2{font-size:21px;margin:0 0 12px;font-weight:750;color:#0b2c60}.gg071-dialog p{white-space:pre-line;line-height:1.6;margin:0 0 24px;color:#425671;font-size:14px}
.gg071-actions{display:flex;justify-content:flex-end;gap:12px}.gg071-actions button{border:0;border-radius:10px;padding:12px 19px;cursor:pointer;font-weight:700;font-size:14px}.gg071-cancel{background:#e9eef8;color:#1c3a69}.gg071-accept{background:#1261e8;color:white}.gg071-actions button:focus-visible{outline:3px solid #87b5ff;outline-offset:2px}

.gg082-form{max-height:min(85vh,700px);overflow:auto;width:min(100%,480px)}.gg082-field{display:flex;flex-direction:column;gap:7px;margin:12px 0;font-size:13px;font-weight:700;color:#18345d}.gg082-field input,.gg082-field select,.gg082-field textarea{width:100%;box-sizing:border-box;border:1px solid #c6d4e9;border-radius:9px;padding:11px 12px;background:white;color:#152a4b;font:inherit}.gg082-field input:focus,.gg082-field select:focus,.gg082-field textarea:focus{outline:2px solid #2563eb;outline-offset:1px}


/* v222 · Janelas compartilhadas da Gráfica Uchôa
   A raiz agora é <dialog>, para aparecer acima de outros diálogos nativos.
   Definições com especificidade alta evitam conflitos com o estilo legado
   button { white-space:nowrap } e regras de largura de modais do ERP. */
dialog.gg071-overlay:not([open]){display:none!important}
dialog.gg071-overlay[open]{
 position:fixed!important;inset:0!important;margin:0!important;
 width:100vw!important;max-width:100vw!important;min-width:0!important;
 height:100vh!important;height:100dvh!important;
 max-height:100dvh!important;min-height:0!important;
 padding:clamp(12px,2.2vw,24px)!important;
 box-sizing:border-box!important;
 background:transparent!important;backdrop-filter:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:hidden!important;overscroll-behavior:contain;
 z-index:999999!important;
}
dialog.gg071-overlay::backdrop{
 background:rgba(7,22,49,.60)!important;
 -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
}
dialog.gg071-overlay > .gg071-dialog{
 box-sizing:border-box!important;flex:0 1 460px!important;
 width:min(460px,100%)!important;max-width:100%!important;
 min-width:0!important;max-height:calc(100dvh - 24px)!important;
 padding:clamp(16px,3.3vw,28px)!important;margin:0!important;
 overflow-x:hidden!important;overflow-y:auto!important;
 border:0!important;border-radius:16px!important;
 background:#fff!important;box-shadow:0 24px 80px #07162d66!important;
 color:#112b50!important;
}
dialog.gg071-overlay > .gg071-dialog.gg082-form{
 flex-basis:480px!important;width:min(480px,100%)!important;
}
dialog.gg071-overlay .gg071-dialog :is(h2,p,label,fieldset,.gg221-choice-options){
 box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
 overflow-wrap:anywhere!important;
}
dialog.gg071-overlay .gg071-actions{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 justify-content:flex-end!important;gap:8px 10px!important;
 min-width:0!important;max-width:100%!important;
}
dialog.gg071-overlay .gg071-dialog button{
 box-sizing:border-box!important;min-width:0!important;
 max-width:100%!important;white-space:normal!important;
 overflow-wrap:anywhere!important;line-height:1.35!important;
}
dialog.gg071-overlay .gg071-dialog .gg082-field{
 display:flex!important;flex-direction:column!important;gap:7px!important;
 min-width:0!important;max-width:100%!important;
}
dialog.gg071-overlay .gg082-field :is(input,select,textarea){
 box-sizing:border-box!important;width:100%!important;
 max-width:100%!important;min-width:0!important;
}
dialog.gg071-overlay .gg221-choice-options{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 min-width:0!important;width:100%!important;max-width:100%!important;
 gap:10px!important;
}
dialog.gg071-overlay .gg221-choice-options > button.gg221-choice-option{
 box-sizing:border-box!important;display:grid!important;
 grid-template-columns:minmax(0,1fr)!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
}
dialog.gg071-overlay .gg221-choice-options > button.gg221-choice-option :is(strong,span){
 min-width:0!important;max-width:100%!important;
 white-space:normal!important;overflow-wrap:anywhere!important;
}
dialog.gg071-overlay .gg221-choice-options > button.gg221-choice-cancel{
 box-sizing:border-box!important;width:auto!important;
 min-width:0!important;max-width:100%!important;justify-self:end!important;
 white-space:normal!important;
}
@media(max-width:440px){
 dialog.gg071-overlay[open]{padding:12px!important}
 dialog.gg071-overlay > .gg071-dialog{border-radius:13px!important;padding:18px 16px!important}
 dialog.gg071-overlay .gg071-dialog h2{font-size:19px!important}
 dialog.gg071-overlay .gg071-actions > button{flex:1 1 110px!important}
}
@media(prefers-reduced-motion:reduce){
 dialog.gg071-overlay,dialog.gg071-overlay *{
  scroll-behavior:auto!important;transition-duration:0.01ms!important;
 }
}


/* v222 · Contenção para formulários nativos já existentes, sem alterar suas regras. */
body.gg207-standard dialog:not(.gg071-overlay){
 box-sizing:border-box!important;
 min-width:0!important;
 max-width:100vw!important;
 overflow-x:hidden!important;
}
body.gg207-standard dialog:not(.gg071-overlay) :is(.actions-row,.dialog-actions,.actions){
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 flex-wrap:wrap!important;
}
body.gg207-standard dialog:not(.gg071-overlay) :is(.actions-row,.dialog-actions,.actions) button{
 box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
 white-space:normal!important;
}
body.gg207-standard dialog:not(.gg071-overlay) :is(input,select,textarea){
 box-sizing:border-box!important;max-width:100%!important;
}
body.gg207-standard dialog:not(.gg071-overlay) :is(.permission-grid,.detail-grid){
 max-width:100%!important;min-width:0!important;
}
body.gg207-standard dialog:not(.gg071-overlay) h2{
 overflow-wrap:anywhere!important;
}
