/* Gestão de chamados · NPS (painel BI no molde do SLA) */
#view-nps h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap }
#view-nps .btn { width: auto; margin: 0; padding: 6px 12px; font-size: .75rem }
.np-hero { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-bottom: 16px }
.np-sat { display: flex; flex-direction: column; align-items: center; text-align: center }
.np-sat .lbl small { font-weight: 400; text-transform: none }
.np-anel { width: 140px; height: 140px; margin: 6px 0 }
.np-anel-prog { transition: stroke-dasharray .8s ease }
.np-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.np-kpi { text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s }
.np-kpi .val { font-size: 1.6rem; margin: 6px 0 2px }
.np-kpi:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15,23,42,.08) }
.np-kpi.on { border-color: var(--vault); box-shadow: 0 0 0 3px rgba(37,99,235,.15) }
.np-kpi.np-v .val { color: var(--ok) } .np-kpi.np-r .val { color: var(--alert) } .np-kpi.np-l .val { color: var(--warn) }
.np-graf { margin-bottom: 16px }
.np-svg { width: 100%; min-width: 560px; height: auto; max-height: 230px; display: block }
.np-mes { cursor: pointer } .np-mes-bg { fill: transparent }
.np-mes:hover .np-mes-bg { fill: var(--surface2) } .np-mes.on .np-mes-bg { fill: var(--surface2); stroke: var(--vault); stroke-dasharray: 3,3 }
.np-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px }
.np-tres .panel { margin: 0 }
.np-bars { display: flex; flex-direction: column; gap: 4px }
.np-fun { display: grid; grid-template-columns: minmax(80px, 120px) 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid transparent;
  border-radius: var(--r); background: none; cursor: pointer; font: inherit; color: var(--txt); text-align: left }
.np-fun:hover, .np-fun.on { border-color: var(--vault); background: var(--surface2) }
.np-fun .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.np-fun .tr, .np-mini .tr { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--surface2) }
.np-fun .tr i, .np-mini .tr i { display: block; height: 100%; border-radius: 4px; background: var(--steel); transition: width .6s ease }
.np-mini .tr b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--txt); opacity: .5 }
.np-mini { min-width: 120px }
.np-fun .vl { text-align: right; font-weight: 700; white-space: nowrap }
.np-fun .vl small { font-weight: 400; color: var(--muted) }
.np-est { color: #f5a623; letter-spacing: 1px } .np-apag { color: var(--line) }
.np-abas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px }
.np-aba { opacity: .5 } .np-aba.on { opacity: 1 }
.np-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 8px }
.np-chip { border: 1px solid var(--vault); background: var(--surface2); color: var(--txt); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .6875rem; cursor: pointer }
.np-chip-x { border-color: var(--line); color: var(--muted) }
.np-tab { overflow-x: auto } .np-tab td.c, .np-tab th.c { text-align: center } .np-tab .sm { font-size: .6875rem; opacity: .85 }
.np-bl { border-left: 1px solid var(--steel) }
.np-cel { cursor: pointer; font-weight: 600 } .np-cel:hover { background: var(--surface2) }
.np-lin { cursor: pointer } .np-lin:hover td { background: var(--surface2) }
.np-obs { max-width: 340px; font-size: .75rem }
.np-acoes { display: flex; gap: 8px; align-items: center }
.np-busca { width: 280px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); font: inherit; font-size: .75rem; background: var(--surface); color: var(--txt) }
.np-mais { margin-top: 10px !important }
.np-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 600; white-space: nowrap; background: var(--surface2); color: var(--muted) }
.np-tag.verde { background: rgba(22,163,74,.12); color: var(--ok) } .np-tag.vermelho { background: rgba(220,38,38,.12); color: var(--alert) }
.np-tag.laranja { background: rgba(234,88,12,.12); color: var(--warn) } .np-tag.azul { background: rgba(37,99,235,.12); color: var(--steel) }
.np-vozes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px }
.np-voz { border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r); padding: 12px; background: var(--surface) }
.np-voz.ruim { border-left-color: var(--alert) }
.np-voz-top { display: flex; justify-content: space-between; align-items: center }
.np-voz p { margin: 8px 0; font-style: italic; line-height: 1.4 }
.np-ok { color: var(--ok) } .np-ruim { color: var(--alert) } .np-mut { color: var(--muted); font-size: .75rem }
@media (max-width: 1100px) { .np-tres { grid-template-columns: 1fr } .np-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 700px) { .np-hero { grid-template-columns: 1fr } .np-busca { width: 100% } .np-acoes { flex-wrap: wrap } }
.np-cel[data-abre] { cursor: pointer }
.np-cel[data-abre]:hover b { text-decoration: underline }
.np-pop-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px }
.np-pop { background: var(--bg, #f6f8fb); border-radius: 12px; width: min(1200px, 100%); max-height: 88vh; overflow: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 14px }
.np-pop-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .95rem }
.np-pop-x { background: none; border: 0; font-size: 1.1rem; cursor: pointer; color: var(--muted) }
.np-pop .panel { margin: 0 }
