/*
 * MasterPlating — estilos das telas de sgq.
 * V794: retirados dos blocos <style> que ficavam dentro do JavaScript (conteúdo idêntico).
 */

/* sgq.js — viewAnaliseCritica93 */
.ac93-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ac93-card{background:#fff;border:1px solid #d8e3ef;border-radius:12px;overflow:hidden;min-height:150px}.ac93-card-head{padding:12px;background:#f7faff;border-bottom:1px solid #e7eef5;display:flex;justify-content:space-between;gap:10px}.ac93-card-head strong{display:block;color:#173f68;font-size:13px}.ac93-card-head small{display:block;color:#71869a;font-size:10px;margin-top:4px;max-width:330px}.ac93-status{white-space:nowrap;height:max-content;border-radius:12px;padding:4px 8px;font-size:9px;font-weight:700}.ac93-status.ok{background:#e7f6eb;color:#287044}.ac93-status.off{background:#fdeceb;color:#a13a35}.ac93-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:11px}.ac93-stat{background:#f8fafc;border:1px solid #edf1f5;border-radius:8px;padding:8px}.ac93-stat span{display:block;color:#71869a;font-size:9px;text-transform:none}.ac93-stat strong{display:block;color:#173f68;font-size:15px;margin-top:3px}.ac93-unavailable{margin:12px;background:#f7f9fb;border-left:4px solid #d9a63a;padding:10px;color:#667c91;font-size:11px;border-radius:6px}@media(max-width:1100px){.ac93-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.ac93-grid{grid-template-columns:1fr}}

/* sgq.js — renderDetalhePlanoControle */
.pcu-page{max-width:100%;padding-bottom:20px}
      .pcu-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:16px 18px;background:linear-gradient(135deg,#f8fbff,#edf5fd);border:1px solid #d4e1ef;border-radius:14px;margin-bottom:14px}
      .pcu-hero-left{min-width:0}.pcu-eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#6c829b;font-weight:800;margin-bottom:3px}.pcu-title{margin:0;color:#123f76;font-size:24px;line-height:1.15}.pcu-subtitle{margin:5px 0 0;color:#657b95;font-size:12px}.pcu-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pcu-status{margin-top:8px}
      .pcu-overview{display:grid;grid-template-columns:1.15fr 1fr 1fr 1fr;gap:10px;margin-bottom:14px}.pcu-info{background:#fff;border:1px solid #d7e3ef;border-radius:12px;padding:11px 12px}.pcu-info label{display:block;font-size:10px;color:#73879c;margin-bottom:4px}.pcu-info strong{display:block;font-size:13px;color:#183f70}.pcu-section{background:#fff;border:1px solid #d7e3ef;border-radius:14px;margin-bottom:14px;overflow:hidden;box-shadow:0 2px 8px rgba(23,61,101,.03)}
      .pcu-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;background:#eef5fc;border-bottom:1px solid #d7e3ef}.pcu-section-title{margin:0;color:#12477f;font-size:14px;font-weight:800}.pcu-section-note{font-size:10.5px;color:#72869a}.pcu-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pcu-table-wrap{overflow:auto}.pcu-table{width:100%;border-collapse:collapse;table-layout:fixed}.pcu-table th{background:#e2eef9;color:#183f70;font-size:10px;padding:9px 8px;text-align:left;border-bottom:1px solid #c4d7ea;white-space:nowrap}.pcu-table td{padding:9px 8px;border-bottom:1px solid #e5ebf2;color:#28435d;font-size:11px;vertical-align:top;word-break:break-word}.pcu-table tr:last-child td{border-bottom:0}.pcu-table th:nth-child(1){width:9%}.pcu-table th:nth-child(2){width:16%}.pcu-table th:nth-child(3){width:15%}.pcu-table th:nth-child(4){width:11%}.pcu-table th:nth-child(5){width:13%}.pcu-table th:nth-child(6){width:12%}.pcu-table th:nth-child(7){width:13%}.pcu-table th:nth-child(8){width:10%}.pcu-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;font-size:9.5px;font-weight:700;background:#edf4fb;color:#24527d}.pcu-badge.warn{background:#fff1d8;color:#9b5d00}.pcu-badge.ok{background:#e3f7ed;color:#19794d}.pcu-actions-cell{display:flex;gap:6px;flex-wrap:wrap}.pcu-empty{padding:34px 16px;text-align:center;color:#7890a6;font-size:12px}.pcu-meta{font-size:10.5px;color:#75899c;line-height:1.5}.pcu-parameter{font-weight:700;color:#173f72}.pcu-modal-backdrop{position:fixed;inset:0;background:rgba(11,33,57,.46);display:flex;align-items:center;justify-content:center;padding:20px;z-index:9999}.pcu-modal{width:min(1060px,96vw);max-height:94vh;overflow:auto;background:#fff;border:1px solid #cddceb;border-radius:16px;box-shadow:0 18px 50px rgba(13,42,72,.26)}.pcu-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:15px 18px;background:#f5f9fd;border-bottom:1px solid #dce7f1}.pcu-modal-head h3{margin:0;color:#123f76;font-size:18px}.pcu-modal-head p{margin:4px 0 0;font-size:11px;color:#72869a}.pcu-modal-body{padding:18px 20px}.pcu-form-section-title{display:flex;align-items:center;gap:8px;margin:2px 0 10px;padding-left:9px;border-left:3px solid #f58220;color:#173f6d;font-size:12px;font-weight:800}.pcu-form-section-title:not(:first-child){margin-top:6px}.pcu-modal-body .field{min-width:0}.pcu-modal-body .field label{display:block;margin-bottom:5px;color:#536b84;font-size:11px;font-weight:700}.pcu-modal-body .field input,.pcu-modal-body .field select,.pcu-modal-body .field textarea{width:100%;min-width:0;box-sizing:border-box}.pcu-modal-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.pcu-modal-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}.pcu-monitored-field{padding:10px 11px;background:#f4f8fd;border:1px solid #d6e5f5;border-radius:10px}.pcu-monitored-field select{border-color:#a9c8e8!important;background:#fff}.pcu-monitored-field .pcu-meta{margin-top:5px}.pcu-inline-retry{border:0;background:transparent;color:#1766b3;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;padding:0 3px}.pcu-final-links{margin-bottom:0}.pcu-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #dce7f1;background:#fbfdff}.pcu-close{border:1px solid #c9d7e6;background:#fff;color:#25486d;border-radius:8px;min-width:36px;height:34px;cursor:pointer;font-size:18px}.pcu-help{padding:9px 11px;background:#eef6ff;border:1px solid #d3e5f6;border-radius:9px;color:#54708d;font-size:11px;margin-bottom:12px}
      @media(max-width:950px){.pcu-overview{grid-template-columns:1fr 1fr}.pcu-hero{flex-direction:column}.pcu-table{table-layout:auto;min-width:900px}.pcu-modal-grid2,.pcu-modal-grid3{grid-template-columns:repeat(2,minmax(0,1fr))}}
      @media(max-width:620px){.pcu-modal-backdrop{padding:8px}.pcu-modal{width:100%;max-height:96vh;border-radius:12px}.pcu-modal-head,.pcu-modal-body{padding:13px}.pcu-modal-grid2,.pcu-modal-grid3{grid-template-columns:1fr;gap:9px}}

/* sgq.js — viewSgqDocumentos */
.sgq-doc-page{--sgq-blue:#174b91;--sgq-blue2:#0e65b7;--sgq-orange:#f58220;--sgq-ink:#17385f;--sgq-soft:#f4f8fd;}
      .sgq-doc-page .sgq-hero{position:relative;overflow:hidden;min-height:96px;height:96px;display:flex;align-items:center;border-radius:14px;background:linear-gradient(105deg,#f7fbff 0%,#eef5fc 62%,#e2eef9 100%);border:1px solid #d7e4f3;padding:10px 16px;margin-bottom:12px;box-shadow:0 3px 14px rgba(20,55,95,.08)}
      .sgq-doc-page .sgq-hero:after{content:"";position:absolute;right:-80px;top:-75px;width:390px;height:220px;background:radial-gradient(circle,#d5e7f8 0%,rgba(213,231,248,0) 70%);pointer-events:none}
      .sgq-doc-title{display:flex;gap:11px;align-items:flex-start;position:relative;z-index:2;max-width:60%}.sgq-doc-icon{width:38px;height:38px;border-radius:11px;background:#e7f1fd;color:#1766b3;display:flex;align-items:center;justify-content:center;font-size:20px;border:1px solid #cfe1f5}.sgq-doc-title h1{margin:0;color:var(--sgq-ink);font-size:22px;line-height:1.1}.sgq-doc-title p{margin:3px 0 0;color:#53708f;font-size:12px;max-width:760px}.sgq-hero-image{position:absolute;right:0;top:0;height:100%;width:42%;z-index:1;opacity:.9;mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 12%,#000 30%,#000 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.45) 12%,#000 30%,#000 100%)}.sgq-hero-image img{width:100%;height:100%;object-fit:cover;object-position:center}
      .sgq-iso{position:absolute;right:24px;top:22px;z-index:1;text-align:center;color:#1c5a93;font-size:11px;font-weight:700;letter-spacing:.08em}.sgq-iso strong{display:block;font-size:17px;letter-spacing:0;margin-top:3px}
      .sgq-actions{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;margin-bottom:14px}.sgq-nav-note{background:#eef5fc;border:1px solid #d4e3f2;border-radius:10px;padding:9px 13px;margin-bottom:14px;color:#58728e;font-size:12px}.sgq-nav-note strong{color:#174b91}.sgq-action{min-height:66px;background:#fff;border:1px solid #d5e1ef;border-radius:10px;padding:10px 13px;text-align:left;cursor:pointer;display:flex;gap:10px;align-items:center;transition:.15s;box-shadow:0 2px 7px rgba(28,62,100,.06)}.sgq-action:hover{border-color:#8eb8e2;transform:translateY(-1px);box-shadow:0 5px 13px rgba(28,62,100,.1)}.sgq-action .ico{font-size:21px;width:28px;text-align:center}.sgq-action .txt strong{display:block;color:#173f6d;font-size:12px;font-weight:400}.sgq-action .txt span{display:block;color:#7890aa;font-size:10px;margin-top:2px}.sgq-action.primary-action{background:linear-gradient(135deg,#f58220,#f36e0a);border-color:#f58220;color:#fff}.sgq-action.primary-action .txt strong,.sgq-action.primary-action .txt span{color:#fff}.sgq-action.primary-action .ico{font-size:24px}
      .sgq-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.sgq-kpi{border:1px solid #d8e4f0;border-radius:11px;padding:10px 12px;min-height:68px;height:68px;background:#fff;position:relative;overflow:hidden;box-shadow:0 2px 8px rgba(30,65,100,.05)}.sgq-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2b79c2}.sgq-kpi.green{background:#f2fbf8}.sgq-kpi.green:before{background:#27a477}.sgq-kpi.amber{background:#fffaf0}.sgq-kpi.amber:before{background:#d79524}.sgq-kpi.red{background:#fff5f5}.sgq-kpi.red:before{background:#dc4b4b}.sgq-kpi .label{font-size:11px;color:#6a8099;font-weight:400;line-height:1.15}.sgq-kpi .value{font-size:25px;color:#17385f;font-weight:700;margin-top:4px}.sgq-kpi .sub{font-size:10.5px;color:#7d91a8;margin-top:3px}
      .sgq-filter{background:#fff;border:1px solid #d9e5f1;border-radius:12px;padding:14px 16px;box-shadow:0 2px 9px rgba(28,62,100,.06);margin-bottom:14px}.sgq-filter-grid{display:grid;grid-template-columns:1fr 1fr 1fr 2.1fr auto;gap:12px;align-items:end}.sgq-filter .field label{font-size:11px;color:#5d7693}.sgq-search-wrap{display:flex;gap:8px}.sgq-search-wrap input{flex:1}.sgq-search-btn{height:36px;padding:0 16px;border:0;border-radius:8px;background:#1659a8;color:#fff;font-weight:400;cursor:pointer}.sgq-clear{margin-top:8px;text-align:right;font-size:11px;color:#1766b3;cursor:pointer}
      .sgq-documents{background:#fff;border:1px solid #d9e5f1;border-radius:12px;box-shadow:0 2px 9px rgba(28,62,100,.06);overflow:hidden}.sgq-documents-head{padding:16px 18px;border-bottom:1px solid #e1e9f2;display:flex;justify-content:space-between;align-items:center}.sgq-documents-head h3{margin:0;color:#173f6d;font-size:16px}.sgq-documents-head p{margin:4px 0 0;font-size:11px;color:#7890aa}.sgq-list-empty{text-align:center;padding:54px 20px 60px}.sgq-empty-icon{font-size:45px;opacity:.55;margin-bottom:10px}.sgq-list-empty h3{margin:0;color:#244b73;font-size:17px}.sgq-list-empty p{color:#7a8ea5;font-size:12px;margin:7px 0 17px}.sgq-empty-btn{border:0;border-radius:8px;background:#1659a8;color:#fff;padding:9px 18px;font-weight:400;cursor:pointer}
      
    @media(max-width:1100px){.sgq-doc-title{max-width:66%}.sgq-hero-image{width:36%;opacity:.85}.sgq-actions{grid-template-columns:repeat(3,1fr)}.sgq-filter-grid{grid-template-columns:repeat(2,1fr)}.sgq-search-wrap{grid-column:span 2}.sgq-kpis{grid-template-columns:repeat(2,1fr)}.sgq-iso{display:none}}
      @media(max-width:700px){.sgq-hero{min-height:88px!important;height:88px!important;padding:10px 12px!important}.sgq-doc-title{max-width:100%}.sgq-hero-image{display:none}.sgq-actions{grid-template-columns:1fr}.sgq-filter-grid,.sgq-kpis{grid-template-columns:1fr}.sgq-search-wrap{grid-column:auto}.sgq-doc-title h1{font-size:22px}}

/* V912: Cadastro de Processos — cabeçalhos sem quebrar a seta, status inteiro, ações alinhadas */
.mp711-table th{white-space:nowrap;cursor:pointer}
.mp711-table td:nth-child(6){white-space:nowrap}
.mp711-table td:last-child{white-space:nowrap}
.mp711-table td:last-child button{margin-right:4px}
.mp84-process-card.ativo{border-color:#12315e;box-shadow:0 0 0 2px rgba(18,49,94,.15)}

/* V914: Cadastro de Processos cabe na largura do cartão (sem barra de rolagem lateral) */
.mp-processos-tabela th,.mp-processos-tabela td{padding-left:8px;padding-right:8px}
.mp-processos-tabela td:nth-child(3),.mp-processos-tabela td:nth-child(4){white-space:normal;min-width:70px}
@media (max-width:1100px){.mp-processos-tabela td:nth-child(2) div{max-width:180px}}

/* V915: Gestão de Riscos no padrão do sistema (cabeçalho de página V768, cartões V803, textos legíveis) */
.rgo-page .topbar .rgo-topo-acoes{display:flex;gap:8px;align-items:center;margin-left:auto}
.rgo-page .topbar .rgo-topo-acoes .rgo-btn{font-size:13px;padding:8px 14px;border-radius:8px}
.rgo-page .rgo-card-head{padding:12px 16px}
.rgo-page .rgo-card-head strong{position:relative;padding-left:12px;font-size:15px;font-weight:700;color:#12315e}
.rgo-page .rgo-card-head strong::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:2px;background:#ef7d1a}
.rgo-page .rgo-card-head span{font-size:12px;color:#5b6576}
.rgo-page .rgo-kpi small{font-size:12px}
.rgo-page .rgo-kpi strong{font-size:24px}
.rgo-page .rgo-tab{font-size:13px}
.rgo-page .rgo-table th{font-size:12px}
.rgo-page .rgo-table td{font-size:13px}

/* V916: ações em ícone (o botão pequeno padrão tem largura mínima de 68px e 4 deles estouravam a tabela) */
.mp-processos-tabela button.small.mp-acao-icone{min-width:32px;width:32px;padding:4px 0;font-size:14px;line-height:1}
.mp-processos-tabela td:nth-child(2){max-width:260px}
.mp-processos-tabela td:nth-child(2) strong{white-space:normal}
.mp-processos-tabela td:nth-child(5){white-space:nowrap}
.mp-processos-tabela td:nth-child(2){min-width:220px}

/* V917: editor de fluxograma */
.mp917-node{box-sizing:border-box;padding:10px 12px 30px;background:#eef5fd;border:1.5px solid #7da4cf;border-radius:10px;cursor:grab;user-select:none;touch-action:none;box-shadow:0 2px 6px rgba(18,49,94,.08)}
.mp917-node.arrastando{cursor:grabbing;box-shadow:0 8px 20px rgba(18,49,94,.22);z-index:3}
.mp917-node .mp917-node-topo{display:flex;gap:8px;align-items:flex-start}
.mp917-node .mp917-node-topo span{flex:0 0 22px;height:22px;border-radius:50%;background:#ef7d1a;color:#fff;font-weight:700;font-size:12px;display:flex;align-items:center;justify-content:center}
.mp917-node strong{color:#12315e;font-size:13.5px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mp917-node small{display:block;margin-top:4px;color:#5b6576;font-size:12px}
.mp917-node .mp917-node-acoes{position:absolute;left:8px;right:8px;bottom:5px;display:flex;justify-content:flex-end;gap:3px;opacity:.35;transition:opacity .15s}
.mp917-node:hover .mp917-node-acoes{opacity:1}
.mp917-node .mp917-node-acoes button{min-width:0;width:24px;height:22px;padding:0;border:1px solid #c9d7e8;background:#fff;border-radius:6px;font-size:11px;color:#12315e;cursor:pointer}
.mp917-node .mp917-node-acoes button:disabled{opacity:.35;cursor:default}
.mp84-flow-marco{padding:8px 14px;border-radius:999px;background:#12315e;color:#fff;font-size:12px;font-weight:700;cursor:grab;user-select:none;touch-action:none}
.mp84-flow-marco.fim{background:#2e8b57}
#mp84-flow-canvas{background-image:linear-gradient(#eef2f7 1px,transparent 1px),linear-gradient(90deg,#eef2f7 1px,transparent 1px);background-size:20px 20px;border:1px dashed #c9d7e8;border-radius:10px}

/* V918: SIPOC específico por atividade no editor de Mapas de Processo */
.mp917-act-row{display:block;border-bottom:1px solid #e4ebf3;background:#fff}
.mp917-act-row:last-child{border-bottom:0}
.mp917-act-row .mp84-act-main{display:grid;grid-template-columns:34px minmax(150px,1.6fr) minmax(120px,1fr) minmax(110px,1fr) minmax(110px,1fr) minmax(110px,1fr) 88px 34px;gap:6px;align-items:center;padding:7px 0}
.mp917-act-row .mp84-act-main input{min-width:0;width:100%;box-sizing:border-box}
.mp917-sipoc-toggle{white-space:nowrap;font-size:10px;padding:5px 7px!important}
.mp917-sipoc-toggle.ativo{background:#eef5fc;border-color:#8eb8e2;color:#123f76}
.mp917-sipoc-toggle span{font-weight:700;color:#ef7d1a}
.mp917-sipoc-panel{margin:0 0 10px 34px;padding:11px 12px 12px;border:1px solid #d5e2ef;border-radius:10px;background:#f8fbff}
.mp917-sipoc-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px}
.mp917-sipoc-title strong{display:block;color:#123f76;font-size:12px}
.mp917-sipoc-title span{display:block;margin-top:2px;color:#71869a;font-size:10px}
.mp917-sipoc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mp917-sipoc-card{border:1px solid #dbe5ef;background:#fff;border-radius:8px;overflow:hidden}
.mp917-sipoc-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;background:#eef5fc;border-bottom:1px solid #dbe5ef}
.mp917-sipoc-card-head strong{font-size:10.5px;color:#244c74}
.mp917-sipoc-card-head .small{font-size:9.5px;padding:4px 7px}
.mp917-sipoc-items{padding:6px}
.mp917-sipoc-item{display:flex;align-items:center;gap:6px;padding:4px 0;border-bottom:1px solid #edf1f5}
.mp917-sipoc-item:last-child{border-bottom:0}
.mp917-sipoc-item [data-sipoc-text]{flex:1;min-width:0;color:#344f69;font-size:10.5px;word-break:break-word}
.mp917-sipoc-item [data-sipoc-input]{flex:1;min-width:0;width:auto;font-size:10.5px;padding:5px 6px}
.mp917-sipoc-item .small{font-size:9px;padding:4px 6px;min-width:48px}
.mp917-sipoc-item.editando{background:#f8fbff}
.mp917-sipoc-items:empty:after{content:"Nenhum item cadastrado.";display:block;padding:5px 2px;color:#8a9bad;font-size:10px}
.mp84-act-head{display:grid;grid-template-columns:34px minmax(150px,1.6fr) minmax(120px,1fr) minmax(110px,1fr) minmax(110px,1fr) minmax(110px,1fr) 88px 34px;gap:6px;align-items:center}
@media(max-width:1050px){
  .mp917-sipoc-grid{grid-template-columns:1fr}
  .mp917-act-row .mp84-act-main,.mp84-act-head{grid-template-columns:34px minmax(150px,1.4fr) minmax(110px,1fr) minmax(100px,1fr) 82px 34px}
  .mp917-act-row .mp84-act-main input[data-act="entrada"],.mp917-act-row .mp84-act-main input[data-act="saida"],.mp917-act-row .mp84-act-main input[data-act="requisito"],.mp84-act-head span:nth-child(4),.mp84-act-head span:nth-child(5),.mp84-act-head span:nth-child(6){display:none}
}
@media(max-width:720px){
  .mp917-act-row .mp84-act-main,.mp84-act-head{grid-template-columns:30px minmax(130px,1fr) 82px 32px}
  .mp917-act-row .mp84-act-main input[data-act="responsavel"],.mp84-act-head span:nth-child(3){display:none}
  .mp917-sipoc-panel{margin-left:0}
}

/* V919: SIPOC centralizado por atividade — remove duplicidade do SIPOC geral e simplifica a tabela */
.mp919-section-note{margin-top:2px;color:#71869a;font-size:11px;font-weight:400}
.mp919-act-row{}
.mp917-act-row .mp84-act-main{grid-template-columns:34px minmax(190px,2fr) minmax(140px,1.2fr) 88px 34px}
.mp84-act-head{grid-template-columns:34px minmax(190px,2fr) minmax(140px,1.2fr) 88px 34px}
@media(max-width:720px){
  .mp917-act-row .mp84-act-main,.mp84-act-head{grid-template-columns:30px minmax(130px,1fr) 82px 32px}
}

/* V920 — vínculo de múltiplos indicadores já cadastrados ao processo */
.mp920-indicadores-field{min-width:0}
.mp920-indicadores-field>label{display:block;margin-bottom:6px}
.mp920-indicadores-help{font-size:10.5px;color:var(--text-muted);margin:0 0 7px}
.mp920-indicadores-list{max-height:180px;overflow:auto;border:1px solid #c9d8e8;border-radius:8px;background:#fff;padding:5px}
.mp920-indicador-option{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;cursor:pointer;font-size:11px;font-weight:500;color:#244c74;margin:0}
.mp920-indicador-option:hover{background:#f3f7fc}
.mp920-indicador-option input{width:auto!important;flex:0 0 auto;margin:0}
.mp920-indicador-option span{min-width:0;word-break:break-word}
.mp920-indicadores-vazio{border:1px dashed #c9d8e8;border-radius:8px;padding:10px;color:#7b8da0;background:#f8fbff;font-size:10.5px;line-height:1.4}
@media(max-width:720px){.mp920-indicadores-list{max-height:150px}}

/* V921 — indicadores ficam diretamente nas Interfaces do processo */
.mp921-indicadores-interface{grid-column:1/-1;margin-top:2px}
.mp921-indicadores-interface .mp920-indicadores-list{max-height:170px}
.mp921-indicadores-interface .mp920-indicadores-help{margin-top:2px}
@media(max-width:720px){.mp921-indicadores-interface{grid-column:auto}}

/* V922 — Indicadores da Qualidade vinculados ao processo */

/* V923 — Indicadores da Qualidade no processo: seleção múltipla, usando o cadastro oficial do SGQ. */
.mp923-interfaces-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.mp923-interfaces-grid>label,.mp923-indicadores-field{min-width:0}
.mp923-indicadores-field{grid-column:1/-1}
.mp923-indicadores-field>label{display:block;margin-bottom:6px}
.mp923-indicadores-picker{position:relative;width:100%}
.mp923-indicadores-trigger{width:100%;min-height:36px;border:1px solid var(--border,#ccd8e8);background:#fff;border-radius:8px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;color:var(--text,#24344d);cursor:pointer}
.mp923-indicadores-trigger:hover{border-color:var(--accent,#f28a18)}
.mp923-indicadores-chevron{font-size:16px;color:var(--text-muted,#68788f);transition:transform .15s ease}
.mp923-indicadores-trigger[aria-expanded="true"] .mp923-indicadores-chevron{transform:rotate(180deg)}
.mp923-indicadores-menu{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 5px);background:#fff;border:1px solid #ccd8e8;border-radius:9px;box-shadow:0 12px 28px rgba(30,55,90,.16);overflow:hidden}
.mp923-indicadores-search{padding:9px;border-bottom:1px solid #e5ebf3;background:#f8fafc}
.mp923-indicadores-search input{width:100%;box-sizing:border-box}
.mp923-indicadores-options{max-height:235px;overflow:auto;padding:6px}
.mp923-indicador-option{display:flex;align-items:flex-start;gap:8px;padding:8px 9px;border-radius:6px;cursor:pointer;font-weight:500!important;margin:0!important}
.mp923-indicador-option:hover{background:#f1f5fa}
.mp923-indicador-option input{width:auto!important;margin-top:2px;flex:0 0 auto}
.mp923-indicador-option span{line-height:1.35}
.mp923-indicador-option small{font-weight:400;color:var(--text-muted,#68788f)}
.mp923-indicadores-menu-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;border-top:1px solid #e5ebf3;background:#f8fafc;font-size:11px;color:var(--text-muted,#68788f)}
.mp923-indicadores-loading{padding:12px;color:var(--text-muted,#68788f);font-size:12px}
@media(max-width:650px){.mp923-interfaces-grid{grid-template-columns:1fr}}

/* V924 — Interfaces: três campos na mesma linha e nomes dos indicadores */
.mp923-interfaces-grid{grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:start}
.mp923-indicadores-field{grid-column:auto;min-width:0}
.mp923-indicadores-field>label{display:block;margin-bottom:6px}
.mp923-indicadores-trigger{min-height:36px;white-space:nowrap;overflow:hidden}
.mp923-indicadores-trigger [data-mp-indicadores-resumo]{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mp923-indicador-option span{display:block;white-space:normal}
@media(max-width:900px){.mp923-interfaces-grid{grid-template-columns:1fr 1fr}.mp923-indicadores-field{grid-column:1/-1}}
@media(max-width:650px){.mp923-interfaces-grid{grid-template-columns:1fr}.mp923-indicadores-field{grid-column:auto}}

/* V925: nomes dos indicadores selecionados permanecem visíveis no campo. */
.mp923-indicadores-trigger{min-height:36px;align-items:flex-start;padding:7px 10px;}
.mp923-indicadores-trigger [data-mp-indicadores-resumo]{flex:1;min-width:0;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35;word-break:break-word;}
.mp923-indicadores-chevron{flex:0 0 auto;margin-top:2px;}

/* V926 — afastamento dos campos da lateral da seção Interfaces */
.mp923-interfaces-grid{
  margin:0 12px 12px;
  box-sizing:border-box;
}
@media(max-width:650px){
  .mp923-interfaces-grid{margin-left:10px;margin-right:10px;}
}

/* ============================================================================================
   V927: editor do Mapa de Processo no padrão do sistema (cartão V803, campos, tabela V804).
   Bloco final e escopado em .mp84-wrap para prevalecer sobre os ajustes anteriores (V84…V926).
   ============================================================================================ */
.mp84-wrap .mp84-section{background:#fff;border:1px solid #dce3ec;border-radius:12px;padding:0 0 16px;margin-bottom:14px;box-shadow:0 2px 8px rgba(18,49,94,.04);overflow:visible}
.mp84-wrap .mp84-section-title,
.mp84-wrap .mp84-section-title-row .mp84-section-title{position:relative;background:transparent;border:0;padding:16px 16px 0 30px;margin:0 0 12px;color:#12315e;font-size:15px;font-weight:700}
.mp84-wrap .mp84-section-title::before{content:"";position:absolute;left:16px;top:18px;bottom:2px;width:4px;border-radius:2px;background:#ef7d1a}
.mp84-wrap .mp84-section-title-row{background:transparent;border:0;padding:0 16px 0 0;align-items:flex-start}
.mp84-wrap .mp84-section-title-row .mp84-section-title{margin-bottom:2px}
.mp84-wrap .mp84-section-title-row>button,.mp84-wrap .mp84-section-title-row>div:last-child{margin-top:14px}
.mp84-wrap .mp919-section-note,.mp84-wrap .mp84-flow-note{display:block;padding:0 16px 0 30px;margin-bottom:10px;font-size:12px;color:#5b6576;border:0}
/* campos */
.mp84-wrap .mp84-grid,.mp84-wrap .mp923-interfaces-grid,.mp84-wrap .mp84-lists-grid{padding:0 16px;gap:12px 14px}
.mp84-wrap .mp923-interfaces-grid{display:grid;grid-template-columns:1fr 1fr 1.4fr;align-items:start}
.mp84-wrap .mp84-section label,.mp84-wrap .mp923-indicadores-field>label{display:flex;flex-direction:column;gap:5px;margin:0;font-size:12.5px;font-weight:600;color:#5b6576}
.mp84-wrap .mp84-section label>input,.mp84-wrap .mp84-section label>select,.mp84-wrap .mp84-section label>textarea{width:100%;box-sizing:border-box;min-height:38px;font-size:13.5px;font-weight:400;color:#1b2433}
.mp84-wrap .mp923-indicadores-field{display:flex;flex-direction:column;gap:5px;min-width:0}
/* atividades principais: cabeçalho e linhas como a tabela padrão */
.mp84-wrap #mp-activities{padding:0 16px}
.mp84-wrap .mp84-act-head{display:grid;grid-template-columns:36px minmax(180px,1.7fr) minmax(130px,1fr) 118px 36px;gap:10px;margin:0 16px;padding:9px 12px;background:#f2f6fb;border:1px solid #e3eaf3;border-radius:8px 8px 0 0;color:#12315e;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}
.mp84-wrap .mp84-act-row{display:block;padding:0;border:1px solid #e3eaf3;border-top:0}
.mp84-wrap #mp-activities .mp84-act-row:last-child{border-radius:0 0 8px 8px}
.mp84-wrap .mp84-act-main{display:grid;grid-template-columns:36px minmax(180px,1.7fr) minmax(130px,1fr) 118px 36px;gap:10px;align-items:center;padding:8px 12px}
.mp84-wrap .mp84-act-row:nth-child(even) .mp84-act-main{background:#fafcfe}
.mp84-wrap .mp84-act-num{font-weight:700;color:#ef7d1a;text-align:center;font-size:14px}
.mp84-wrap .mp84-act-main input{display:block;min-height:36px;font-size:13.5px;padding:7px 10px}
.mp84-wrap .mp84-act-main .mp917-sipoc-toggle{min-width:0;width:100%;justify-content:center}
.mp84-wrap .mp84-act-main [data-mp-remove-act]{min-width:0;width:32px;height:32px;padding:0;font-size:14px;line-height:1;justify-self:center}
@media (max-width:900px){
  .mp84-wrap .mp923-interfaces-grid{grid-template-columns:1fr}
  .mp84-wrap .mp84-act-head{display:none}
  .mp84-wrap .mp84-act-main{grid-template-columns:28px 1fr 1fr;grid-auto-rows:auto}
}

/* V928: SIPOC da atividade no padrão do sistema (cartões V803, lista com ações em ícone, textos legíveis) */
.mp84-wrap .mp917-sipoc-panel{margin:4px 0 10px;padding:14px 16px 16px;border:1px solid #dce3ec;border-radius:12px;background:#f7f9fc}
.mp84-wrap .mp917-sipoc-title{margin-bottom:12px}
.mp84-wrap .mp917-sipoc-title strong{position:relative;padding-left:12px;color:#12315e;font-size:14px;font-weight:700}
.mp84-wrap .mp917-sipoc-title strong::before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:4px;border-radius:2px;background:#ef7d1a}
.mp84-wrap .mp917-sipoc-title span{margin-top:4px;padding-left:12px;color:#5b6576;font-size:12px}
.mp84-wrap .mp917-sipoc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mp84-wrap .mp917-sipoc-card{border:1px solid #dce3ec;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 1px 3px rgba(18,49,94,.04)}
.mp84-wrap .mp917-sipoc-card-head{padding:10px 12px;background:#fff;border-bottom:1px solid #edf1f5}
.mp84-wrap .mp917-sipoc-card-head strong{font-size:13px;font-weight:700;color:#12315e}
.mp84-wrap .mp917-sipoc-card-head .small{font-size:12px;padding:4px 10px;min-width:0}
.mp84-wrap .mp917-sipoc-items{padding:4px 12px 8px}
.mp84-wrap .mp917-sipoc-item{gap:6px;padding:7px 0;border-bottom:1px solid #f0f3f7}
.mp84-wrap .mp917-sipoc-item [data-sipoc-text]{font-size:13px;color:#1b2433}
.mp84-wrap .mp917-sipoc-item [data-sipoc-input]{font-size:13px;padding:6px 8px;min-height:32px}
.mp84-wrap .mp917-sipoc-item .small.mp928-ico{min-width:0;width:28px;height:28px;padding:0;font-size:13px;line-height:1;flex:0 0 28px}
.mp84-wrap .mp917-sipoc-item .small.mp928-ok{background:#e3f4ea;border-color:#9fd3b4;color:#1e6b40}
.mp84-wrap .mp917-sipoc-item.editando{background:transparent}
.mp84-wrap .mp917-sipoc-items:empty:after{padding:8px 0;color:#8792a2;font-size:12px}
.mp84-wrap .mp917-sipoc-toggle{font-size:12px}
@media (max-width:900px){.mp84-wrap .mp917-sipoc-grid{grid-template-columns:1fr}}

/* V929: riscos do mapa ligados à Gestão de Riscos */
.mp929-chip{display:inline-block;margin-right:6px;padding:1px 8px;border-radius:999px;font-size:11.5px;font-weight:700;white-space:nowrap;background:#eef1f5;color:#4f5b6d}
.mp929-chip.cod{background:#e7f1fd;color:#1766b3}
.mp929-chip.novo{background:#fff4cc;color:#6e4a00}
.mp929-chip.aguardando{background:#fff4cc;color:#6e4a00}
.mp929-chip.nivel-critico{background:#fbe3e1;color:#9f2a20}.mp929-chip.nivel-alto{background:#fde8d7;color:#9a4a10}
.mp929-chip.nivel-medio{background:#fff4cc;color:#6e4a00}.mp929-chip.nivel-baixo,.mp929-chip.nivel-nulo{background:#e3f4ea;color:#1e6b40}
.mp84-wrap .mp929-risco [data-sipoc-text]{flex:1}
.mp84-wrap .mp929-tipo{width:auto;min-height:32px;font-size:12.5px;padding:4px 6px}
.mp84-wrap .mp929-acoes-card{display:flex;gap:6px}
.mp84-wrap .mp929-nota{margin:0 12px 8px;font-size:11.5px;color:#5b6576}
.mp84-wrap .mp929-vincular{margin:0 12px 10px}
.mp84-wrap .mp929-alerta{margin:0 16px 10px;padding:8px 12px;border-radius:8px;background:#fff4cc;color:#6e4a00;font-size:13px}

/* V932: opções do seletor de Indicadores da Qualidade em linha (o rótulo padrão do editor, em coluna, as desproporcionava) */
.mp84-wrap .mp923-indicadores-options .mp923-indicador-option{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;padding:8px 12px;font-size:13px;font-weight:400;color:#1b2433;border-radius:8px;cursor:pointer;min-height:0}
.mp84-wrap .mp923-indicadores-options .mp923-indicador-option:hover{background:#f2f6fb}
.mp84-wrap .mp923-indicadores-options .mp923-indicador-option>input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;accent-color:#1766b3}
.mp84-wrap .mp923-indicadores-options .mp923-indicador-option small{color:#5b6576;font-size:12px}
.mp84-wrap .mp923-indicadores-search input{min-height:36px;font-size:13px}

/* V933: botão Fechar do SIPOC */
.mp84-wrap .mp917-sipoc-title{align-items:flex-start}
.mp84-wrap .mp917-sipoc-title .mp933-fechar{flex:0 0 auto;min-width:0;padding:4px 12px;font-size:12px}

/* V934: itens do SIPOC em evidência — fundo colorido por grupo */
.mp84-wrap .mp917-sipoc-items{padding:8px 12px 10px;display:flex;flex-direction:column;gap:6px}
.mp84-wrap .mp917-sipoc-item{padding:7px 8px 7px 12px;border:1px solid #cfe0f3;border-left:4px solid #1766b3;border-radius:8px;background:#eef5fd}
.mp84-wrap .mp917-sipoc-item:last-child{border-bottom:1px solid #cfe0f3}
.mp84-wrap .mp917-sipoc-item [data-sipoc-text]{font-weight:600;color:#12315e}
.mp84-wrap .mp917-sipoc-item .small.mp928-ico{background:#fff}
.mp84-wrap .mp917-sipoc-item.editando{background:#fff;border-color:#ef7d1a;border-left-color:#ef7d1a}
/* cores por grupo */
.mp84-wrap [data-sipoc-list="equipamentos_recursos"] .mp917-sipoc-item{background:#eef2f7;border-color:#d3dce8;border-left-color:#5b6b82}
.mp84-wrap [data-sipoc-list="entradas"] .mp917-sipoc-item{background:#e7f1fd;border-color:#c5dcf5;border-left-color:#1766b3}
.mp84-wrap [data-sipoc-list="saidas"] .mp917-sipoc-item{background:#e3f4ea;border-color:#bfe3cd;border-left-color:#2e8b57}
.mp84-wrap [data-sipoc-list="requisitos_saida"] .mp917-sipoc-item{background:#fff4dc;border-color:#f1d98a;border-left-color:#d99a16}
.mp84-wrap [data-sipoc-list="conhecimentos"] .mp917-sipoc-item{background:#f1ecfb;border-color:#d9cdf2;border-left-color:#7a55c7}
.mp84-wrap [data-sipoc-list="documentos"] .mp917-sipoc-item{background:#e5f6f6;border-color:#bfe5e5;border-left-color:#178a8a}
.mp84-wrap [data-sipoc-list="riscos_oportunidades"] .mp917-sipoc-item{background:#fdeee3;border-color:#f6d1b5;border-left-color:#ef7d1a}
.mp84-wrap [data-sipoc-list] .mp917-sipoc-item.editando{background:#fff}

/* V936 (trazido do editor de decisões): V918: decisão (losango), nota, ícone da etapa, origem da ligação */
.mp918-decisao{cursor:grab;user-select:none;touch-action:none}
.mp918-decisao svg{position:absolute;inset:0}
.mp918-decisao span{position:absolute;inset:18px 26px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12.5px;font-weight:700;color:#8a3b00;line-height:1.2;overflow:hidden}
.mp918-nota{max-width:220px;padding:8px 26px 8px 10px;background:#fffbe6;border:1px solid #f1d98a;border-radius:6px;font-size:12px;color:#5c4400;cursor:grab;user-select:none;touch-action:none;box-shadow:0 2px 5px rgba(0,0,0,.06)}
.mp918-decisao .mp918-x,.mp918-nota .mp918-x{position:absolute;top:2px;right:2px;min-width:0;width:20px;height:20px;padding:0;border:1px solid #e2c48a;background:#fff;border-radius:5px;font-size:10px;cursor:pointer;opacity:.4}
.mp918-decisao:hover .mp918-x,.mp918-nota:hover .mp918-x{opacity:1}
.mp918-icone{font-style:normal}
.mp918-origem{outline:3px solid #ef7d1a;outline-offset:3px}

/* V936: barra de zoom do fluxograma */
.mp936-zoom-barra{display:flex;gap:4px;justify-content:flex-end;align-items:center;margin:8px 16px 0}
.mp936-zoom-barra .small{min-width:0;padding:4px 10px;font-size:12.5px}
.mp936-zoom-barra [data-zoom="100"]{min-width:58px;font-weight:700}
.mp936-escala{position:relative}

/* V937: área do fluxograma com tamanho fixo; a grade preenche tudo em qualquer zoom */
.mp936-area{position:relative;overflow:auto;margin:8px 16px 16px;height:clamp(380px,62vh,760px);border:1px solid #dce3ec;border-radius:10px;background:#fff;
  background-image:linear-gradient(#eef2f7 1px,transparent 1px),linear-gradient(90deg,#eef2f7 1px,transparent 1px);background-size:20px 20px}
.mp936-area #mp84-flow-canvas{background:none;border:0;border-radius:0}
.mp936-escala{position:relative;overflow:hidden}


/* V1059 — Plano de Controle: modal compacto, com rolagem apenas no conteúdo. */
#pcu-item-modal.pcu-modal-backdrop{padding:14px;align-items:center;overflow:hidden}
#pcu-item-modal .pcu-modal{display:flex;flex-direction:column;width:min(900px,94vw);max-height:calc(100dvh - 28px);overflow:hidden;border-radius:13px}
#pcu-item-modal .pcu-modal-head{flex:0 0 auto;align-items:center;padding:10px 15px;gap:12px}
#pcu-item-modal .pcu-modal-head h3{font-size:16px;line-height:1.25}
#pcu-item-modal .pcu-modal-head p{font-size:10.5px;margin-top:3px}
#pcu-item-modal .pcu-modal-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 15px;scrollbar-width:thin;scrollbar-color:#b8c9dc transparent}
#pcu-item-modal .pcu-modal-body::-webkit-scrollbar{width:7px}
#pcu-item-modal .pcu-modal-body::-webkit-scrollbar-track{background:transparent}
#pcu-item-modal .pcu-modal-body::-webkit-scrollbar-thumb{background:#c3d1e0;border-radius:8px;border:2px solid #fff}
#pcu-item-modal .pcu-form-section-title{margin:1px 0 7px;padding-left:8px;font-size:11.5px;line-height:1.25}
#pcu-item-modal .pcu-form-section-title:not(:first-child){margin-top:8px}
#pcu-item-modal .pcu-modal-grid2,#pcu-item-modal .pcu-modal-grid3{gap:9px 10px;margin-bottom:8px}
#pcu-item-modal .pcu-modal-body .field label{font-size:10.5px;margin-bottom:4px;line-height:1.25}
#pcu-item-modal .pcu-modal-body .field input,#pcu-item-modal .pcu-modal-body .field select,#pcu-item-modal .pcu-modal-body .field textarea{min-height:33px;height:33px;padding:6px 9px;font:inherit;font-size:12px;border-radius:7px}
#pcu-item-modal .pcu-monitored-field{padding:8px 9px;border-radius:8px}
#pcu-item-modal .pcu-monitored-field .pcu-meta{font-size:9.5px;line-height:1.35;margin-top:4px}
#pcu-item-modal .pcu-modal-foot{flex:0 0 auto;padding:9px 15px;gap:7px}
#pcu-item-modal .pcu-modal-foot button{min-height:32px;padding:6px 12px;font-size:11px}
#pcu-item-modal .pcu-close{min-width:32px;width:32px;height:30px;font-size:17px}
@media(max-width:760px){#pcu-item-modal.pcu-modal-backdrop{padding:8px}#pcu-item-modal .pcu-modal{width:100%;max-height:calc(100dvh - 16px)}#pcu-item-modal .pcu-modal-grid2,#pcu-item-modal .pcu-modal-grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}#pcu-item-modal .pcu-modal-body{padding:10px 12px}}
@media(max-width:480px){#pcu-item-modal .pcu-modal-grid2,#pcu-item-modal .pcu-modal-grid3{grid-template-columns:minmax(0,1fr)}#pcu-item-modal .pcu-modal-head,#pcu-item-modal .pcu-modal-foot{padding-left:12px;padding-right:12px}}


/* V1060 — Plano de Controle: cards de contexto no padrão visual Henkaten. */
.pcu-overview{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}
.pcu-info{--pcu-card-accent:#2875c7;position:relative;isolation:isolate;min-width:0;min-height:84px;display:flex;flex-direction:column;justify-content:center;gap:0;padding:12px 48px 12px 14px;border:1px solid #d4e1ef;border-left:4px solid var(--pcu-card-accent);border-radius:12px;background:#f2f7fd;box-shadow:0 2px 7px rgba(26,65,105,.04);transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.pcu-info:hover{border-color:#b7cde3;box-shadow:0 4px 12px rgba(26,65,105,.08);transform:translateY(-1px)}
.pcu-info:after{content:"";position:absolute;right:13px;top:50%;width:27px;height:27px;transform:translateY(-50%);border:5px solid var(--pcu-card-accent);border-radius:50%;box-sizing:border-box;opacity:.95;pointer-events:none}
.pcu-info:nth-child(1){--pcu-card-accent:#2875c7;background:#f1f6fd}
.pcu-info:nth-child(2){--pcu-card-accent:#26966b;background:#f1faf6}
.pcu-info:nth-child(3){--pcu-card-accent:#d58a1d;background:#fff9ef}
.pcu-info:nth-child(4){--pcu-card-accent:#7855c7;background:#f7f4fd}
.pcu-info label{display:block;margin:0 0 5px;color:#526d89;font-size:10.5px;font-weight:600;line-height:1.25}
.pcu-info strong{display:block;min-width:0;color:#173f70;font-size:13px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.pcu-info .pcu-meta{margin-top:3px;color:#72869c;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:950px){.pcu-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.pcu-overview{grid-template-columns:minmax(0,1fr);gap:8px}.pcu-info{min-height:76px;padding:11px 48px 11px 13px}.pcu-info:after{right:12px;width:24px;height:24px;border-width:4px}}


/* V1095 — oculta a barra visual do formulário Novo Item de Controle,
   mantendo a rolagem por roda, touchpad e teclado. */
#pcu-item-modal .pcu-modal-body{
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
}
#pcu-item-modal .pcu-modal-body::-webkit-scrollbar{
  display:none !important;
  width:0 !important;
  height:0 !important;
}


/* V1097 — Cadastro de item FMEA reorganizado em cinco blocos funcionais; paleta institucional */
.fmea-line-editor{margin:8px 0!important;padding:0!important;background:#fff!important;border:1px solid #cbdced!important;border-radius:14px!important;overflow:hidden;box-shadow:0 6px 22px rgba(23,61,101,.08)}
.fmea-line-editor-head{display:flex;align-items:center;gap:12px;padding:16px 20px;background:linear-gradient(110deg,#f4f9ff,#eaf3fc);border-bottom:1px solid #d5e4f3;border-left:5px solid #f58220}
.fmea-line-editor-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;border-radius:10px;background:#e1efff;color:#1766b3;font-size:22px;border:1px solid #c7def7}
.fmea-line-editor-head h3{margin:0;color:#123f76;font-size:20px;line-height:1.2;font-weight:800;text-transform:uppercase}
.fmea-line-editor-head p{margin:4px 0 0;color:#647d99;font-size:12px}
.fmea-line-section{margin:12px 14px;padding:12px 14px 14px;background:#fff;border:1px solid #d7e5f3;border-radius:12px;box-shadow:0 2px 6px rgba(28,62,100,.025)}
.fmea-line-section-title{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.fmea-line-section-title>div{min-width:0}.fmea-line-section-title strong{display:block;color:#173f6d;font-size:14px;font-weight:800}.fmea-line-section-title small{display:block;color:#6e839b;font-size:11px;margin-top:3px}
.fmea-line-step{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#2878d4;color:#fff;font-size:15px;font-weight:800}
.fmea-line-step.orange{background:#f58220}.fmea-line-step.green{background:#229c70}.fmea-line-step.purple{background:#8138c9}.fmea-line-step.red{background:#e84b3c}
.fmea-line-grid{gap:12px;margin:0!important;align-items:start}
.fmea-line-editor .field{min-width:0;margin-bottom:0!important}.fmea-line-editor .field label{display:block;color:#4f6884;font-size:11px;font-weight:750;margin-bottom:5px}.fmea-line-editor .field input:not([type=checkbox]),.fmea-line-editor .field select,.fmea-line-editor .field textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #c6d8eb;border-radius:7px;background:#fff;color:#183a60;padding:9px 10px;font-size:12px;outline:none;transition:border-color .15s,box-shadow .15s}.fmea-line-editor .field input:focus,.fmea-line-editor .field select:focus,.fmea-line-editor .field textarea:focus{border-color:#438bd3;box-shadow:0 0 0 3px rgba(45,124,202,.12)}.fmea-line-editor .field textarea{min-height:58px;resize:vertical;line-height:1.4}.fmea-line-editor .field small{display:block;color:#778ba2;font-size:10px;line-height:1.4;margin-top:5px}.fmea-line-editor .fmea-field-help{font-size:10px;color:#6b829b}
.fmea-risk-grid{grid-template-columns:repeat(4,minmax(0,1fr)) 110px!important;align-items:stretch}.fmea-npr-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:78px;padding:8px;background:#fff0e2;border:1px solid #ffd8b5;border-radius:9px;color:#a94708}.fmea-npr-preview span{font-size:10px;font-weight:800;text-transform:uppercase}.fmea-npr-preview strong{font-size:28px;line-height:1.05;color:#c94c0b}.fmea-npr-preview small{font-size:10px;color:#8f6a50}.fmea-special-field{align-self:center;padding:10px 12px;background:#f7faff;border:1px solid #d8e5f2;border-radius:8px}.fmea-line-editor .fmea-special-field label{display:flex;align-items:center;gap:8px;margin:0;color:#234b78}.fmea-line-editor .fmea-special-field input[type=checkbox]{width:16px;height:16px;accent-color:#f58220}.fmea-line-editor-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;background:#fbfdff;border-top:1px solid #d8e5f2;z-index:2}.fmea-line-editor-actions button.primary{background:#f58220!important;border-color:#f58220!important;color:#fff!important}.fmea-line-editor-actions .fmea-line-cancel{background:#fff!important;border:1px solid #c6d5e5!important;color:#355574!important}
@media(max-width:1000px){.fmea-line-editor-head{padding:13px 15px}.fmea-line-section{margin:10px;padding:11px}.fmea-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fmea-npr-preview{min-height:65px}}
@media(max-width:650px){.fmea-line-section{margin:8px;padding:10px}.fmea-line-grid,.fmea-line-grid.grid-2,.fmea-line-grid.grid-3,.fmea-line-grid.grid-4{grid-template-columns:1fr!important}.fmea-risk-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fmea-line-editor-head h3{font-size:16px}.fmea-line-section-title strong{font-size:13px}.fmea-line-editor-actions{padding:10px;flex-wrap:wrap}.fmea-line-editor-actions button{flex:1}}


/* V1108 — Itens de Controle: tabela equilibrada, cabeçalhos quebráveis e ações compactas.
   Em desktop, as nove colunas ocupam 100% da área disponível; em telas menores,
   a rolagem horizontal é mantida intencionalmente para preservar a leitura. */
.pcu-section .pcu-table-wrap{
  width:100%;max-width:100%;overflow-x:hidden;overflow-y:visible;
  border-radius:0 0 13px 13px;
}
.pcu-section .pcu-table{
  width:100%;min-width:0;max-width:100%;table-layout:fixed;border-collapse:separate;
  border-spacing:0;
}
.pcu-section .pcu-table th{
  box-sizing:border-box;padding:10px 7px;white-space:normal;overflow-wrap:normal;
  word-break:keep-all;hyphens:none;line-height:1.25;vertical-align:middle;font-size:10px;letter-spacing:.01em;
}
.pcu-section .pcu-table td{
  box-sizing:border-box;padding:11px 7px;vertical-align:middle;line-height:1.35;
  overflow-wrap:anywhere;word-break:normal;font-size:11px;
}
.pcu-section .pcu-table th:nth-child(1),.pcu-section .pcu-table td:nth-child(1){width:9%}
.pcu-section .pcu-table th:nth-child(2),.pcu-section .pcu-table td:nth-child(2){width:16%}
.pcu-section .pcu-table th:nth-child(3),.pcu-section .pcu-table td:nth-child(3){width:12%}
.pcu-section .pcu-table th:nth-child(4),.pcu-section .pcu-table td:nth-child(4){width:7%}
.pcu-section .pcu-table th:nth-child(5),.pcu-section .pcu-table td:nth-child(5){width:10%}
.pcu-section .pcu-table th:nth-child(6),.pcu-section .pcu-table td:nth-child(6){width:13%}
.pcu-section .pcu-table th:nth-child(7),.pcu-section .pcu-table td:nth-child(7){width:10%}
.pcu-section .pcu-table th:nth-child(8),.pcu-section .pcu-table td:nth-child(8){width:12%}
.pcu-section .pcu-table th:nth-child(9),.pcu-section .pcu-table td:nth-child(9){width:11%}
.pcu-section .pcu-table tbody tr:nth-child(even){background:#f8fbff}
.pcu-section .pcu-table tbody tr:hover{background:#f0f7ff}
.pcu-section .pcu-table td:nth-child(1){font-family:var(--font-mono,monospace);font-size:10.5px;color:#315779}
.pcu-section .pcu-table td:nth-child(2) .pcu-parameter{display:block;font-size:11.5px;line-height:1.35;overflow-wrap:anywhere}
.pcu-section .pcu-table .pcu-badge{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.pcu-section .pcu-table td:nth-child(7),.pcu-section .pcu-table td:nth-child(8),.pcu-section .pcu-table td:nth-child(9){vertical-align:middle}
.pcu-section .pcu-actions-cell{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:nowrap;min-width:0}
.pcu-section .pcu-actions-cell .pcu-icon-action{
  flex:0 0 31px;display:inline-flex;align-items:center;justify-content:center;
  width:31px;min-width:31px;height:31px;min-height:31px;padding:0!important;
  border-radius:8px!important;box-sizing:border-box;cursor:pointer;line-height:1;
  box-shadow:none!important;transition:background .15s,border-color .15s,transform .15s;
}
.pcu-section .pcu-icon-action svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pcu-section .pcu-icon-edit{background:#f5f9ff!important;border:1px solid #9fc4ed!important;color:#1766b3!important}
.pcu-section .pcu-icon-edit:hover{background:#e7f1ff!important;border-color:#6fa5e4!important}
.pcu-section .pcu-icon-delete{background:#fff8f7!important;border:1px solid #efb7b3!important;color:#ba4540!important}
.pcu-section .pcu-icon-delete:hover{background:#fdebea!important;border-color:#e58b85!important}
.pcu-section .pcu-section-head{flex-wrap:wrap}
.pcu-section .pcu-section-title{font-size:15px;line-height:1.3}
.pcu-section .pcu-section-note{font-size:11px}
@media(max-width:950px){
  .pcu-section .pcu-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
  .pcu-section .pcu-table{min-width:940px;table-layout:fixed}
}
@media(max-width:620px){
  .pcu-section .pcu-section-head{align-items:flex-start;padding:11px 12px}
  .pcu-section .pcu-section-title{font-size:14px}
}

/* V1111 — Modal Editar/Novo Item de Controle alinhado ao mockup 1.
   Agrupa os campos em cartões funcionais, amplia o diálogo no desktop,
   mantém cabeçalho/rodapé fixos e preserva a rolagem do conteúdo. */
#pcu-item-modal.pcu-modal-backdrop{
  padding:8px;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:rgba(16,42,70,.42);
}
#pcu-item-modal .pcu-modal{
  display:flex;
  flex-direction:column;
  width:min(1500px,98vw);
  max-width:1500px;
  max-height:calc(100dvh - 16px);
  overflow:hidden;
  border:1px solid #cbdff3;
  border-radius:13px;
  background:#fff;
  box-shadow:0 20px 58px rgba(16,49,83,.24);
}
#pcu-item-modal .pcu-modal-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:16px;
  min-height:78px;
  padding:12px 22px;
  border-left:5px solid #f58220;
  border-bottom:1px solid #d7e6f5;
  background:linear-gradient(115deg,#f3f8fe 0%,#eaf3fc 100%);
}
#pcu-item-modal .pcu-modal-head-main{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1 1 auto;
  min-width:0;
}
#pcu-item-modal .pcu-modal-header-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  border:1px solid #c4dcf7;
  border-radius:10px;
  background:#e3f0ff;
  color:#1766b3;
}
#pcu-item-modal .pcu-modal-header-icon svg{
  width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
#pcu-item-modal .pcu-modal-head-copy{min-width:0;flex:1 1 auto}
#pcu-item-modal .pcu-modal-head-title-row{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;
}
#pcu-item-modal .pcu-modal-head h3{
  margin:0;color:#123f76;font-size:20px;line-height:1.18;font-weight:850;
  letter-spacing:.015em;text-transform:uppercase;
}
#pcu-item-modal .pcu-modal-head p{
  margin:5px 0 0;color:#617b98;font-size:12px;line-height:1.35;
}
#pcu-item-modal .pcu-modal-code{
  display:inline-flex;align-items:center;max-width:100%;padding:5px 11px;
  border:1px solid #cbdff4;border-radius:999px;background:#e0edf9;
  color:#28557e;font-size:11px;font-weight:800;overflow-wrap:anywhere;
}
#pcu-item-modal .pcu-close{
  flex:0 0 36px;width:36px;height:36px;min-width:36px;border:1px solid #c6d9ec;
  border-radius:9px;background:#fff;color:#25486d;font-size:21px;line-height:1;
}
#pcu-item-modal .pcu-close:hover{border-color:#7ba9d8;background:#f5faff;color:#0e5ca7}
#pcu-item-modal .pcu-modal-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  display:flex;flex-direction:column;gap:12px;padding:16px 22px;
  scrollbar-width:none!important;-ms-overflow-style:none!important;
}
#pcu-item-modal .pcu-modal-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#pcu-item-modal .pcu-form-card{
  min-width:0;margin:0;padding:14px 16px 15px;border:1px solid #d4e4f4;
  border-radius:11px;background:linear-gradient(120deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 2px 7px rgba(28,68,108,.035);
}
#pcu-item-modal .pcu-form-section-title{
  display:flex;align-items:center;gap:9px;margin:0 0 13px;padding:0 0 0 11px;
  min-height:23px;border-left:4px solid #f58220;color:#123f76;
  font-size:15px;line-height:1.25;font-weight:850;
}
#pcu-item-modal .pcu-modal-grid2,
#pcu-item-modal .pcu-modal-grid3{
  gap:12px 14px;margin:0;align-items:start;
}
#pcu-item-modal .pcu-grid-identificacao{
  grid-template-columns:minmax(0,1.15fr) minmax(0,.9fr) minmax(280px,1.15fr);
}
#pcu-item-modal .pcu-modal-body .field{min-width:0;margin:0}
#pcu-item-modal .pcu-modal-body .field label{
  display:block;margin:0 0 6px;color:#315779;font-size:12px;line-height:1.3;font-weight:750;
}
#pcu-item-modal .pcu-modal-body .field input:not([type=checkbox]),
#pcu-item-modal .pcu-modal-body .field select,
#pcu-item-modal .pcu-modal-body .field textarea{
  display:block;width:100%;min-width:0;min-height:39px;height:39px;box-sizing:border-box;
  padding:8px 11px;border:1px solid #c5d9ee;border-radius:8px;background:#fff;
  color:#183a60;font-family:inherit;font-size:13px;line-height:1.35;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
#pcu-item-modal .pcu-modal-body .field textarea{height:auto;min-height:64px;resize:vertical}
#pcu-item-modal .pcu-modal-body .field input:focus,
#pcu-item-modal .pcu-modal-body .field select:focus,
#pcu-item-modal .pcu-modal-body .field textarea:focus{
  outline:none;border-color:#438bd3;box-shadow:0 0 0 3px rgba(45,124,202,.12);
}
#pcu-item-modal .pcu-monitored-field{
  align-self:stretch;min-width:0;padding:12px 13px;border:1px solid #c8def6;
  border-radius:10px;background:#eff6fe;
}
#pcu-item-modal .pcu-monitored-field label{color:#1c568f;font-size:12px}
#pcu-item-modal .pcu-monitored-field select{border-color:#a9c8e8!important;background:#fff}
#pcu-item-modal .pcu-modal-body .pcu-meta{
  margin-top:6px;color:#7088a1;font-size:10.5px;line-height:1.42;overflow-wrap:anywhere;
}
#pcu-item-modal .pcu-monitored-field .pcu-meta{font-size:10.5px}
#pcu-item-modal .pcu-final-links{margin-bottom:0}
#pcu-item-modal .pcu-modal-foot{
  position:relative;z-index:2;flex:0 0 auto;display:flex;justify-content:flex-end;
  gap:9px;padding:12px 22px;border-top:1px solid #d5e4f2;background:#fff;
}
#pcu-item-modal .pcu-modal-foot button{
  min-height:39px;padding:8px 17px;border-radius:8px;font-size:12px;font-weight:700;
}
#pcu-item-modal .pcu-modal-foot button[data-action="pcu-salvar-item"]{
  border:1px solid #f58220!important;background:#f58220!important;color:#fff!important;
  box-shadow:0 2px 5px rgba(216,103,16,.12);
}
#pcu-item-modal .pcu-modal-foot button[data-action="pcu-salvar-item"]:hover{background:#e87312!important;border-color:#e87312!important}
#pcu-item-modal .pcu-modal-foot button[data-action="pcu-cancelar"]{
  border:1px solid #c8d9eb!important;background:#fff!important;color:#315779!important;
}
#pcu-item-modal .pcu-modal-foot button[data-action="pcu-cancelar"]:hover{background:#f4f8fd!important}
@media(max-width:1100px){
  #pcu-item-modal .pcu-modal{width:98vw}
  #pcu-item-modal .pcu-grid-identificacao{grid-template-columns:repeat(2,minmax(0,1fr))}
  #pcu-item-modal .pcu-grid-identificacao .pcu-monitored-field{grid-column:1/-1}
  #pcu-item-modal .pcu-modal-body{padding:13px 15px;gap:10px}
  #pcu-item-modal .pcu-form-card{padding:12px 13px}
}
@media(max-width:760px){
  #pcu-item-modal.pcu-modal-backdrop{padding:7px}
  #pcu-item-modal .pcu-modal{width:100%;max-width:100%;max-height:calc(100dvh - 14px);border-radius:11px}
  #pcu-item-modal .pcu-modal-head{padding:10px 12px;gap:8px;min-height:66px}
  #pcu-item-modal .pcu-modal-head-main{gap:9px}
  #pcu-item-modal .pcu-modal-header-icon{flex-basis:36px;width:36px;height:36px}
  #pcu-item-modal .pcu-modal-header-icon svg{width:21px;height:21px}
  #pcu-item-modal .pcu-modal-head h3{font-size:15px}
  #pcu-item-modal .pcu-modal-head p{font-size:10.5px}
  #pcu-item-modal .pcu-modal-code{font-size:9.5px;padding:4px 8px}
  #pcu-item-modal .pcu-modal-body{padding:10px;gap:9px}
  #pcu-item-modal .pcu-form-card{padding:10px;border-radius:9px}
  #pcu-item-modal .pcu-form-section-title{font-size:13px;margin-bottom:10px}
  #pcu-item-modal .pcu-modal-grid2,#pcu-item-modal .pcu-modal-grid3{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  #pcu-item-modal .pcu-grid-identificacao{grid-template-columns:repeat(2,minmax(0,1fr))}
  #pcu-item-modal .pcu-modal-foot{padding:9px 12px}
}
@media(max-width:480px){
  #pcu-item-modal .pcu-modal-head{padding:9px 10px}
  #pcu-item-modal .pcu-modal-head h3{font-size:13px}
  #pcu-item-modal .pcu-modal-head-title-row{gap:6px}
  #pcu-item-modal .pcu-modal-body{padding:8px}
  #pcu-item-modal .pcu-modal-grid2,#pcu-item-modal .pcu-modal-grid3,
  #pcu-item-modal .pcu-grid-identificacao{grid-template-columns:minmax(0,1fr)}
  #pcu-item-modal .pcu-grid-identificacao .pcu-monitored-field{grid-column:auto}
  #pcu-item-modal .pcu-modal-foot button{flex:1;padding:7px 10px}
}
