/* Escopo próprio: preserva as tabelas e o espaçamento das outras telas. */
.po { min-width: 0; --po-suave: #f4f7f8; --po-texto-sec: #526579; }
.po-intro { margin: 0 0 12px; font-size: 13px; color: var(--po-texto-sec); }
.po-filtros { display: grid; grid-template-columns: repeat(2,minmax(120px,.7fr)) repeat(3,minmax(160px,1fr)) auto; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.po-filtros label { min-width: 0; display: grid; gap: 4px; font-size: 11.5px; color: var(--po-texto-sec); }
.po-filtros :is(input,select) { min-width: 0; width: 100%; height: 38px; }
.po-filtros .po-aplicar { min-height: 38px; }
.po-atalhos { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1/-1; }
.po-contexto { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 8px 0; color: var(--po-texto-sec); font-size: 11px; }
.po-status { min-height: 20px; font-size: 11.5px; color: var(--po-texto-sec); margin: 0 0 8px; }
.po-kpis { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.po-kpi { display: flex; flex-direction: column; gap: 4px; padding: 12px; min-width: 0; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.po-kpi > span { font-size: 12px; color: var(--po-texto-sec); line-height: 1.4; }
.po-kpi strong { font-size: 28px; line-height: 1.1; color: var(--navy); font-weight: 600; }
.po-kpi small { font-size: 10.5px; line-height: 1.5; color: var(--po-texto-sec); }
.po-kpi:nth-child(3) { border-top: 3px solid var(--verde); }
.po-duas { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 12px; align-items: start; }
.po-secao { min-width: 0; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.po-secao > header { margin-bottom: 8px; }
.po-secao h2 { font-size: 15px; color: var(--navy); font-weight: 600; margin: 0 0 4px; }
.po-secao header p { color: var(--po-texto-sec); font-size: 11.5px; line-height: 1.6; max-width: 920px; }
.po-barras { display: grid; gap: 0; }
.po-barra { display: grid; grid-template-columns: minmax(120px,1.4fr) minmax(60px,1fr) 64px; gap: 12px; align-items: center; min-height: 32px; padding: 4px 8px; width: 100%; background: transparent; border: 1px solid transparent; border-radius: 6px; color: var(--text); text-align: left; }
.po-barra:hover { background: var(--po-suave); }
.po-barra.po-selecionada { background: var(--verde-suave); border-color: var(--verde-escuro); }
.po-barra-nome { min-width: 0; font-size: 12px; line-height: 1.5; }
.po-barra-grafico { min-width: 0; }
.po-barra progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: #e6ecef; color: var(--verde-escuro); }
.po-barra progress::-webkit-progress-bar { background: #e6ecef; }
.po-barra progress::-webkit-progress-value { background: var(--verde-escuro); border-radius: 4px; }
.po-barra progress::-moz-progress-bar { background: var(--verde-escuro); border-radius: 4px; }
.po-barra-numero { display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; white-space: nowrap; }
.po-barra-numero b { font-size: 13px; color: var(--navy); }
.po-barra-numero small { font-size: 10px; color: var(--po-texto-sec); }
.po-nota { margin-top: 8px; font-size: 10.5px; line-height: 1.5; color: var(--po-texto-sec); }
.po-faixas { display: grid; grid-template-columns: repeat(auto-fit,minmax(72px,1fr)); gap: 8px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--border); }
.po-faixas dt { font-size: 10px; color: var(--po-texto-sec); }
.po-faixas dd { font-size: 16px; font-weight: 500; color: var(--navy); }
.po-respostas { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.po-resposta { min-width: 0; border-left: 3px solid var(--border); padding: 4px 0 4px 12px; }
.po-resposta h3 { color: var(--navy); font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.po-resposta dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.po-resposta dt { font-size: 10.5px; color: var(--po-texto-sec); line-height: 1.5; min-height: 32px; }
.po-resposta dd { color: var(--navy); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.po-resposta > p { color: var(--po-texto-sec); font-size: 10.5px; margin-top: 8px; }
.po-amostra { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--po-texto-sec); margin-top: 4px; }
.po-meta-coleta { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 8px 12px; margin-bottom: 12px; background: var(--po-suave); border-left: 3px solid var(--navy); }
.po-meta-coleta b { font-size: 12px; color: var(--navy); }
.po-meta-coleta p { font-size: 11px; color: var(--po-texto-sec); margin-top: 4px; line-height: 1.6; }
.po-tag { display: inline-block; background: var(--po-suave); color: var(--po-texto-sec); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; font-size: 10px; line-height: 1.5; }
.po-meta-coleta .po-tag { flex-shrink: 0; background: var(--card); }
.po-tempo-documento { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-items: start; padding: 8px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.po-tempo-documento h3 { font-size: 13px; font-weight: 500; color: var(--navy); }
.po-tempo-documento p { font-size: 11px; line-height: 1.6; color: var(--po-texto-sec); margin-top: 4px; }
.po-tempo-documento dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.po-tempo-documento dt { font-size: 10.5px; color: var(--po-texto-sec); }
.po-tempo-documento dd { font-size: 18px; font-weight: 500; color: var(--navy); }
.po-tempo-documento dd small { font-size: 10px; font-weight: 400; color: var(--po-texto-sec); }
.po-tempo-documento > .po-nota { grid-column: 1/-1; }
.po-tabela-wrap { min-width: 0; width: 100%; }
.po-tabela { table-layout: fixed; }
.po-tabela :is(th,td) { padding: 8px; font-size: 11.5px; overflow-wrap: anywhere; }
.po-tabela thead th { color: var(--po-texto-sec); line-height: 1.5; }
.po-tabela tbody th { color: var(--navy); font-weight: 500; background: transparent; }
.po-tabela small { display: block; font-size: 10px; color: var(--po-texto-sec); margin-top: 4px; line-height: 1.5; }
.po-tabela td b { font-weight: 500; }
.po-documentos th:first-child { width: 23%; }
.po-performance th:first-child { width: 22%; }
.po-casos th:first-child { width: 19%; }
.po-casos th:last-child { width: 21%; }
.po-cobertura { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; padding-top: 12px; color: var(--po-texto-sec); font-size: 10.5px; line-height: 1.7; }
.po-cobertura b { color: var(--navy); font-weight: 500; }
.po-lista header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.po-paginacao { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; font-size: 11px; color: var(--po-texto-sec); }
.po-paginacao > div { display: flex; gap: 12px; align-items: center; }
.po-vazio { padding: 24px 12px; font-size: 12px; color: var(--po-texto-sec); text-align: center; line-height: 1.7; }
.po-erro { border: 1px solid var(--border); background: var(--card); border-radius: 10px; }
.po-erro b { color: var(--navy); }
.po-erro p { margin: 8px 0 16px; overflow-wrap: anywhere; }
.po-recorte-vazio { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 16px; }
.po-recorte-vazio b { color: var(--navy); }
.po-recorte-vazio p { max-width: 560px; margin: 4px auto 0; }
.po-limitacoes { padding: 12px; font-size: 11.5px; color: var(--po-texto-sec); background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.po-limitacoes summary { cursor: pointer; font-weight: 500; color: var(--navy); }
.po-limitacoes ul { margin: 12px 0 0 20px; line-height: 1.7; }
.po-limitacoes li + li { margin-top: 4px; }
.po-carregando { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.po-carregando div { height: 100px; border-radius: 10px; border: 1px solid var(--border); background: var(--po-suave); }
.po-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.po :is(button,summary):focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 1320px) {
  .po-filtros { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .po-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .po-respostas { gap: 12px; }
  .po-resposta dl { grid-template-columns: 1fr; gap: 8px; }
  .po-resposta dl > div { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
  .po-resposta dt { min-height: 0; }
  .po-resposta dd { font-size: 15px; white-space: nowrap; }
}
@media (max-width: 1000px) {
  .po-duas { grid-template-columns: 1fr; gap: 0; }
  .po-tabela :is(th,td) { padding: 8px; }
}
@media (max-width: 700px) {
  .po-filtros { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
  .po-filtros label:nth-of-type(5) { grid-column: 1/-1; }
  .po-filtros .po-aplicar { grid-column: 1/-1; }
  .po-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .po-kpi { padding: 12px; }
  .po-kpi strong { font-size: 24px; }
  .po-secao { padding: 12px; }
  .po-respostas { grid-template-columns: 1fr; gap: 16px; }
  .po-resposta dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .po-resposta dl > div { display: block; }
  .po-resposta dt { min-height: 32px; }
  .po-meta-coleta { flex-direction: column; padding: 12px; gap: 8px; }
  .po-tempo-documento { grid-template-columns: 1fr; }
  .po-lista header { flex-direction: column; }
  .po-tabela, .po-tabela tbody, .po-tabela tr { display: block; width: 100%; }
  .po-tabela thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .po-tabela tbody { display: grid; gap: 12px; }
  .po-tabela tr { border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
  .po-tabela tbody th { display: block; width: 100%; font-size: 13px; padding: 0 0 8px; border: 0; }
  .po-tabela td { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px 12px; padding: 6px 0; border: 0; font-size: 11.5px; }
  .po-tabela td::before { content: attr(data-label); color: var(--po-texto-sec); font-size: 10.5px; }
  .po-tabela td small { grid-column: 2; margin-top: 0; }
  .po-tabela td .btn { white-space: normal; }
  .po :is(button.btn,.po-barra) { min-height: 44px; }
  .po-paginacao { align-items: start; }
  .po-paginacao > div { flex-wrap: wrap; gap: 8px; }
  .po-barra { grid-template-columns: minmax(80px,1.4fr) minmax(36px,.8fr) 56px; padding: 8px 4px; gap: 8px; }
  .po-barra-nome { font-size: 11px; }
  .po-contexto { display: block; line-height: 1.7; }
  .po-contexto span { display: block; }
  .po-carregando { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .po * { scroll-behavior: auto; }
}
