/* V1483 — Pools de Custeio por processo-chave */
.pc83 { display: flex; flex-direction: column; gap: 14px; color: #173b63; }
.pc83-carregando { padding: 30px; text-align: center; color: #6b7a8f; }
.pc83-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pc83-topo h2 { margin: 0; font-size: 18px; color: #12315e; }
.pc83-topo p { margin: 3px 0 0; font-size: 12.5px; color: #637b98; max-width: 680px; }
.pc83-acoes { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.pc83-mes { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: #6b7a8f; }
.pc83-mes input { height: 34px; border: 1px solid #cbd8e9; border-radius: 8px; padding: 0 9px; font: inherit; font-size: 13px; color: #173b63; background: #fff; }
.pc83-btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid #c9d4e3; background: #fff; color: #1f3a5f; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.pc83-btn:hover:not(:disabled) { border-color: #f07f1a; color: #c25e05; }
.pc83-btn--prim { background: #f07f1a; border-color: #f07f1a; color: #fff; font-weight: 600; }
.pc83-btn--prim:hover:not(:disabled) { background: #d96c0c; color: #fff; }
.pc83-btn--min { height: 30px; padding: 0 11px; font-size: 12px; }
.pc83-btn:disabled { opacity: .5; cursor: wait; }
.pc83-vazio { display: flex; flex-direction: column; gap: 4px; padding: 22px; text-align: center; background: #fff; border: 1px dashed #c8d5e5; border-radius: 12px; color: #637b98; font-size: 13px; }
.pc83-vazio strong { color: #12315e; }

.pc83-pend { background: #fffaf0; border: 1px solid #f3d5a6; border-radius: 12px; padding: 10px 14px; }
.pc83-pend summary { cursor: pointer; font-weight: 700; color: #8a5300; display: flex; align-items: center; gap: 8px; }
.pc83-pend-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #f07f1a; color: #fff; font-size: 12px; }
.pc83-pend p { margin: 6px 0 8px; font-size: 12.5px; color: #8a6a3a; }
.pc83-pend-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px dashed #f0dcb9; font-size: 13px; }
.pc83-pend-item small { color: #8a6a3a; }
.pc83-pend-item select, .pc83-campo select, .pc83-campo input:not([type=checkbox]) { height: 34px; box-sizing: border-box; border: 1px solid #cbd8e9; border-radius: 8px; padding: 0 9px; font: inherit; font-size: 13px; color: #173b63; background: #fff; width: 100%; min-width: 0; }

.pc83-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.pc83-card { background: #fff; border: 1px solid #dce5f0; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(18, 49, 94, .04); }
.pc83-card--aviso { border-color: #f3d5a6; }
.pc83-card--inativo { opacity: .7; }
.pc83-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pc83-card h3 { margin: 0; font-size: 15px; color: #12315e; }
.pc83-card header p { margin: 4px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pc83-card-acoes { display: flex; gap: 6px; }
.pc83-tag { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 700; }
.pc83-tag--proc { background: #e7f6ec; color: #1f7a3d; }
.pc83-tag--alerta { background: #fff1e2; color: #a94f00; }
.pc83-tag--cinza { background: #eef1f5; color: #4f5b6d; font-weight: 600; }
.pc83-sub { font-size: 12px; color: #6b7a8f; }
.pc83-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc83-chips span { font-size: 11.5px; color: #47607c; background: #f1f5fa; border-radius: 10px; padding: 2px 9px; }
.pc83-valores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pc83-valor { border: 1px solid #e6edf5; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc83-valor small { font-size: 11px; color: #6b7a8f; text-transform: uppercase; letter-spacing: .03em; }
.pc83-valor strong { font-size: 15px; color: #12315e; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc83-valor span { font-size: 11.5px; color: #6b7a8f; }
.pc83-valor a { color: #1766b3; }
.pc83-valor--destaque { background: #fff6ec; border-color: #f6caa0; }
.pc83-valor--destaque strong { color: #a94f00; }
.pc83-bloco h4 { margin: 0 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: #6b7a8f; }
.pc83-linha { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 52px; gap: 8px; align-items: center; font-size: 12.5px; padding: 2px 0; }
.pc83-linha-nome { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc83-linha b { text-align: right; font-variant-numeric: tabular-nums; }
.pc83-barra { height: 8px; background: #eef2f8; border-radius: 4px; overflow: hidden; }
.pc83-barra i { display: block; height: 100%; background: #f07f1a; border-radius: 4px; }
.pc83-rodape { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #47607c; border-top: 1px dashed #e1e8f1; padding-top: 8px; }
.pc83-avisos { margin: 0; padding: 8px 12px 8px 28px; background: #fffaf0; border-radius: 8px; font-size: 12px; color: #8a5300; }

.pc83-lig { background: #fff; border: 1px solid #dce5f0; border-radius: 12px; padding: 10px 14px; }
.pc83-lig summary { cursor: pointer; font-weight: 700; color: #12315e; }
.pc83-lig table, .pc83-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.pc83-lig th, .pc83-tab th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: #6b7a8f; padding: 6px 8px; border-bottom: 1px solid #e3eaf3; }
.pc83-lig td, .pc83-tab td { padding: 7px 8px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.pc83-tab td small { display: block; color: #6b7a8f; font-size: 11px; }
.pc83-tab tfoot td { font-weight: 700; border-bottom: 0; }
.pc83-r { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

.pc83-modal-fundo { position: fixed; inset: 0; background: rgba(15, 33, 58, .45); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 3000; overflow-y: auto; }
.pc83-modal { background: #fff; border-radius: 14px; width: min(760px, 100%); box-shadow: 0 20px 50px rgba(15, 33, 58, .25); display: flex; flex-direction: column; }
.pc83-modal header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e3eaf3; }
.pc83-modal h3 { margin: 0; font-size: 16px; color: #12315e; }
.pc83-x { width: 32px; height: 32px; border: 1px solid #d5dfec; border-radius: 8px; background: #fff; color: #8a9bb0; font-size: 20px; cursor: pointer; }
.pc83-modal-corpo { padding: 14px 18px; max-height: calc(100vh - 200px); overflow-y: auto; }
.pc83-modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #e3eaf3; background: #f8fafd; border-radius: 0 0 14px 14px; }
.pc83-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.pc83-campo { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; min-width: 0; }
.pc83-campo > span { font-weight: 600; color: #33475f; }
.pc83-campo small { font-size: 11.5px; color: #6b7a8f; }
.pc83-span2 { grid-column: 1 / -1; }
.pc83-check { flex-direction: row; align-items: center; gap: 8px; }
.pc83-origens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 210px; overflow-y: auto; border: 1px solid #e3eaf3; border-radius: 9px; padding: 8px 10px; }
.pc83-origens label { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.pc83-origens input { margin-top: 2px; }
.pc83-origens em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #a94f00; background: #fff1e2; border-radius: 8px; padding: 0 6px; }
.pc83-origens small { display: block; color: #8a9bb0; font-size: 11px; }
.pc83-info { font-size: 12.5px; color: #47607c; background: #eef6ff; border: 1px solid #b9d5f2; border-radius: 9px; padding: 9px 12px; }

@media (max-width: 760px) {
  .pc83-cards { grid-template-columns: minmax(0, 1fr); }
  .pc83-valores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc83-form, .pc83-origens { grid-template-columns: minmax(0, 1fr); }
  .pc83-pend-item { grid-template-columns: minmax(0, 1fr); }
}

/* V1484 — janela do pool: duas colunas, busca e filtros nas origens; blindada contra estilos globais */
.pc83-modal--largo { width: min(980px, 100%); }
.pc83-modal-fundo .pc83-modal header h3 { text-transform: none !important; letter-spacing: 0 !important; font-size: 17px !important; color: #12315e !important; margin: 0 !important; }
.pc83-modal-fundo .pc83-x { display: inline-grid !important; place-items: center; padding: 0 !important; line-height: 1 !important; width: 32px !important; height: 32px !important; min-width: 0 !important; }
.pc83-modal--largo .pc83-modal-corpo { max-height: calc(100vh - 170px); padding: 16px 20px; }
.pc84 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px 22px; align-items: start; }
.pc84-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc84-col h4 { display: flex; align-items: center; gap: 8px; margin: 4px 0 0 !important; font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #12315e !important; }
.pc84-col h4 > span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #12315e; color: #fff; font-size: 11px; letter-spacing: 0; }
.pc84-cont { margin-left: auto; font-size: 11.5px; font-weight: 700; text-transform: none; letter-spacing: 0; color: #a94f00; }
.pc83-modal .pc84-campo { display: flex !important; flex-direction: column; gap: 4px; margin: 0 !important; font-size: 12.5px; min-width: 0; }
.pc83-modal .pc84-campo > span { font-weight: 600; color: #33475f; font-size: 12.5px; }
.pc83-modal .pc84-campo small, .pc84-ajuda { font-size: 11.5px; color: #6b7a8f; line-height: 1.4; }
.pc83-modal .pc84-campo input, .pc83-modal .pc84-campo select, .pc83-modal .pc84-busca input { height: 36px !important; box-sizing: border-box; border: 1px solid #cbd8e9 !important; border-radius: 8px !important; padding: 0 10px !important; font: inherit; font-size: 13px !important; color: #173b63; background: #fff; width: 100% !important; min-width: 0; margin: 0 !important; }
.pc84-dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc83-modal .pc84-ativo { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 4px 0 0 !important; font-size: 13px; color: #173b63; cursor: pointer; }
.pc83-modal .pc84-ativo input, .pc83-modal .pc84-org input { width: 16px !important; height: 16px !important; min-width: 16px; margin: 0 !important; padding: 0 !important; flex: 0 0 auto; accent-color: #f07f1a; cursor: pointer; }
.pc84-col--org { background: #f8fafd; border: 1px solid #e3eaf3; border-radius: 12px; padding: 12px; }
.pc84-busca { display: flex; flex-direction: column; gap: 8px; }
.pc84-filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.pc83-modal .pc84-filtros button { height: 28px !important; padding: 0 11px !important; border-radius: 14px !important; border: 1px solid #c9d4e3 !important; background: #fff !important; color: #1f3a5f !important; font: inherit; font-size: 12px !important; font-weight: 500; cursor: pointer; min-width: 0 !important; box-shadow: none !important; }
.pc83-modal .pc84-filtros button.is-on { background: #12315e !important; border-color: #12315e !important; color: #fff !important; }
.pc84-lista { display: flex; flex-direction: column; gap: 4px; max-height: 300px; overflow-y: auto; padding-right: 2px; }
.pc83-modal .pc84-org { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; gap: 10px; margin: 0 !important; padding: 7px 10px; border: 1px solid #e3eaf3; border-radius: 8px; background: #fff; cursor: pointer; text-align: left !important; }
.pc83-modal .pc84-org:hover { border-color: #f6caa0; }
.pc83-modal .pc84-org.is-on { border-color: #f07f1a; background: #fff8f0; }
.pc83-modal .pc84-org[hidden] { display: none !important; }
.pc84-org-txt { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: 13px; color: #173b63; }
.pc84-org-txt b { font-weight: 600; }
.pc84-org-txt em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #a94f00; background: #fff1e2; border-radius: 8px; padding: 1px 7px; }
.pc84-org-txt small { flex-basis: 100%; font-size: 11px; color: #8a9bb0; }
.pc84-nada { margin: 8px 0; font-size: 12.5px; color: #6b7a8f; text-align: center; }
.pc84-info { grid-column: 1 / -1; font-size: 12.5px; color: #47607c; background: #eef6ff; border: 1px solid #b9d5f2; border-radius: 9px; padding: 9px 12px; }
@media (max-width: 820px) { .pc84 { grid-template-columns: minmax(0, 1fr); } .pc84-lista { max-height: 240px; } }

/* V1485 — janela do pool sem barra de rolagem: corpo sem altura máxima; só a lista de origens se ajusta à altura da tela */
.pc83-modal-fundo:has(.pc83-modal--largo) { align-items: center; padding: 12px 16px; }
.pc83-modal--largo .pc83-modal-corpo { max-height: none !important; overflow: visible !important; padding: 14px 20px 12px; }
.pc83-modal--largo header { padding: 12px 20px; }
.pc83-modal--largo footer { padding: 10px 20px; }
.pc83-modal--largo .pc84 { gap: 14px 22px; }
.pc83-modal--largo .pc84-col { gap: 8px; }
.pc83-modal--largo .pc84-lista { max-height: clamp(130px, calc(100vh - 430px), 330px); }
.pc83-modal--largo .pc84-info { grid-column: auto; margin-top: 4px; }

/* V1485 — abas da Configuração do Pricing em grade regular (7 abas = 4 + 3) */
.pes-hub.pes-hub--grade { display: grid !important; grid-template-columns: repeat(var(--hub-cols, 4), minmax(0, 1fr)); }
.pes-hub.pes-hub--grade .pes-hub-aba { min-width: 0; }
@media (max-width: 900px) { .pes-hub.pes-hub--grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pes-hub.pes-hub--grade { grid-template-columns: minmax(0, 1fr); } }
/* V1486 — aviso quando não há processos na Configuração Industrial */
.pc84-alerta { font-size: 12.5px; color: #8a5300; background: #fffaf0; border: 1px solid #f3d5a6; border-radius: 9px; padding: 9px 12px; }
.pc84-alerta a { color: #c25e05; font-weight: 600; }
