/* Controle de qualidade de todos os setores (setores.js), projetos da Gestão (projetos.js) e mapas de calor do painel
   (10/11/2026). Tokens do Nexus nos dois temas. Prefixos st- e pj-. */

/* Setores: cartões da mesma altura, com os números e o rodapé sempre no mesmo lugar */
.st-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: stretch; }
.st-setor { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 14px; padding: 16px; color: var(--nx-ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.st-setor:hover { border-color: var(--nx-teal-500); box-shadow: 0 8px 22px color-mix(in srgb, var(--nx-teal-600) 14%, transparent); transform: translateY(-1px); }
.st-setor > header { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.st-setor__ic, .st-hero__ic { display: grid; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--nx-info-bg); color: var(--nx-teal-600); font-size: 17px; place-items: center; }
.st-setor header b { display: block; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.25; }
.st-setor header small { display: block; overflow: hidden; color: var(--nx-ink-3); font-size: 11.2px; text-overflow: ellipsis; white-space: nowrap; }
.st-setor__n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: start; margin: 0; border: 1px solid var(--nx-line); border-radius: 10px; }
.st-setor__n > div { display: grid; gap: 1px; padding: 8px 4px; text-align: center; }
.st-setor__n > div + div { border-left: 1px solid var(--nx-line); }
.st-setor__n dt { overflow: hidden; color: var(--nx-ink-3); font-size: 9.4px; font-weight: 700; letter-spacing: 0.04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.st-setor__n dd { margin: 0; font-size: 17px; font-variant-numeric: tabular-nums; font-weight: 750; }
.st-setor > footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; align-items: center; justify-items: start; }
.st-setor > footer .mk-selo + .mk-selo { grid-row: 2; grid-column: 1 / -1; }
.st-setor > footer .st-setor__pend { grid-row: 1; grid-column: 2; }
.st-setor__pend { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; color: var(--nx-warn); font-size: 11.6px; font-weight: 700; }

/* Tela do setor */
.st-hero { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; overflow: hidden; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, #0b2230 0%, #0e3d4e 58%, #0f6f7a 130%); color: #fff; }
.st-hero__volta { position: absolute; top: 12px; right: 18px; display: inline-flex; gap: 6px; align-items: center; color: #a9c0c9; font-size: 11.6px; font-weight: 600; text-decoration: none; }
.st-hero__volta:hover { color: #fff; }
.st-hero__ic { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); color: var(--nx-teal-300); font-size: 23px; }
.st-hero__txt { display: grid; gap: 5px; min-width: 0; }
.st-hero__txt > small { color: var(--nx-teal-300); font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.st-hero__txt h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.st-hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-hero__chips span { padding: 3px 11px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 11px; font-weight: 600; }
.st-hero__lado { display: grid; gap: 8px; justify-items: end; padding-top: 14px; }
.st-hero__lado label { display: grid; gap: 3px; color: #a9c0c9; font-size: 10.8px; font-weight: 650; }
.st-hero__lado .nx-select { min-width: 180px; }
.st-cont { padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 14%, transparent); font-size: 10.8px; }
.st-fl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; }
.st-fl > .pi { color: var(--nx-teal-600); font-size: 18px; }
.st-fl div { display: grid; gap: 1px; min-width: 0; }
.st-fl small { color: var(--nx-ink-3); font-size: 10.8px; }
.st-fl div > small { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.st-fl div > b { font-size: 13.6px; }
.st-fl div > span { color: var(--nx-ink-3); font-size: 11.6px; line-height: 1.45; }
.st-fl > span { display: grid; gap: 4px; justify-items: end; }
.st-fl > span > span { display: inline-flex; gap: 6px; }
.st-pr { padding: 0; }
.st-pr > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
.st-pr > summary::-webkit-details-marker { display: none; }
.st-pr > summary code { padding: 3px 8px; border-radius: 6px; background: var(--nx-surface-2); color: var(--nx-teal-600); font-size: 11.4px; font-weight: 700; }
.st-pr > summary b { font-size: 14px; letter-spacing: -0.01em; }
.st-pr__selos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.st-pr__selos small { color: var(--nx-ink-3); font-size: 11.2px; }
.st-pr__seta { color: var(--nx-ink-3); transition: transform 0.15s; }
.st-pr[open] .st-pr__seta { transform: rotate(180deg); }
.st-pr__corpo { display: grid; gap: 6px; padding: 0 16px 16px; border-top: 1px solid var(--nx-line); }
.st-pr__obj { max-width: 96ch; margin: 14px 0 4px; color: var(--nx-ink-2); font-size: 13px; line-height: 1.6; }
.st-pend { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--nx-warn-bg); color: var(--nx-ink); font-size: 12.4px; }
.st-pend > .pi { margin-top: 2px; color: var(--nx-warn); }
.st-pend ul { margin: 4px 0 0; padding-left: 16px; line-height: 1.5; }
.st-kv { gap: 6px 16px; }
.st-kv b { font-weight: 500; line-height: 1.45; }
.st-etapas td { vertical-align: top; font-size: 12.2px; line-height: 1.5; }
.st-etapas td:nth-child(2) { min-width: 170px; }
.st-etapas td:nth-child(2) small { display: block; color: var(--nx-ink-3); font-size: 10.8px; }
.st-etapas td:nth-child(3) { min-width: 240px; color: var(--nx-ink-2); }
.st-etapas td:nth-child(4), .st-etapas td:nth-child(5) { min-width: 190px; }
.st-n { color: var(--nx-ink-3); font-family: var(--nx-mono, ui-monospace, monospace); font-size: 11.4px; white-space: nowrap; }
.st-passos { display: grid; gap: 3px; margin: 0; padding-left: 16px; }
.st-passos em { color: var(--nx-ink-3); font-size: 11px; font-style: normal; }
.st-passos em::before { content: "· "; }
.st-duas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.st-its td { vertical-align: top; line-height: 1.5; }
.st-its td:nth-child(2) { min-width: 200px; }
.st-its td:nth-child(3) { min-width: 280px; color: var(--nx-ink-2); }
.st-its td:nth-child(4) { white-space: nowrap; }

/* Modelo de controle de qualidade */
.st-modelo { display: grid; gap: 4px; padding: 16px 18px; }
.st-modelo__cab { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--nx-line); }
.st-modelo__cab small { color: var(--nx-teal-600); font-size: 10.4px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.st-modelo__cab h2 { margin: 2px 0 4px; font-size: 16px; letter-spacing: -0.01em; }
.st-modelo__cab p { margin: 0; color: var(--nx-ink-3); font-size: 12.2px; }
.st-modelo__sit { display: grid; gap: 6px; justify-items: end; }
.st-modelo__sit small { color: var(--nx-ink-3); font-size: 11.2px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.st-itens { display: grid; margin: 0; padding: 0; list-style: none; }
.st-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 9px 0; border-bottom: var(--mk-borda); }
.st-item--fora { opacity: 0.5; }
.st-item .nx-check { align-items: flex-start; padding: 0; border: 0; }
.st-item__ref { padding-top: 1px; }
.st-item .nx-check span { display: grid; gap: 2px; }
.st-item b { font-size: 12.8px; }
.st-item small { max-width: 92ch; color: var(--nx-ink-3); font-size: 11.6px; line-height: 1.5; }
.st-item__ref { display: inline-flex; gap: 8px; align-items: center; }
.st-item__ref code { color: var(--nx-ink-4); font-size: 10.8px; }

/* Conferências */
.cq-item > .mk-selo { display: inline-flex; flex: none; }
[data-st-corpo-conf] .cq-item .nx-select { flex: none; width: 150px; min-width: 0; }
.st-iso a:not(.st-doc), .cq-kv a, .gq-aviso a, .cq-mu a { color: var(--nx-teal-600); font-weight: 600; text-underline-offset: 2px; }
[data-theme=dark] .st-iso a:not(.st-doc), [data-theme=dark] .cq-kv a, [data-theme=dark] .gq-aviso a, [data-theme=dark] .cq-mu a { color: var(--nx-teal-300); }
.st-confs tbody tr, .st-achados tbody tr { cursor: pointer; }
.st-confs tbody tr:hover, .st-achados tbody tr:hover { background: var(--nx-surface-2); }
.st-confs td:last-child, .st-achados td:last-child { color: var(--nx-ink-4); text-align: right; }
.st-confs td:first-child .mk-selo, .st-achados td:first-child .mk-selo { margin-left: 6px; }
.st-andamento { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 12px 0 2px; color: var(--nx-ink-3); font-size: 11.8px; font-weight: 650; }
.st-form { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1px dashed var(--nx-line-2); border-radius: 12px; background: var(--nx-surface-2); }
.st-form label { display: grid; gap: 5px; color: var(--nx-ink-2); font-size: 12px; font-weight: 700; }
.st-form label small { color: var(--nx-ink-3); font-size: 11.2px; font-weight: 500; line-height: 1.45; }
.st-form .cq-acoes { margin-top: 0; }
.st-previa { display: flex; gap: 8px; align-items: center; margin: 0; padding: 9px 12px; border-radius: 10px; background: var(--nx-info-bg); color: var(--nx-ink-2); font-size: 12.2px; line-height: 1.45; }
.st-previa .pi { color: var(--nx-teal-600); }

/* Achados: matriz severidade × frequência */
.st-matriz { width: calc(100% - 32px); border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.st-matriz th { color: var(--nx-ink-3); font-size: 10.4px; font-weight: 700; }
.st-matriz tbody th { width: 62px; text-align: right; }
.st-sf { height: 40px; border-radius: 8px; font-size: 15px; font-weight: 800; text-align: center; }
.st-sf--ok, i.st-sf--ok { background: color-mix(in srgb, var(--nx-ok) 14%, var(--nx-surface)); }
.st-sf--info, i.st-sf--info { background: color-mix(in srgb, #e0a100 22%, var(--nx-surface)); }
.st-sf--warn, i.st-sf--warn { background: color-mix(in srgb, #e8590c 34%, var(--nx-surface)); }
.st-sf--crit, i.st-sf--crit { background: color-mix(in srgb, var(--nx-crit) 52%, var(--nx-surface)); }
.st-sf--tem { box-shadow: inset 0 0 0 2px var(--nx-ink); }
.st-matriz__leg { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; color: var(--nx-ink-3); font-size: 11.2px; }
.st-matriz__leg span { display: inline-flex; gap: 6px; align-items: center; }
.st-matriz__leg i { width: 14px; height: 14px; border-radius: 4px; }
.st-achados td:nth-child(4) { min-width: 260px; }

/* Requisitos da ISO */
.st-iso td { vertical-align: top; line-height: 1.5; }
.st-iso td:nth-child(2) { min-width: 260px; }
.st-iso td:nth-child(5) { white-space: nowrap; }
.st-iso__cap th { padding: 16px 12px 6px; border-bottom: 2px solid var(--nx-teal-500); background: none; color: var(--nx-ink); font-size: 12.4px; letter-spacing: 0.02em; text-transform: none; }
.st-iso__nota { display: flex; gap: 6px; margin-top: 4px; color: var(--nx-warn); font-size: 11.4px; line-height: 1.45; }
.st-iso__nota .pi { margin-top: 2px; }
.st-doc { display: inline-block; margin: 0 4px 4px 0; padding: 2px 7px; border: 1px solid var(--nx-line); border-radius: 6px; color: var(--nx-ink-2); font-family: var(--nx-mono, ui-monospace, monospace); font-size: 10.8px; text-decoration: none; white-space: nowrap; }
.st-doc:hover { border-color: var(--nx-teal-500); color: var(--nx-teal-600); }

/* Mapa de calor: todas as células do mesmo tamanho; cinco degraus do frio ao quente */
.cq-card--calor .cq-card__cab { flex-wrap: wrap; }
.st-calor { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.st-calor thead th { padding: 0 4px 4px; color: var(--nx-ink-3); font-size: 10.4px; font-weight: 700; line-height: 1.3; text-align: center; vertical-align: bottom; }
.st-calor thead th:first-child, .st-calor tbody th { width: 228px; }
.st-calor tbody th { overflow: hidden; font-size: 12.4px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.st-calor tbody th a, .st-calor tbody th span { display: inline-flex; gap: 8px; align-items: center; color: var(--nx-ink); text-decoration: none; }
.st-calor tbody th a:hover { color: var(--nx-teal-600); }
.st-calor tbody th .pi { width: 16px; color: var(--nx-ink-3); font-size: 12px; text-align: center; }
.st-calor__grupo th { padding-top: 10px; color: var(--nx-ink-3); font-size: 9.8px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.st-calor td { padding: 0; }
.st-calor__c { display: flex; gap: 5px; align-items: baseline; justify-content: center; height: 32px; border-radius: 7px; color: var(--nx-ink); font-size: 12.4px; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 32px; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
a.st-calor__c:hover { box-shadow: 0 0 0 2px var(--nx-ink); transform: scale(1.04); }
.st-calor__c small { font-size: 9.6px; font-weight: 600; opacity: 0.7; }
.st-calor__c--na { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--nx-surface-2) 5px 6px); color: var(--nx-ink-4); font-weight: 500; }
.st-calor__c--0 { background: color-mix(in srgb, var(--nx-teal-500) 12%, var(--nx-surface)); color: var(--nx-ink-3); font-weight: 600; }
.st-calor__c--1 { background: color-mix(in srgb, #e9c46a 42%, var(--nx-surface)); }
.st-calor__c--2 { background: color-mix(in srgb, #f4a261 62%, var(--nx-surface)); }
.st-calor__c--3 { background: color-mix(in srgb, #e76f51 78%, var(--nx-surface)); color: #fff; }
.st-calor__c--4 { background: #c1121f; color: #fff; }
.st-calor__leg { display: flex; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--nx-ink-3); font-size: 11px; }
.st-calor__leg span:first-child { margin-right: 4px; }
.st-calor__leg span:last-child { margin-left: 4px; }
.st-calor__leg .st-calor__c { width: 22px; height: 12px; border-radius: 3px; }
.st-calor--produtos tbody th { width: 120px; }

/* Projetos da Gestão: cartões com as mesmas cinco faixas, na mesma altura */
.pj-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: stretch; }
.pj { display: grid; grid-template-rows: subgrid; grid-row: span 6; gap: 12px; padding: 18px; }
.pj--atual { border-color: var(--nx-teal-500); box-shadow: inset 0 0 0 1px var(--nx-teal-500); }
.pj__cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pj__cab > div small { display: block; color: var(--nx-ink-3); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pj__cab b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.pj__selos { display: grid; gap: 4px; justify-items: end; }
.pj h2 { margin: 0; font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.3; text-wrap: balance; }
.pj__kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 12.6px; }
.pj__kv dt { color: var(--nx-ink-3); }
.pj__kv dd { margin: 0; font-weight: 600; }
.pj__areas { display: grid; align-content: start; gap: 6px; }
.pj__areas small, .pj__props small { color: var(--nx-ink-3); font-size: 10.4px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pj__areas div { display: flex; flex-wrap: wrap; gap: 6px; }
.pj__areas a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-ink); font-size: 11.8px; font-weight: 600; text-decoration: none; }
.pj__areas a:hover { border-color: var(--nx-teal-500); }
.pj__areas .pi { color: var(--nx-teal-600); font-size: 11px; }
.pj__props { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: var(--nx-surface-2); }
.pj__props > div { display: grid; gap: 1px; }
.pj__props b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.pj__props .cq-prog { grid-column: 1 / -1; background: var(--nx-surface); }
.pj__pe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px dashed var(--nx-line-2); }

/* Quem confere o quê (Configuração › Colaboradores e novo colaborador) */
.cq-confere { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; }
.cq-confere legend { padding: 0 6px; color: var(--nx-ink-2); font-size: 12px; font-weight: 700; }
.cq-confere legend small { color: var(--nx-ink-3); font-weight: 500; }
.cq-confere > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 10px; align-items: start; }
.cq-confere > div > b { padding-top: 6px; color: var(--nx-ink-3); font-size: 10.4px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cq-confere > div > span { display: flex; flex-wrap: wrap; gap: 6px; }
.cq-confere label { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--nx-line); border-radius: 999px; color: var(--nx-ink); font-size: 12px; font-weight: 500; cursor: pointer; }
.cq-confere label:has(input:checked) { border-color: var(--nx-teal-600); background: var(--nx-info-bg); font-weight: 650; }
.cq-confere label:has(input:disabled) { cursor: default; opacity: 0.75; }
.cq-confere input { accent-color: var(--nx-teal-600); }
.cq-confere__todos { display: flex; gap: 8px; align-items: center; margin: 0; }
.cq-confere__todos .pi { color: var(--nx-teal-600); }
.cq-sel--ponto { font-weight: 650; }
.cq-sel--ponto .nx-select { min-width: 260px; }
.cq-tipo-demanda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cq-tipo-demanda legend { margin-bottom: 6px; padding: 0; color: var(--nx-ink-3); font-size: 11.4px; font-weight: 650; }
.cq-tipo-demanda label { display: block; cursor: pointer; }
.cq-tipo-demanda input { position: absolute; opacity: 0; pointer-events: none; }
.cq-tipo-demanda label > span { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; height: 100%; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; box-sizing: border-box; }
.cq-tipo-demanda .pi { grid-row: span 2; align-self: center; color: var(--nx-teal-600); font-size: 20px; }
.cq-tipo-demanda b { color: var(--nx-ink); font-size: 13.4px; }
.cq-tipo-demanda small { color: var(--nx-ink-3); font-size: 11.4px; font-weight: 500; line-height: 1.4; }
.cq-tipo-demanda label:has(input:checked) > span { border-color: var(--nx-teal-600); background: var(--nx-info-bg); box-shadow: inset 0 0 0 1px var(--nx-teal-600); }
.cq-tipo-demanda label:has(input:focus-visible) > span { outline: 2px solid var(--nx-teal-500); outline-offset: 2px; }

/* Modelo em edição */
.st-modelo__acoes { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.st-item--edita { grid-template-columns: auto minmax(0, 1fr) auto; }
.st-item--edita > input[type=checkbox] { width: 16px; height: 16px; margin-top: 9px; accent-color: var(--nx-teal-600); }
.st-item--edita > div { display: grid; gap: 6px; }
.st-item--edita .nx-input { font-weight: 650; }
.st-item--edita .nx-textarea { font-size: 12.2px; line-height: 1.45; }
.st-novo-item { margin: 8px 0 4px; }

/* Gestão dos setores: indicadores, executores, riscos e oportunidades */
.gs-tab { font-variant-numeric: tabular-nums; }
.gs-tab tbody th { min-width: 200px; padding: 8px 12px; border-bottom: var(--mk-borda); font-size: 12.6px; font-weight: 600; letter-spacing: 0; text-align: left; text-transform: none; white-space: nowrap; }
.gs-tab tbody th a { display: inline-flex; gap: 8px; align-items: center; color: var(--nx-ink); text-decoration: none; }
.gs-tab tbody th a:hover { color: var(--nx-teal-600); }
.gs-tab tbody th .pi { width: 16px; color: var(--nx-ink-3); font-size: 12px; text-align: center; }
.gs-tab td { text-align: center; white-space: nowrap; }
.gs-tab thead th:not(:first-child) { text-align: center; white-space: normal; }
.gs-tab td.n small { display: block; color: var(--nx-ink-3); font-size: 10.4px; }
.gs-tab .gq-cel { display: inline-block; min-width: 50px; }
.gs-tab td, .gs-tab thead th:not(:first-child) { padding-inline: 6px; }
.gs-fases th { padding-bottom: 4px; border-bottom: 0; color: var(--nx-teal-600); font-size: 10px; letter-spacing: 0.12em; }
.gs-fases th + th { border-left: 1px solid var(--nx-line); }
.gs-grupo th { padding: 14px 12px 6px !important; border-bottom: 2px solid var(--nx-teal-500) !important; color: var(--nx-ink) !important; font-size: 11px !important; font-weight: 800 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }
.gs-vazio td { color: var(--nx-ink-3); font-size: 12px; text-align: left; }
.gs-exec td:nth-child(7) { display: flex; gap: 8px; align-items: center; min-width: 170px; }
.gs-barra { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--nx-surface-2); }
.gs-barra i { display: block; height: 100%; border-radius: inherit; background: var(--nx-warn); }
.gs-riscos td, .gs-auto td { vertical-align: top; line-height: 1.5; }
.gs-riscos td:nth-child(2), .gs-riscos td:nth-child(3) { min-width: 210px; }
.gs-riscos td:nth-child(4), .gs-riscos td:nth-child(5) { min-width: 160px; }
.gs-riscos .nx-select { min-width: 150px; }
.gs-auto td:nth-child(3) { min-width: 280px; }
.gs-auto td:nth-child(4) { min-width: 260px; color: var(--nx-ink-2); }
.gs-auto a { color: var(--nx-ink); font-weight: 600; text-decoration: none; }

/* Diagnóstico: cartões com as mesmas quatro linhas, na mesma altura */
.dg-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dg { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 12px; padding: 16px; }
.dg > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dg > header b { display: block; font-size: 14px; line-height: 1.25; }
.dg > header small { color: var(--nx-ink-3); font-size: 11px; }
.dg ul { display: grid; gap: 0; margin: 0; padding: 0; border: 1px solid var(--nx-line); border-radius: 10px; list-style: none; }
.dg__p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 46px; padding: 6px 12px; }
.dg__p + .dg__p { border-top: 1px solid var(--nx-line); }
.dg__p i { width: 9px; height: 9px; border-radius: 50%; background: var(--nx-ink-4); }
.dg__p--ok i { background: var(--nx-ok); } .dg__p--warn i { background: var(--nx-warn); } .dg__p--crit i { background: var(--nx-crit); }
.dg__p small { display: block; color: var(--nx-ink-3); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dg__p b { font-size: 12.2px; font-weight: 600; line-height: 1.35; }
.dg > footer { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-pedido { width: 100%; box-sizing: border-box; font-size: 12.4px; line-height: 1.5; }
/* Gaveta do diagnóstico preliminar: cinco seções numeradas, legíveis na tela e coladas num e-mail. */
.dgd .mk-gaveta__corpo { display: grid; gap: 22px; }
.dgd__resumo { margin: 0; padding: 14px 16px; border-left: 3px solid var(--nx-teal-600); border-radius: 0 12px 12px 0; background: var(--nx-surface-2); color: var(--nx-ink); font-size: 13.4px; line-height: 1.6; }
.dgd__sec { display: grid; gap: 12px; }
.dgd__sec > h3 { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.dgd__sec > h3 span { display: grid; flex: none; width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--nx-teal-600), var(--nx-teal-700)); color: #fff; font-size: 12.5px; place-items: center; }
.dgd__gaps, .dgd__acoes, .dgd__roteiro { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dgd__gaps > li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); }
.dgd__grav { display: grid; align-content: start; justify-items: start; gap: 5px; }
.dgd__grav small { color: var(--nx-ink-3); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dgd__gaps b, .dgd__acoes header b, .dgd__roteiro header b { font-size: 13.4px; line-height: 1.4; }
.dgd__gaps p { margin: 4px 0 6px; color: var(--nx-ink-2); font-size: 12.8px; line-height: 1.55; }
.dgd__gaps small { display: flex; gap: 6px; align-items: baseline; color: var(--nx-ink-3); font-size: 11.6px; line-height: 1.45; }
.dgd__gaps small .pi { font-size: 10px; }
.dgd__ishi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dgd__ishi > div { padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); }
.dgd__ishi h4 { display: flex; gap: 7px; align-items: center; margin: 0 0 6px; color: var(--nx-info); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.dgd__ishi ul { display: grid; gap: 5px; margin: 0; padding-left: 16px; color: var(--nx-ink-2); font-size: 12.4px; line-height: 1.5; }
.dgd__acoes > li, .dgd__roteiro > li { padding: 12px 14px; border: 1px solid var(--nx-line); border-radius: 12px; background: var(--nx-surface); counter-increment: dgd; }
.dgd__acoes header, .dgd__roteiro header { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.dgd__acoes header span, .dgd__roteiro header span { display: inline-flex; flex: none; gap: 6px; align-items: center; color: var(--nx-info); font-size: 12px; font-weight: 700; white-space: nowrap; }
.dgd__acoes dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 12.4px; line-height: 1.5; }
.dgd__acoes dt { color: var(--nx-ink-3); font-weight: 700; }
.dgd__acoes dd { margin: 0; color: var(--nx-ink-2); }
.dgd__tab td { font-size: 12.2px; line-height: 1.45; vertical-align: top; }
.dgd__roteiro p { margin: 4px 0 6px; color: var(--nx-ink-2); font-size: 12.6px; line-height: 1.5; }
.dgd__roteiro ul { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--nx-ink); font-size: 12.6px; line-height: 1.5; }
.dgd__pe { align-items: start; }
@media (max-width: 720px) { .dgd__ishi { grid-template-columns: minmax(0, 1fr); } .dgd__gaps > li { grid-template-columns: minmax(0, 1fr); } .dgd__acoes dl { grid-template-columns: minmax(0, 1fr); } .dgd__acoes header, .dgd__roteiro header { flex-wrap: wrap; } }
@media (min-width: 721px) and (max-width: 960px) { .dgd__ishi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Registros dos setores e lições aprendidas */
.rg-tab td { vertical-align: middle; }
.rg-tab td:first-child { min-width: 280px; }
.rg-tab .nx-input { width: 100%; min-width: 220px; box-sizing: border-box; }
.rg-tab .nx-select { min-width: 170px; }
.la-lista { display: grid; gap: 12px; }
.la { display: grid; gap: 12px; padding: 16px 18px; }
.la > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.la > header code { color: var(--nx-ink-3); font-size: 11px; }
.la > header b { font-size: 14.5px; letter-spacing: -0.01em; }
.la > header span { display: inline-flex; gap: 10px; align-items: center; }
.la > header small, .la > footer small { color: var(--nx-ink-3); font-size: 11.4px; }
.la dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--nx-line); border-radius: 10px; }
.la dl > div { padding: 10px 14px; }
.la dl > div + div { border-left: 1px solid var(--nx-line); }
.la dt { color: var(--nx-ink-3); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.la dd { margin: 4px 0 0; font-size: 12.6px; line-height: 1.5; }
.la > footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; }

@media (max-width: 900px) {
    .cq-confere > div, .cq-tipo-demanda, .la dl { grid-template-columns: minmax(0, 1fr); }
    .la dl > div + div { border-top: 1px solid var(--nx-line); border-left: 0; }
    .st-hero { grid-template-columns: auto minmax(0, 1fr); padding: 34px 18px 18px; }
    .st-hero__lado { grid-column: 1 / -1; justify-items: start; padding-top: 0; }
    .st-duas { grid-template-columns: minmax(0, 1fr); }
    .st-pr > summary { grid-template-columns: auto minmax(0, 1fr) auto; }
    .st-pr__selos { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
    .st-fl { grid-template-columns: auto minmax(0, 1fr); } .st-fl > span { grid-column: 2; justify-items: start; }
    .st-calor { min-width: 640px; }
    .st-calor thead th:first-child, .st-calor tbody th { width: 170px; }
    .pj-grade { grid-template-columns: minmax(0, 1fr); }
}
@media print { .st-hero__volta, .st-hero__lado .nx-select { display: none; } }
