#tb-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
.tb-charts {
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:var(--cb-gap);
  margin:var(--cb-gap) 0;
}
.tb-charts .cb-card {cursor:default}
.tb-tools {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;margin-bottom:5px}
.tb-tools input,.tb-tools select {
  width:100%;min-width:0;border:1px solid #bdcce2;border-radius:8px;background:#ffffffd1;
  color:#213c63;font:inherit;font-size:12px;min-height:30px;padding:3px 8px;
}
#tb-ranking {flex:1 1 130px;min-height:108px}
#tb-ranking th:first-child {width:62%}
#tb-ranking tbody td {font-variant-numeric:tabular-nums}
#tb-ranking tbody td:last-child {color:#214391}
#tb-ranking .bp-person-btn {padding-block:3px!important}
#tb-ranking .bp-bar {height:4px}
#tb-ranking .bp-w0 {background:#829cd4}
#tb-ranking .bp-w1 {background:#304fa2}
#tb-sdr {display:flex;flex:1;flex-direction:column;justify-content:space-evenly;gap:6px}
.tb-sdr-row {font:inherit;color:inherit;background:none;border:0;text-align:left;width:100%;padding:2px 3px;border-radius:5px}
.tb-sdr-row:hover {background:#e4edf9}
.tb-name {display:flex;align-items:baseline;justify-content:space-between;gap:3px;font-size:14px;font-weight:650}
.tb-sdr-row small,.tb-key {color:#4c5d79;font-size:11px;font-weight:500}
.tb-key {display:flex;gap:12px;flex-wrap:wrap}
.tb-key span::before {display:inline-block;content:'';width:8px;height:8px;margin-right:5px;background:#365ca9;border-radius:50%}
.tb-key span+span::before {background:#8b5aa0}
.tb-stack {display:flex;overflow:hidden;margin:4px 0 1px;height:7px;background:#e4e9f3;border-radius:99px}
.tb-stack i:first-child {background:#365ca9}
.tb-stack i+i {background:#8b5aa0}
.tb-name strong {font-variant-numeric:tabular-nums}
#tm-body h3 {font-size:17px;margin:15px 0 6px}
#tm-body .scroll {margin:5px 0 15px}
#tm-body .footnote {margin:9px 0}
#tm-controls .member-tabs {margin:2px 0 8px}
#tm-body .briefgrid {margin-bottom:7px}
#tm-body table {font-variant-numeric:tabular-nums}
#team-board .cb-kpi,#team-board .cb-insight {cursor:pointer}
@media(min-width:1000px){
  .tb-charts {min-height:clamp(205px,29vh,300px)}
  #tb-sdr {gap:3px}
}
@media(max-width:999px){
  #tb-switch {display:flex}
  .tb-charts {grid-template-columns:minmax(0,1fr);margin:6px 0}
  .tb-charts[data-selected=rank]>:not([data-team-panel=rank]),
  .tb-charts[data-selected=sdr]>:not([data-team-panel=sdr]) {display:none}
  #tb-ranking {height:clamp(109px,20vh,168px);flex:none;min-height:0}
  #tb-sdr {gap:5px}
}
@media(max-width:740px){
  .tb-charts .cb-card {padding:9px 12px}
  #team-board .cb-kpi-label {font-size:12px}
  #tb-compare {margin-bottom:3px}
  #tb-insights {overflow-wrap:anywhere}
  .tb-tools input,.tb-tools select {font-size:14px}
  #tm-controls select {font-size:16px}
  #tm-body .scroll {max-width:100%;overflow-x:auto}
  #tm-body th,#tm-body td {font-size:12px;padding:7px}
  #tb-ranking {height:clamp(96px,12.7vh,115px)}
  #team-board .cb-kpi {padding:5px 9px}
  #team-board .cb-kpi-value {font-size:26px;line-height:1.06}
  #team-board .cb-kpi-hint {line-height:1.2}
  #tb-insights .cb-insight {font-size:12px}
  #team-board .cb-insights {padding-block:7px}
  #tb-sdr .tb-sdr-row {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:0 8px;padding-block:2px}
  #tb-sdr .tb-name {grid-column:1/-1}
  #tb-sdr small {font-size:11px;text-align:right}
  #tb-sdr {gap:1px}
  #tb-sdr .tb-stack {height:5px;margin:2px 0}
}
@media(min-width:1000px) and (max-height:750px){
  .tb-charts .cb-card-head{margin-bottom:4px}
  #team-board .cb-insights{padding-block:6px}
}
#tb-kpis .cb-kpi {justify-content:space-between;gap:6px}
#tb-kpis .cb-kpi-label {line-height:1.18;min-height:2.36em}
.tb-periods {display:flex;align-items:start;width:100%;gap:10px}
.tb-week-cell {display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start}
.tb-week-cell+.tb-week-cell {border-left:1px solid #d7dfee;padding-left:10px}
.tb-period-name {font-weight:650;font-size:12px}
.tb-week-cell small {font-size:11px;line-height:1.15;color:#4e607b}
#tb-kpis .cb-kpi-value {font-size:clamp(24px,2.2vw,38px);line-height:1;font-variant-numeric:tabular-nums;margin:4px 0 2px}
.tb-card-foot {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:2px 6px;width:100%;font-size:11px;color:#4e607b;border-top:1px solid #dbe2ee;padding-top:4px}
.tb-card-foot span:last-child {color:#23469a;font-weight:620}
@media(max-width:740px) {
  #tb-kpis .cb-kpi {gap:3px}
  .tb-periods {gap:4px}
  .tb-week-cell+.tb-week-cell {padding-left:5px}
  .tb-period-name,.tb-week-cell small,.tb-card-foot {font-size:10px}
  #tb-kpis .cb-kpi-value {font-size:21px;margin:2px 0}
  .tb-card-foot {padding-top:2px;line-height:1.15}
}
.tb-mobile-weeks {display:none}
#tb-kpis .cb-kpi {justify-content:flex-start}
.tb-card-foot {margin-top:auto}
@media(min-width:741px) and (max-height:800px) {
  #tb-kpis .cb-kpi {gap:3px;padding:7px 9px}
  #tb-kpis .cb-kpi-label {font-size:13px}
  #tb-kpis .tb-period-name,.tb-week-cell small {line-height:1.05}
  #tb-kpis .tb-card-foot {line-height:1.05;gap:1px 4px;padding-top:3px;font-size:10px}
  #tb-kpis .tb-week-cell {letter-spacing:-.02em}
  #tb-kpis .cb-kpi-value {font-size:25px}
  #team-board .tb-charts {margin:6px 0}
  #team-board .tb-charts .cb-card {padding-block:6px}
  #team-board .tb-charts .cb-card-head {margin-bottom:3px}
}
@media(max-width:740px) {
  #tb-kpis {display:flex;flex-direction:column;gap:3px}
  #tb-kpis .cb-kpi,.tb-mobile-weeks {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:0 6px;align-items:center}
  #tb-kpis .cb-kpi {padding:4px 10px}
  #tb-kpis .cb-kpi-label {grid-area:1 / 1;align-self:end;min-height:0;padding:0;font-size:12px}
  #tb-kpis .cb-kpi-icon {display:none}
  #tb-kpis .tb-card-foot {grid-area:2 / 1;margin:0;padding:1px 0 0;border:0;line-height:1.15;justify-content:flex-start}
  #tb-kpis .tb-card-foot span+span {font-size:0}
  #tb-kpis .tb-card-foot span+span::after {content:'↗';font-size:11px}
  #tb-kpis .tb-periods {grid-area:1 / 2 / span 2;align-self:center}
  #tb-kpis .tb-week-cell {position:relative}
  #tb-kpis .tb-period-name,#tb-kpis .tb-week-cell small:first-of-type {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
  #tb-kpis .cb-kpi-value {font-size:20px}
  .tb-mobile-weeks {font-size:11px;color:#35486a;padding:1px 11px;line-height:1.15}
  .tb-mobile-weeks>span {display:flex;gap:4px}
  .tb-mobile-weeks>span>span {display:flex;flex:1;flex-direction:column}
  .tb-mobile-weeks>span>span+span {padding-left:5px}
  .tb-mobile-weeks small {font-size:10px}
}
@media(min-width:1000px) and (max-height:750px) {
  body[data-area=equipe][data-subject=painel] .pagehead {margin-bottom:6px}
}
@media(max-width:740px) {
  #tb-compare {position:absolute;right:0;bottom:calc(100% + 40px);margin:0;font-size:11px;padding:3px 8px;gap:5px}
  #team-board .tb-mobile-weeks {background:#f7f9ffea;border-radius:9px}
  #tb-ranking th:first-child {width:52%}
  #tb-ranking thead th {padding-inline:2px;white-space:normal}
  #tb-ranking {height:clamp(80px,10vh,100px)}
}
@media(max-width:359px) {
  #tb-compare {position:static;margin-bottom:4px}
}
@media(max-width:740px) {
  #tb-sdr .tb-name {line-height:1.14}
  #tb-sdr .tb-sdr-row {padding-block:1px}
}
@media(min-width:1000px) and (max-height:750px) {
  #tb-sdr .tb-sdr-row {line-height:1.12;padding-block:1px}
  #tb-sdr .tb-name {line-height:1.2}
}
@media(max-width:740px) {
  #team-board .cb-insights {padding-block:5px}
  #team-board .tb-charts {margin-block:5px}
}

#tm-body .tb-distribution {width:100%;min-width:0}
#tm-body .tb-distribution thead th {text-align:center;white-space:normal}
#tm-body .tb-distribution tr>:first-child[scope=row],
#tm-body .tb-distribution thead th[rowspan] {text-align:left}
#tm-body .tb-distribution td {text-align:center;font-variant-numeric:tabular-nums}
#tm-body .tb-distribution thead tr:first-child th[colspan],
#tm-body .tb-distribution thead tr:nth-child(2) th:nth-child(odd),
#tm-body .tb-distribution tbody td:nth-child(even) {border-left:1px solid #dbe3ef}
@media(max-width:740px){
  #tm-body .tb-distribution :is(th,td) {padding:6px 3px;font-size:11px}
}

#team-board #tb-insights {grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:380px) {
  #tm-body .tb-distribution {table-layout:fixed}
  #tm-body .tb-distribution thead th[rowspan] {width:28%}
  #tm-body .tb-distribution :is(th,td) {overflow-wrap:anywhere;padding-inline:2px}
}
