/* Operação 1.36.3: identificação de incidentes e contexto sem sobreposição em qualquer largura. */
#op-root{min-width:0;max-width:100%;margin-top:1rem}
#op-root [hidden]{display:none!important}
#op-root .op-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:end;padding:1rem 1.25rem;margin:1rem 0}
#op-root .op-filter>.btn{margin-bottom:1.55rem}
#op-root .op-field{display:flex;flex-direction:column;gap:.4rem;min-width:0}
#op-root .op-field>label{font-weight:650;font-size:.875rem;margin:0}
#op-root .op-field p{margin:.1rem 0;font-size:.77rem;overflow-wrap:anywhere}
#op-root .op-field input,#op-root .op-field select,#op-root .op-field textarea{width:100%;max-width:100%;min-width:0}
#op-root .op-field textarea{resize:vertical;min-height:6rem}
#op-root .op-field input[readonly],#op-root .op-field textarea[readonly]{background:var(--surface-alt)}
#op-root .op-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#op-root .op-card{padding:1.25rem;margin:0 0 1rem;min-width:0}
#op-root .op-card>h3{margin:0 0 .5rem;font-size:1.05rem;line-height:1.45;overflow-wrap:anywhere}
#op-root .op-card>p{margin:.45rem 0;line-height:1.6;overflow-wrap:anywhere}
#op-root .op-card>.auto-badge{margin:.35rem 0}
#op-root .op-row{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;min-width:0}
#op-root .op-row>strong{min-width:0;font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
#op-root .op-row>.auto-badge{flex:0 1 auto;max-width:45%;text-align:left}
#op-root .op-alert,#op-root .op-config,#op-root .op-run,#op-root .op-item,#op-root .op-case{border:1px solid var(--line);border-radius:.8rem;padding:1rem;margin:.85rem 0;min-width:0;background:var(--surface)}
#op-root .op-alert p,#op-root .op-config p,#op-root .op-run p,#op-root .op-item p,#op-root .op-case p{font-size:.82rem;line-height:1.6;margin:.45rem 0;overflow-wrap:anywhere}
#op-root .op-alert>.auto-badge,#op-root .op-item>.auto-badge,#op-root .op-case>.auto-badge{margin:.25rem 0}
#op-root .op-diagnostics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.2rem;margin:1rem 0;padding:.9rem;border:1px solid var(--line);border-radius:.65rem;background:var(--surface-alt)}
#op-root .op-diagnostics>div{min-width:0}
#op-root .op-diagnostics dt{margin:0 0 .2rem;font-size:.72rem;color:var(--muted);font-weight:650;line-height:1.5;overflow-wrap:anywhere}
#op-root .op-diagnostics dd{margin:0;font-size:.82rem;line-height:1.6;overflow-wrap:anywhere}
#op-root .op-alert-reference{padding-top:.65rem;border-top:1px solid var(--line)}
#op-root .op-queue-summary{border-left:.25rem solid var(--line)}
#op-root .op-actions{display:flex;flex-wrap:wrap;gap:.65rem;align-items:center;margin:1rem 0 .2rem}
#op-root .op-actions>.btn,#op-root .op-actions>.text-btn{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
#op-root .op-config>.op-actions>.btn{font-size:.82rem}
#op-root .op-settings{padding:1.15rem 1.25rem;margin-bottom:1rem}
#op-root .op-settings>summary{cursor:pointer;font-weight:700;font-size:.9rem;line-height:1.5}
#op-root .op-settings>p{font-size:.82rem;margin:.8rem 0;line-height:1.6}
#op-root .op-form{display:flex;flex-direction:column;gap:1rem;min-width:0;margin-top:1rem}
#op-root .op-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
#op-root .op-form-fieldset{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:1rem}
#op-root .op-form-fieldset:disabled{opacity:.7}
#op-root .op-check{display:flex;flex-direction:row;align-items:flex-start;gap:.65rem;min-height:2.75rem;min-width:0;margin:0;padding:.35rem 0;cursor:pointer;line-height:1.5}
#op-root .op-check input[type=checkbox]{width:1.1rem;height:1.1rem;min-width:0;min-height:0;padding:0;flex:0 0 1.1rem;margin:.12rem 0 0;border-radius:.2rem;accent-color:var(--primary)}
#op-root .op-check>span{display:block;min-width:0;overflow-wrap:anywhere}
#op-root .op-check strong{display:block;font-size:.875rem}
#op-root .op-check small{display:block;margin-top:.3rem;color:var(--muted);font-size:.77rem;font-weight:400}
#op-root .op-form-status{min-height:1.4em;font-size:.8rem;margin:.1rem 0}
#op-root .op-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:.7rem;margin:1rem 0}
#op-root .op-stats>div{min-width:0;border:1px solid var(--line);border-radius:.7rem;background:var(--surface-alt);padding:.8rem}
#op-root .op-stats span{display:block;color:var(--muted);font-size:.72rem;line-height:1.5;overflow-wrap:anywhere}
#op-root .op-stats strong{display:block;font-size:1.4rem;line-height:1.3;margin-top:.35rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#op-root .op-command{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.65rem;align-items:start;margin:1rem 0;padding-top:1rem;border-top:1px solid var(--line)}
#op-root .op-command>strong{grid-column:1/-1;font-size:.82rem}
#op-root .op-command textarea{min-width:0;max-width:100%;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.73rem;line-height:1.65;resize:vertical;min-height:5rem;overflow-wrap:anywhere}
#op-root .op-command>.btn{font-size:.78rem;white-space:normal}
#op-root .op-pagination{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;margin:1rem 0 .25rem}
#op-root .op-pagination>p{margin:0 auto 0 0}
#op-root .op-empty{padding:2rem;text-align:center}
#op-root .op-proofs{padding-left:1.2rem;margin:.6rem 0;font-size:.78rem;line-height:1.7;overflow-wrap:anywhere}
#op-root .op-dialog{width:min(52rem,calc(100% - 2rem));max-width:52rem;max-height:calc(100dvh - 2rem);overflow:auto;scroll-padding-block:2rem 7rem}
#op-root .op-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;margin-bottom:1rem}
#op-root .op-dialog-heading h2{margin:.2rem 0;font-size:1.3rem;line-height:1.4;min-width:0;overflow-wrap:anywhere}
#op-root .op-dialog-heading>.text-btn{flex:0 0 auto}
#op-root .op-dialog .op-form>.op-actions{position:sticky;bottom:-2rem;z-index:2;background:var(--surface);border-top:1px solid var(--line);padding:.85rem 0;margin-top:.5rem}
#op-root .op-table{width:100%;white-space:normal;table-layout:fixed;border-collapse:collapse;margin-top:.8rem;font-size:.78rem}
#op-root .op-table th,#op-root .op-table td{white-space:normal;overflow-wrap:anywhere;text-align:left;vertical-align:top;padding:.7rem;border:1px solid var(--line);line-height:1.6;min-width:0}
#op-root .op-table th{background:var(--surface-alt);font-size:.72rem;color:var(--muted)}
#op-root .op-table th:first-child{width:25%}
@media(max-width:55rem){
  #op-root .op-grid{grid-template-columns:minmax(0,1fr)}
  #op-root .op-grid .op-card{margin-bottom:0}
  #op-root .op-grid{margin-bottom:1rem}
  #op-root .op-row{flex-direction:column;gap:.45rem}
  #op-root .op-row>.auto-badge{max-width:100%}
  #op-root .op-filter{grid-template-columns:minmax(0,1fr);gap:.6rem;padding:1rem}
  #op-root .op-filter>.btn{margin-bottom:0;width:100%}
}
@media(max-width:40rem){
  #op-root .op-card,#op-root .op-settings{padding:1rem}
  #op-root .op-form-grid{grid-template-columns:minmax(0,1fr)}
  #op-root .op-diagnostics{grid-template-columns:minmax(0,1fr)}
  #op-root .op-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #op-root .op-command{grid-template-columns:minmax(0,1fr)}
  #op-root .op-command>.btn{width:100%}
  #op-root .op-actions>.btn{flex:1 1 10rem}
  #op-root .op-dialog{width:calc(100% - 1rem);max-height:calc(100dvh - 1rem);padding:1rem}
  #op-root .op-dialog .op-form>.op-actions{bottom:-1rem}
  #op-root .op-dialog .op-form>.op-actions>.btn{flex:1 1 0;min-width:0;padding:.7rem .5rem}
  #op-root .op-table,#op-root .op-table tbody,#op-root .op-table tr,#op-root .op-table td{display:block;width:100%;min-width:0}
  #op-root .op-table thead{display:none}
  #op-root .op-table tr{border:1px solid var(--line);border-radius:.6rem;overflow:hidden;margin:.7rem 0}
  #op-root .op-table td{border:0;border-bottom:1px solid var(--line);padding:.7rem}
  #op-root .op-table td:last-child{border-bottom:0}
  #op-root .op-table td:before{content:attr(data-label);display:block;font-size:.7rem;color:var(--muted);font-weight:700;margin-bottom:.25rem}
}
