/* Painel de Repasses — complementos ao style.css (carregado depois dele) */

/* topo */
.rp-atualizado { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); margin-left: auto; white-space: nowrap; }
.rp-atualizado b { font-family: var(--mono); color: var(--text); font-weight: 600; }
.rp-recarregar { border: 1px solid var(--border); background: var(--bg2); color: var(--text2); border-radius: 8px; width: 28px; height: 28px;
  cursor: pointer; font-size: 15px; line-height: 1; }
.rp-recarregar:hover { color: var(--blue); border-color: var(--blue-border); }
.conteudo { max-width: 1400px; }

/* filtros do Gargalos */
.rp-filtros { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--rl); padding: 12px 14px; align-items: flex-end; margin-bottom: 14px; }
.rp-filtros > div { flex: 1 1 180px; max-width: 300px; }
.rp-filtros .conc-lbl { font-weight: 600; }
.rp-limpar { flex: none; margin-bottom: 2px; }

/* barras clicáveis */
.rp-hb-lista { display: flex; flex-direction: column; gap: 2px; }
.rp-hb { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 4px 6px; border-radius: 6px; cursor: pointer; font: inherit; color: inherit; }
.rp-hb:hover { background: var(--bg3); }
.rp-hb.sel { background: var(--blue-bg); box-shadow: 0 0 0 1px var(--blue-border) inset; }
.rp-hb .es2-hb { margin-bottom: 0; }
.rp-rolagem { max-height: 360px; overflow-y: auto; padding-right: 4px; }
.rp-card-sub { margin-left: auto; }
.cv-card-h { align-items: center; }
.es2-grid2 > .cv-card { margin-bottom: 0; }
.es2-grid2 { margin-bottom: 14px; }
.rp-tabela-card .dash-table-container { font-family: var(--sans); }
.rp-tabela-card .export, .cv-card .dash-spreadsheet-menu .export, .cv-card button.export { border: 1px solid var(--blue); background: var(--bg2); color: var(--blue); border-radius: 8px; padding: 5px 12px;
  font-weight: 600; font-size: 12px; cursor: pointer; margin-bottom: 8px; }
.rp-tabela-card .dash-cell-value p { margin: 0; }
.rp-tabela-card .dash-cell-value a { color: var(--accent-text); font-weight: 600; font-family: var(--mono); }

/* Consulta de repasse */
.rp-ficha-topo { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.rp-ficha-topo .es2-pill { margin-left: auto; }
.rp-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-bg); color: var(--blue); display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 18px; flex: none; }
.rp-ficha-nome { font-family: var(--serif); font-size: 22px; margin: 0; color: var(--blue); }
.rp-ficha-id { font-size: 12.5px; color: var(--text3); font-family: var(--mono); }
.rp-ficha .cv-mini-v { white-space: normal; font-size: 14px; }
.rp-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-hist-linha { display: grid; grid-template-columns: minmax(0, 1.4fr) 18px minmax(0, 1.4fr) 140px minmax(150px, 1fr) minmax(0, 1.2fr);
  gap: 12px; align-items: start; padding: 10px 12px; border-left: 3px solid var(--border); background: var(--bg); border-radius: 0 var(--r) var(--r) 0; }
.rp-hist-linha.atual { border-left-color: var(--blue); background: var(--blue-bg); }
.rp-hist-c { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.rp-hist-c b, .rp-hist-c > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rp-hist-c small { font-size: 11px; color: var(--text3); margin-top: 1px; }
.rp-hist-seta { color: var(--text3); padding-top: 1px; }
.rp-hist-barra { height: 4px; background: var(--bg3); border-radius: 2px; margin-top: 5px; }
.rp-hist-barra-in { height: 100%; background: var(--blue); border-radius: 2px; min-width: 2px; }
@media (max-width: 1000px) { .rp-hist-linha { grid-template-columns: 1fr 18px 1fr; } .rp-hist-linha > .rp-hist-c:nth-child(n+4) { grid-column: span 3; } }

/* Correspondentes */
.es2-abas .tab-container { border: none; }
.es2-abas .tab { width: auto !important; flex: none !important; }
.rp-fila { display: flex; flex-direction: column; }
.rp-fila > label, .rp-fila .dash-options-list-option { display: grid !important; grid-template-columns: 28px minmax(0, 1fr); align-items: center;
  padding: 10px 14px 10px 12px; margin: 0; border-bottom: 1px solid var(--border); cursor: pointer; gap: 0; color: var(--text);
  background: var(--bg2); width: 100%; box-sizing: border-box; }
.rp-fila > label:last-child, .rp-fila .dash-options-list-option:last-child { border-bottom: 0; }
.rp-fila > label:hover, .rp-fila .dash-options-list-option:hover { background: var(--bg3); }
.rp-fila > label:has(input:checked), .rp-fila .dash-options-list-option:has(input:checked) { background: var(--blue-bg); }
.rp-fila .dash-options-list-option-wrapper { display: flex; align-items: center; }
.rp-fila .dash-options-list-option-text { display: block; min-width: 0; color: inherit; }
.rp-fila-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) 80px 110px minmax(0, 1.4fr); gap: 12px; align-items: center; }
.es2-cab.rp-fila-grid { grid-template-columns: 28px minmax(0, 2.4fr) 80px 110px minmax(0, 1.4fr); }
.es2-cab.rp-fila-grid > div { text-align: right !important; }
.es2-cab.rp-fila-grid > div:nth-child(-n+2) { text-align: left !important; }
.es2-cab.rp-fila-grid { padding-right: 14px; }
.rp-num { text-align: right; }
.rp-fila-st { justify-content: flex-end; margin: 0; }
.rp-env-grid { grid-template-columns: 150px minmax(0, 2fr) 70px minmax(0, 1fr) !important; }
.es2-cab.rp-env-grid > div:nth-child(3), .es2-cab.rp-env-grid > div:nth-child(4) { text-align: right; }
.rp-btn-linha { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--bg2); border-top: 0; border-right: 0; }
.rp-check { font-size: 13px; color: var(--text2); }
.rp-check label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rp-radio { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rp-radio.inline, .rp-linha .rp-radio { flex-direction: row; gap: 16px; }
.rp-radio-item { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.rp-ids { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-chip-id { font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--bg3); color: var(--accent-text); }
.rp-chip-id:hover { background: var(--blue-bg); }
.rp-msg-lista { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.es2-ficha .rel-acoes2 { margin-top: 8px; }
.es2-ficha .adm-msg { margin: 10px 0 0; }
.port-tabela td.num, .port-tabela th { text-align: right; }
.port-tabela th:first-child { text-align: left; }

/* Configurações */
.rp-int-acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.rp-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rp-linha .cv-input { flex: 1; }
.int-card { padding: 20px 22px; }
.int-campos .cv-input { min-width: 0; }

/* Login */
.rp-login { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.rp-login-box { width: min(440px, 100%); background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px 30px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 50px -42px rgba(21,32,26,.4); }
.rp-login-tit { font-family: var(--serif); font-size: 26px; margin: 0; color: var(--ink); }
.rp-login-campos { gap: 6px; }
.rp-login-campos label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.rp-login-btn { margin-top: 10px; padding: 12px; font-size: 15px; }

/* KPIs: nada vaza do card (valores longos quebram linha; números encolhem) */
.es2-kpi { min-width: 0; }  /* sem overflow:hidden: cortava o balão do ⓘ */
.es2-kpi-v { overflow: hidden; text-overflow: ellipsis; font-size: clamp(17px, 1.6vw, 22px); }
.es2-kpi-v.rp-kpi-txt { white-space: normal; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.25; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.es2-kpi-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* barras e cards */
.cv-card { min-width: 0; }  /* sem overflow:hidden: cortava o balão do ⓘ; quem limita é o conteúdo */
.es2-hb > div:first-child { min-width: 0; }
.es2-hb-n { min-width: 0; flex: 1; }
.cv-card-h { flex-wrap: wrap; min-width: 0; }
.cv-card-t { min-width: 0; overflow-wrap: anywhere; }
.rp-card-sub { white-space: nowrap; }
.es2-ficha, .es2-lista { min-width: 0; }
.es2-par b { overflow-wrap: anywhere; min-width: 0; }
.cv-mini-v { overflow-wrap: anywhere; }
.man-titulo, .man-texto { overflow-wrap: anywhere; }

/* Balão do ⓘ: fica por cima de tudo e não é cortado pelos cards */
.info { z-index: 5; }
.info:hover, .info:focus { z-index: 60; }
.info::after { z-index: 60; }
.rp-tabela-card .dash-table-container { max-width: 100%; }
.es2-hb-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Troca de senha obrigatória */
.rp-troca .rp-login-box { width: min(480px, 100%); }

/* Correspondentes · clientes da cobrança */
.rp-clientes { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; border: 1px solid var(--border);
  border-radius: var(--r); background: var(--bg); }
.rp-clientes > label, .rp-clientes .dash-options-list-option { display: grid !important; grid-template-columns: 24px minmax(0, 1fr);
  align-items: center; padding: 6px 8px; margin: 0; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 12.5px; }
.rp-clientes > label:last-child, .rp-clientes .dash-options-list-option:last-child { border-bottom: 0; }
.rp-clientes > label:not(:has(input:checked)), .rp-clientes .dash-options-list-option:not(:has(input:checked)) { opacity: .55; }
.rp-clientes > label:not(:has(input:checked)) b, .rp-clientes .dash-options-list-option:not(:has(input:checked)) b { text-decoration: line-through; }
.rp-clientes .dash-options-list-option-text { display: block; min-width: 0; }
.rp-cli { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rp-cli-n { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rp-cli-n b, .rp-cli-n small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-cli-n b { font-weight: 600; }
.rp-cli-n small { color: var(--text3); font-size: 11px; }
.rp-cli-d { font-size: 11.5px; white-space: nowrap; }
.rp-cli-o { font-size: 10px; padding: 1px 7px; }
.rp-excluidos { font-size: 12.5px; margin-top: 4px; }
.rp-excluidos summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.rp-exc { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.rp-exc > div { display: flex; flex-direction: column; min-width: 0; }
.rp-exc small { color: var(--text3); font-size: 11px; }
.es2-pill.blue-pill { background: var(--blue); color: #fff; font-weight: 600; }

/* Concluídos */
.rp-cols { height: 210px; gap: 6px; padding-top: 22px; }
.rp-cols .es2-col { cursor: default; }
.rp-cols .es2-col-b { max-width: 40px; }
.rp-cols .es2-col-m { white-space: nowrap; }
.rp-col-qtd { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.c-green { color: var(--green) !important; }
.rp-check label, .rp-check .dash-options-list-option-text { color: var(--text2) !important; }
.cv-input:focus { outline: 2px solid var(--accent-text); outline-offset: 0; border-color: var(--accent-text); }
.rp-col-btn { background: none; border: 0; padding: 0 2px; font: inherit; color: inherit; cursor: pointer; border-radius: 6px; }
.rp-col-btn:hover { background: var(--bg3); }
.rp-col-btn:hover .es2-col-b { background: var(--blue-border); filter: brightness(.9); }
.rp-col-btn.sel { background: var(--blue-bg); box-shadow: 0 0 0 1px var(--blue-border) inset; }
.rp-col-btn.sel .es2-col-m { color: var(--blue); font-weight: 700; }
#cl-aviso .cv-alerta { font-weight: 500; line-height: 1.5; }

/* Concluídos · etapas consideradas */
.rp-etapas-seg { padding: 14px 18px; }
.rp-etapas-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-etapas-chips > label, .rp-etapas-chips .dash-options-list-option { padding: 0; margin: 0; background: none; cursor: pointer; width: auto; }
.rp-etapas-chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.rp-etapas-chips .dash-options-list-option-wrapper { position: absolute; opacity: 0; width: 0; height: 0; overflow: hidden; }
.rp-etapas-chips .rc-chip { text-decoration: line-through; opacity: .7; }
.rp-etapas-chips > label:has(input:checked) .rc-chip, .rp-etapas-chips .dash-options-list-option:has(input:checked) .rc-chip {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; text-decoration: none; opacity: 1; }
.rp-etapas-seg .rp-card-sub { white-space: normal; text-align: right; max-width: 60%; }
.rp-chips-filtro { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

/* ---------- Telas largas: o conteúdo acompanha a largura da janela ---------- */
.topo-in { max-width: none; padding-left: clamp(16px, 2.5vw, 48px); padding-right: clamp(16px, 2.5vw, 48px); }
.conteudo { max-width: none; padding: 28px clamp(16px, 2.5vw, 48px) 48px; }
.rp-filtros > div { flex: 1 1 200px; max-width: none; }
.rp-filtros > .rp-limpar, .rp-filtros > #cl-mes-chip { flex: 0 0 auto; }
.man-txt { max-width: 1200px; }
@media (min-width: 1700px) {
  .rp-rolagem { max-height: 460px; }
  .es2-grid2 { gap: 18px; }
}
@media (max-width: 1000px) { .es2-grid2 { grid-template-columns: 1fr !important; } }

/* Concluídos · gráfico mês a mês */
.rp-cols { justify-content: space-around; }
.rp-cols .es2-col { max-width: 110px; }
.rp-col-legenda { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--text2); margin: -4px 0 6px; }
.rp-col-legenda b { color: var(--text); font-weight: 600; margin-right: 4px; }
.rp-leg-barra { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--blue-border); margin-right: 6px; vertical-align: -1px; }
.rp-col-qtd { white-space: nowrap; }

/* Relatórios por e-mail */
.rl-tipos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel-c .rel-previa { min-height: 640px; }
.rel-c .rel-form .cv-input { font-size: 13px; }
@media (max-width: 900px) { .rl-tipos { grid-template-columns: 1fr; } }

/* Observação do repasse (Consulta) */
.rp-obs-texto{width:100%;min-height:90px;resize:vertical;font-family:inherit;font-size:13px;line-height:1.45;padding:10px 12px;box-sizing:border-box}
.rp-obs-rodape{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap}
.rp-obs .cv-alerta{margin-top:10px}

/* Base CAIXA */
.rp-upload{border:1.5px dashed var(--border);border-radius:var(--r);padding:22px;text-align:center;cursor:pointer;color:var(--text2);font-size:13px;background:var(--bg2,#fafbfc);margin-top:8px}
.rp-upload:hover{border-color:#1B365D;color:#1B365D}
.rp-caixa-nota{margin:10px 0}
#cx-de-para .Select-menu-outer{z-index:50}

/* Erro numa ação (assets/carregando.js) */
#cv-erro-acao{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(20px);opacity:0;pointer-events:none;
  background:var(--red-bg,#fdecea);color:var(--red,#b42318);border:1px solid var(--red-border,#f3c2bd);border-radius:10px;
  padding:10px 16px;font-size:13px;font-weight:600;box-shadow:0 6px 20px rgba(0,0,0,.12);transition:.2s;z-index:10001}
#cv-erro-acao.visivel{opacity:1;transform:translateX(-50%);pointer-events:auto}
#cv-erro-acao button{background:none;border:0;color:inherit;text-decoration:underline;font:inherit;cursor:pointer;padding:0}
