
/* Minha Performance v01 — integrada à página SPA, sem modal */
.op-performance{min-width:0}.op-performance .pf-filter-panel{background:#f8fafc;border:1px solid #d6e2ea;border-radius:12px;padding:16px;margin:14px 0}.op-performance .pf-controls{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;align-items:end}.op-performance .pf-switch{display:flex;align-items:center;gap:9px;padding-bottom:13px}.op-performance .pf-switch input{width:auto;margin:0}.op-performance #pf-destaques{width:100%;max-width:100%;margin-bottom:10px}.op-performance .pf-summary{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:12px;margin:14px 0}.op-performance .pf-card{background:#fff;border:1px solid #d6e2ea;border-radius:10px;padding:14px}.op-performance .pf-card strong{display:block;font-variant-numeric:tabular-nums;font-size:1.15rem;margin-top:6px}.op-performance .pf-scroll{max-height:70vh;overflow:auto}.op-performance .pf-table{min-width:1150px;font-size:.88rem}.op-performance .pf-table thead th{position:sticky;top:0;background:#eaf1f8;z-index:2}.op-performance .pf-table td:nth-child(n+4):nth-child(-n+7){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.op-performance .pf-group{background:#e9f2f7;font-weight:700}.op-performance .pf-group button{background:transparent;color:#174f62;padding:.2rem;border:0;font-weight:700;text-align:left}.op-performance .pf-subtotal{background:#eff3f8;font-weight:700}.op-performance .pf-row-off{opacity:.56}.op-performance .pf-note{display:block;font-size:.76rem;color:#335c7a;margin-top:3px}.op-performance .pf-error{color:#b42318;font-weight:650}.op-performance #pf-status{min-height:1.5rem}.op-performance .pf-check{width:auto;min-width:36px;margin:0;padding:5px 8px}.op-performance [hidden]{display:none!important}@media(max-width:800px){.op-performance .pf-controls,.op-performance .pf-summary{grid-template-columns:1fr 1fr}}@media(max-width:520px){.op-performance .pf-controls,.op-performance .pf-summary{grid-template-columns:1fr}}

/* V02: Select2 da Performance; largura adequada ao painel de filtros. */
.op-performance .pf-controls{grid-template-columns:repeat(4,minmax(155px,1fr))}
.op-performance .select2-container{max-width:100%;margin:5px 0 10px}
.op-performance .select2-container--default .select2-selection--multiple{border:1px solid #b8c8d5;border-radius:8px;min-height:42px;background:#fff}
.op-performance .select2-container--default .select2-selection--multiple .select2-selection__choice{background:#e7f0f8;border-color:#c8dbe9;color:#183c54}
@media(max-width:1050px){.op-performance .pf-controls{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:600px){.op-performance .pf-controls{grid-template-columns:1fr}}

/* V03: avaliação e consolidação da unidade conforme Gestor 1 */
.op-performance .pf-general-head{background:#dce9f4;color:#153c56;font-weight:800;border-top:3px solid #8ba8bc}
.op-performance .pf-performance{background:#fff1c6;font-weight:700}
.op-performance .pf-performance-real{background:#e8f1ff;font-weight:700}
.op-performance .pf-deficit{background:#fff0f0;font-weight:650}
.op-performance .pf-stars{color:#0871c5;font-size:1.15rem;letter-spacing:.06em;white-space:nowrap}
.op-performance .pf-below-goal{color:#ac2424}
.op-performance .pf-card-wide{grid-column:1/-1}
.op-performance .pf-card-wide strong{font-size:1rem;line-height:1.65;overflow-wrap:anywhere}

/* Esforço negocial — tabela segregada, mesmos filtros da tela */
.op-performance .pf-section-title{margin:1.45rem 0 .6rem;font-size:1.15rem;color:#153c56}
.op-performance .pf-effort-section{margin-top:1.7rem;padding-top:.5rem;border-top:2px solid #d6e2ea}
.op-performance .pf-effort-table{min-width:980px}
.op-performance .pf-effort-table td:nth-child(n+3){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.op-performance .pf-effort-table td:first-child{font-weight:650}
.op-performance #pf-effort-status{min-height:1.4rem;color:#335c7a}

/* Seções individuais, inicialmente recolhidas; a consulta e a cópia seguem operacionais. */
.op-performance .pf-report-section{border:1px solid #cad9e4;border-radius:12px;margin:14px 0;background:#fff;padding:0 14px 14px}
.op-performance .pf-report-section>summary{cursor:pointer;font-size:1.05rem;font-weight:750;color:#153c56;padding:15px 8px;list-style:revert}
.op-performance .pf-report-section:not([open]){padding-bottom:0}
.op-performance .pf-report-section[open]>summary{border-bottom:1px solid #d6e2ea;margin-bottom:12px}
.op-performance .pf-effort-section{margin-top:14px;padding-top:0;border-top:1px solid #cad9e4}
.op-performance .pf-effort-table td:nth-child(2){min-width:220px;text-align:left;white-space:normal}

/* Esforço Negocial — filtro de classificações independente, Select2 múltiplo */
.op-performance .pf-effort-filter{max-width:680px;margin:12px 0 14px}
.op-performance .pf-effort-filter>label{display:block;font-weight:700;color:#173b53;margin-bottom:5px}
.op-performance .pf-effort-filter .select2-container{display:block;width:100%!important;max-width:100%}
.op-performance .pf-effort-filter .select2-selection--multiple{min-height:42px}
.op-performance .pf-effort-filter .op-hint{margin:5px 0 0}
.op-performance .pf-effort-section .select2-dropdown{z-index:1200}

/* Menu Select2 livre da região com overflow e reativação de opções já removidas. */
.op-performance .pf-effort-selection-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.op-performance .pf-effort-selection-actions button{width:auto;min-width:0;padding:6px 12px;font-size:.83rem}
body>.select2-container--open{z-index:10050}
body>.select2-container--open .select2-dropdown{z-index:10050}
body>.select2-container--open .select2-results__option--selected{background:#e7f0f8;color:#173b53}
body>.select2-container--open .select2-results__option--selectable{cursor:pointer}

/* Esforço Negocial — restaurar destaque das linhas Total selecionado por gerente. */
.op-performance .pf-effort-table tbody tr.pf-effort-total,
.op-performance .pf-effort-table tbody tr.pf-effort-total > td {
  background-color: #dcebf7 !important;
  color: #123d59;
  font-weight: 800;
}
.op-performance .pf-effort-table tbody tr.pf-effort-total > td {
  border-top: 2px solid #6c91ad;
  border-bottom: 2px solid #9bb5c8;
}
.op-performance .pf-effort-table tbody tr.pf-effort-total > td:first-child {
  border-left: 4px solid #39739a;
}
