/* Resumo dos grupos: métricas alinhadas, sem rolagem interna. */
.gh-card{container-type:inline-size;--gh-in:#51ceae;--gh-out:#f7869a}
html.claro .gh-card{--gh-in:#168354;--gh-out:#ce4054}
.gh-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.gh-card h2{font-size:15px;letter-spacing:-.25px}
.gh-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--card2);color:var(--azul);flex-shrink:0}
.gh-icon svg{width:17px;height:17px}
.gh-card .gh-subtitle{font-size:11px;color:var(--cinza);margin-top:5px}
.gh-days{display:flex;flex-shrink:0;gap:2px;padding:3px;background:var(--card2);border:1px solid var(--linha);border-radius:9px}
.gh-days button{font:500 11px Poppins,sans-serif;border:0;border-radius:6px;background:transparent;color:var(--cinza);padding:6px 11px;cursor:pointer}
.gh-days button[aria-pressed=true]{background:var(--card);color:var(--tinta);box-shadow:0 1px 4px #00000010}
.gh-days button:focus-visible,.gh-link:focus-visible{outline:2px solid var(--azul);outline-offset:3px}
.gh-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:17px 0 19px;background:var(--card2);border-radius:12px;margin-bottom:10px}
.gh-total{padding:0 20px;min-width:0}
.gh-total+.gh-total{border-left:1px solid var(--linha)}
.gh-total dt{font-size:11px;color:var(--cinza);margin-bottom:5px;display:flex;align-items:center;gap:6px}
.gh-total dd{font-size:28px;letter-spacing:-.8px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.35}
.gh-in{color:var(--gh-in)}.gh-out{color:var(--gh-out)}.gh-neutral{color:var(--tinta)}
.gh-table{width:100%;border-collapse:collapse;table-layout:fixed}
.gh-table thead th{font-size:10px;font-weight:500;color:var(--cinza);padding:0 10px 10px;text-align:right}
.gh-table thead th:first-child{width:26%;text-align:left;padding-left:0}
.gh-table thead th:nth-child(3){width:18%}
.gh-retention,.gh-metric-note{font-size:10px;line-height:1.5;color:var(--cinza);margin-top:4px}
.gh-retention{color:var(--gh-in)}
.gh-row-retention{display:block;color:var(--cinza);font-size:9px;font-weight:400;margin-top:3px;white-space:normal}
.gh-cohort-info{font-size:10px;line-height:1.7;color:var(--cinza);margin:0 0 18px}
.gh-cohort-info summary{cursor:pointer;width:fit-content;max-width:100%}
.gh-cohort-info summary:focus-visible{outline:2px solid var(--azul);outline-offset:3px}
.gh-cohort-info p{max-width:95ch;margin-top:8px}
@container(max-width:650px){
  .gh-totals{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}
  .gh-total:nth-child(3){border-left:0}
  .gh-total:nth-child(n+3){padding-top:12px;border-top:1px solid var(--linha)}
}
.gh-table tbody th,.gh-table td{padding:11px 10px;border-top:1px solid var(--linha);font-variant-numeric:tabular-nums}
.gh-table tbody th{font-size:11.5px;font-weight:500;text-align:left;padding-left:0}
.gh-table td{font-size:12px;text-align:right;white-space:nowrap}
.gh-table td:last-child,.gh-table thead th:last-child{padding-right:0}
.gh-table td:nth-child(5),.gh-table td:last-child{font-weight:700}
.gh-company{display:flex;align-items:center;gap:9px;min-width:0}
.gh-company-name{overflow-wrap:anywhere;line-height:1.4}
.gh-avatar{width:24px;height:24px;flex-shrink:0;border-radius:7px;overflow:hidden;display:grid;place-items:center;background:var(--card2);color:var(--cinza);font-size:8px;letter-spacing:.1px;font-weight:700}
.gh-avatar img{width:100%;height:100%;object-fit:cover}
.gh-cell-label{display:none}
.gh-placeholder{padding:24px 10px;text-align:center;font-size:11px;color:var(--cinza)}
.gh-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--linha);padding-top:14px;margin-top:4px}
.gh-status{font-size:10px;color:var(--cinza);display:flex;align-items:center;gap:6px;min-width:0}
.gh-status::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--cinza2);flex-shrink:0}
.gh-status[data-state=ok]::before{background:var(--gh-in)}
.gh-status[data-state=warning]::before{background:var(--dourado)}
.gh-link{font:500 11px Poppins,sans-serif;color:var(--azul);text-decoration:none;white-space:nowrap;display:flex;align-items:center;gap:7px}
html:not(.claro) .gh-link,html:not(.claro) .gh-icon{color:#a7b8ff}
.gh-link:hover{text-decoration:underline;text-underline-offset:3px}
.gh-notice{font-size:10px;color:var(--cinza);margin-top:10px;line-height:1.7}
.gh-card[data-loading=true] .gh-totals,.gh-card[data-loading=true] .gh-table{opacity:.5}
@container(max-width:480px){
  .gh-head{gap:10px;flex-wrap:wrap;margin-bottom:16px}
  .gh-card h2{font-size:14px}
  .gh-total{padding:0 12px}
  .gh-total dd{font-size:23px;letter-spacing:-.5px}
  .gh-total dt{font-size:10px}
  .gh-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .gh-table tbody{display:block}
  .gh-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0;border-top:1px solid var(--linha)}
  .gh-table tbody th{grid-column:1/-1;border:0;padding:0 0 9px;font-size:12px}
  .gh-table td{border:0;padding:0 8px 0 0;text-align:left;font-size:13px}
  .gh-cell-label{display:block;color:var(--cinza);font-size:9px;font-weight:400;margin-bottom:2px}
  .gh-footer{align-items:flex-start;gap:10px;flex-wrap:wrap}
}

.gh-sort{display:inline-flex;align-items:center;justify-content:flex-end;gap:5px;padding:6px 0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:right}.gh-sort:hover,.gh-table th[aria-sort="ascending"] .gh-sort,.gh-table th[aria-sort="descending"] .gh-sort{color:var(--tinta)}.gh-sort:focus-visible{outline:2px solid var(--azul);outline-offset:3px;border-radius:3px}.gh-sort span{font-size:13px;min-width:12px;flex-shrink:0}
@container(max-width:480px){.gh-table thead{position:static;width:auto;height:auto;overflow:visible;clip-path:none;display:block;margin-bottom:10px}.gh-table thead tr{display:flex;flex-wrap:wrap;gap:5px}.gh-table thead th,.gh-table thead th:nth-child(3){width:auto;padding:0}.gh-table thead th:first-child{display:none}.gh-table thead .gh-sort{padding:5px 7px;border:1px solid var(--linha);border-radius:6px;background:var(--card2);font-size:9px;text-align:left}}
