/* Cartões legíveis para os resultados da tabela de treinamentos em celular. */
@media(max-width:760px){
  .priority .p-table table,
  .priority .p-table tbody{display:block;width:100%;min-width:0}
  .priority .p-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;width:100%;box-sizing:border-box}
  .priority .p-table tbody tr td{display:block;grid-column:auto;width:100%!important;min-width:0;box-sizing:border-box;padding:0;border:0;font-size:.94rem;line-height:1.5;white-space:normal;overflow-wrap:break-word;word-break:normal;hyphens:none}
  .priority .p-table tbody tr td:nth-child(1),
  .priority .p-table tbody tr td:nth-child(4),
  .priority .p-table tbody tr td:nth-child(5){grid-column:1/-1}
  .priority .p-table tbody tr td::before{display:block;margin:0 0 4px;font-size:.78rem;line-height:1.35;font-weight:700;white-space:normal;overflow-wrap:normal;word-break:normal}
  .priority .p-table tbody tr td:first-child{font-size:1rem;line-height:1.4}
  .priority .p-table .manager-name-tag{display:inline-block;width:auto;max-width:100%;font-size:.92rem;line-height:1.45;white-space:normal;overflow-wrap:break-word;word-break:normal}
  .priority .p-table .p-badge{display:inline-block;max-width:100%;font-size:.9rem;line-height:1.4;white-space:normal;overflow-wrap:normal;word-break:normal}
}

/* Faixa do supervisor: rótulo e nome na mesma linha, em uma barra larga no cartão. */
.supervisor-name-row{display:flex;align-items:center;gap:8px;width:100%;min-width:0;box-sizing:border-box;margin:7px 0;padding:9px 12px;text-align:left;border:1px solid #2d6f99;border-bottom:3px solid #35a9c7;border-radius:6px;background:#124e78;color:#f1fbff}
.supervisor-name-label{display:block;flex:0 0 auto;color:#d9f5fb!important;font-size:.76rem;font-weight:750;line-height:1.35;text-transform:uppercase;white-space:nowrap}
.supervisor-name-label::after{content:":"}
.supervisor-name-row>.manager-name-tag,.supervisor-name-row>#manager-name{display:inline-block!important;flex:1 1 auto;width:auto;min-width:0;max-width:none;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#f1fbff!important;font-size:.88rem;font-weight:650;line-height:1.4;letter-spacing:0;text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:normal;cursor:default}
.priority .p-table td .manager-name-tag{font-size:.82rem;line-height:1.45}
.priority .p-table .supervisor-cell,.classes-panel .class-table .supervisor-cell{min-width:0}
.manager-access-heading{align-items:center}
.manager-access-heading .supervisor-name-row{flex:1 1 100%}
.enrollment-open{align-items:stretch;flex-direction:column}
.enrollment-open .supervisor-name-row{width:100%}
.enrollment-open .supervisor-name-label{color:#687b8e!important}
.enrollment-open .manager-name-tag{color:#f1fbff!important;font-size:.86rem!important}
.enrollment-open-status{align-self:flex-end}
.heading .supervisor-name-row{max-width:none}
.heading #manager-name{font-size:.95rem}
#team-results>.supervisor-name-row{margin:0 0 14px;font-size:1rem}
.supervisor-search-result{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left}
.supervisor-search-result .supervisor-name-row{margin:0}
.supervisor-search-result .supervisor-name-label{color:#687b8e}
.supervisor-search-result .manager-name-tag{background:#124e78!important;color:#f1fbff!important}
.supervisor-search-result small{font-size:.78rem;line-height:1.4}
.class-recipient>.supervisor-name-row{font-size:.95rem}
.report-supervisor-option .supervisor-name-row,.report-supervisor-option .report-supervisor-meta{grid-column:2;min-width:0}
.report-supervisor-option .report-supervisor-meta{font-size:.82rem;line-height:1.5;overflow-wrap:anywhere}
.report-send-result .supervisor-name-row{margin:7px 0}
.report-history-row{padding:10px 0;border-bottom:1px solid #e1eaf0}
.report-history-row>p{margin:5px 0 0;font-size:.84rem;line-height:1.5;overflow-wrap:anywhere}
#report-recipients .supervisor-name-row{margin:0}
#manager-employees .employee-details .manager-detail-info{display:grid;gap:6px;min-width:0}
#manager-employees .employee-details .manager-detail-info p{margin:0;line-height:1.5}
@media(max-width:760px){
  .priority .p-table td.supervisor-cell::before,.classes-panel .class-table td.supervisor-cell::before{display:none!important}
  .priority .p-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:11px 13px}
  .priority .p-table td:nth-child(4){grid-column:1/-1}
  .priority .p-table td:nth-child(5){grid-column:1/-1}
  .priority .p-table td.supervisor-cell .supervisor-name-row{gap:8px;margin:0}
  .priority .p-table td.supervisor-cell .supervisor-name-label{font-size:.73rem}
  .priority .p-table td.supervisor-cell .manager-name-tag{padding:7px 9px!important;font-size:.82rem}
  .classes-panel .class-table td.supervisor-cell .supervisor-name-row{gap:8px;margin:0}
  .manager-access-heading{align-items:flex-start}
  .manager-access-heading .supervisor-name-row{flex-basis:100%}
  .manager-access-status{margin-left:auto}
  .enrollment-open .supervisor-name-row{gap:8px}
  .enrollment-open-status{align-self:flex-start}
}
@media(min-width:761px){
  .priority .p-table td.supervisor-cell .supervisor-name-row,
  .classes-panel .class-table td.supervisor-cell .supervisor-name-row{padding:8px 9px}
}

/* Cartões de busca por supervisor: cabeçalho azul único e nome em linha. */
.priority .supervisor-search-result{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0!important;overflow:hidden;text-align:left}
.priority .supervisor-search-result::before{display:none!important;content:none!important}
.priority .supervisor-search-result .supervisor-card-header{display:flex;align-items:center;gap:5px;min-width:0;width:100%;box-sizing:border-box;padding:10px 12px;background:#124e78;color:#fff;border-bottom:3px solid #39b7ca;white-space:nowrap}
.priority .supervisor-search-result .supervisor-card-label{flex:0 0 auto;color:#d8f4fb;font-size:.68rem;font-weight:650;line-height:1.2}
.priority .supervisor-search-result .supervisor-card-header strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:clamp(.64rem,.78vw,.76rem);font-weight:700;letter-spacing:-.02em;line-height:1.2}
.priority .supervisor-search-result small{display:block;padding:9px 13px 0;font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}
.priority .supervisor-search-result small:last-child{padding-top:5px;padding-bottom:13px}
@media(max-width:760px){.priority .supervisor-search-result .supervisor-card-header{padding:10px 11px}.priority .supervisor-search-result .supervisor-card-label{font-size:.65rem}.priority .supervisor-search-result .supervisor-card-header strong{font-size:.68rem}.priority .supervisor-search-result small{padding-left:12px;padding-right:12px;font-size:.7rem}}

/* Nomes de supervisores: uma linha no desktop; o cartão móvel mantém quebra natural. */
.priority .p-bar[data-chart-field="manager"] span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;line-height:1.4}
@media(min-width:761px){
  .priority .p-table th:nth-child(1),.priority .p-table td:nth-child(1){width:16%}
  .priority .p-table th:nth-child(2),.priority .p-table td:nth-child(2){width:8%}
  .priority .p-table th:nth-child(3),.priority .p-table td:nth-child(3){width:16%}
  .priority .p-table th:nth-child(4),.priority .p-table td:nth-child(4){width:22%}
  .priority .p-table th:nth-child(5),.priority .p-table td:nth-child(5){width:18%}
  .priority .p-table th:nth-child(6),.priority .p-table td:nth-child(6){width:10%}
  .priority .p-table th:nth-child(7),.priority .p-table td:nth-child(7){width:10%}
  .priority .p-table td.supervisor-cell .supervisor-name-row{display:block;margin:0;padding:7px 9px}
  .priority .p-table td.supervisor-cell .supervisor-name-label{display:none}
  .priority .p-table td.supervisor-cell .manager-name-tag{display:block!important;width:100%!important;padding:0!important;font-size:.82rem!important;line-height:1.4!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
}
