/* Controles e organização da lista adaptados da Central de Relatórios. */
.mobile-navigation { display: none; }
.select-trigger,input,select { border-color: #dbe3ed; border-radius: 8px; color: #3e5270; }
.select-trigger:hover:not(:disabled),input:hover,select:hover { border-color: #acbfd8; }
.select-trigger:focus-visible,input:focus-visible,select:focus-visible { outline: 2px solid #adc6ed; outline-offset: 2px; }
.select-portal { position: fixed; right: auto; margin: 0; min-width: 0; z-index: 100; border-color: #dbe3ed; border-radius: 10px; box-shadow: 0 10px 30px #1d385423; }
.select-portal .select-options { max-height: min(230px,40dvh); }
.select-options button[aria-selected=true] { background: #edf3fc; color: #2b5692; }
.admin-toolbar { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #e6ebf2; }
.admin-toolbar .toolbar-field { flex: 1; max-width: 440px; }
.admin-toolbar input,.admin-toolbar select { height: 40px; }
.row-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.row-tools button { min-height: 30px; font-size: 11px; padding: 4px 8px; }
.team-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.team-shell .app-content { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
main.team-workspace { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; max-width: none; padding: 20px 24px; overflow: hidden; }
.team-workspace .page-head { flex: none; margin: 0; }
.team-workspace h1 { font-size: 22px; line-height: 28px; margin: 0; }
.compact-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); flex: none; gap: 10px; margin: 0; max-width: 760px; }
.compact-stats .stat { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; min-height: 54px; border-radius: 8px; }
.compact-stats .stat-label { align-items: center; flex: 1; min-height: 0; font-size: 12px; line-height: 16px; }
.compact-stats .stat-label .ui-icon,.compact-stats .stat small { display: none; }
.compact-stats .stat strong { font-size: 24px; line-height: 30px; margin: 0; }
.team-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; overflow: hidden; }
.team-panel .team-toolbar { grid-template-columns: minmax(160px,1fr) minmax(160px,240px) minmax(170px,220px); flex: none; gap: 12px; padding: 12px 16px; }
.team-panel .team-toolbar .toolbar-field:first-child { grid-column: auto; }
.team-toolbar input,.team-toolbar select,.team-toolbar .select-trigger { height: 36px; min-height: 36px; font-size: 12px; }
.team-panel .filter-summary { flex: none; padding: 5px 16px; }
.matrix-context { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 4px 16px; font-size: 11px; color: #65758c; border-bottom: 1px solid #e6ebf2; }
.criteria-pages { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.criteria-pages button { min-height: 24px; height: 24px; width: 26px; padding: 0; font-size: 17px; }
.team-panel .table-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.team-matrix { min-width: 0; width: 100%; table-layout: fixed; }
.team-matrix .person-column { width: 29%; }
.team-matrix .cycle-column { width: 120px; }
.team-matrix .action-column { width: 82px; }
.team-matrix th { height: 48px; padding: 6px; overflow-wrap: anywhere; line-height: 14px; position: sticky; top: 0; z-index: 3; }
.team-matrix .header-score { min-width: 0; width: auto; font-size: 10px; }
.team-matrix td { height: 56px; padding: 6px; line-height: 14px; }
.team-matrix th:first-child,.team-matrix td:first-child { position: static; padding-left: 16px; box-shadow: none; }
.team-matrix th:first-child { position: sticky; top: 0; }
.team-matrix .person-cell { min-width: 0; gap: 2px; }
.team-matrix .person-name { max-width: 100%; width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-matrix .person-cell small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-matrix .matrix-action-cell { position: static; box-shadow: none; padding-right: 12px; }
.team-matrix th.matrix-action-cell { position: sticky; top: 0; }
.team-matrix .subtle { font-size: 10px; margin: 0; line-height: 13px; }
.team-matrix .badge { padding: 2px 5px; line-height: 13px; }
.team-matrix .deadline-overdue { font-size: 9px; line-height: 11px; }
.team-matrix .score { width: 26px; height: 26px; }
.team-pagination { flex: none; min-height: 50px; padding: 8px 16px; gap: 8px; background: white; border-top: 1px solid #e6ebf2; }
.team-pagination .actions { gap: 5px; flex-wrap: nowrap; }
.team-pagination button { min-width: 30px; height: 30px; padding: 0 7px; font-size: 17px; }
.page-total,.page-jump { white-space: nowrap; }
.page-jump { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.page-jump input { width: 48px; height: 30px; min-height: 30px; text-align: center; padding: 3px; font-size: 12px; }
@media (max-width:900px) {
  .mobile-navigation { display: flex; flex: none; padding: 8px 14px 0; }
  .mobile-navigation button { height: 32px; min-height: 32px; width: 34px; }
  main.team-workspace { padding: 10px 14px 14px; }
}
@media (max-width:650px) {
  main.team-workspace { gap: 8px; padding: 8px 10px 10px; }
  .team-workspace h1 { font-size: 19px; line-height: 24px; }
  .compact-stats { gap: 6px; }
  .compact-stats .stat { padding: 6px 9px; min-height: 44px; gap: 5px; }
  .compact-stats .stat-label { font-size: 10px; line-height: 12px; }
  .compact-stats .stat strong { font-size: 20px; }
  .team-panel .team-toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 9px 10px; gap: 8px; }
  .team-panel .team-toolbar .toolbar-field:first-child { grid-column: 1 / -1; }
  .team-panel .field-label { font-size: 10px; }
  .matrix-context { padding: 4px 10px; font-size: 10px; }
  .context-extra { display: none; }
  .criteria-pages { gap: 4px; }
  .team-matrix .person-column { width: 38%; }
  .team-matrix .cycle-column { width: 82px; }
  .team-matrix .action-column { width: 64px; }
  .team-matrix th:first-child,.team-matrix td:first-child { padding-left: 10px; }
  .team-matrix .matrix-action-cell { padding-right: 6px; }
  .team-matrix .person-name { font-size: 11px; }
  .team-matrix .person-cell small { font-size: 9px; }
  .team-matrix .row-action { font-size: 10px; padding: 3px 5px; }
  .team-pagination { padding: 7px 8px; }
  .team-pagination .actions { gap: 3px; }
  .team-pagination button { min-width: 24px; padding: 0 4px; }
  .page-jump { gap: 3px; font-size: 10px; }
  .page-jump input { width: 36px; }
}
@media (max-height:600px) and (min-width:651px) {
  main.team-workspace { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .compact-stats .stat { min-height: 40px; padding: 4px 12px; }
}
@media print { .team-shell { height: auto; overflow: visible; } main.team-workspace,.team-panel,.team-panel .table-scroll { display: block; overflow: visible; } .team-pagination,.matrix-context { display: none; } }

/* Histórico: comparação no radar e mapa de notas, sem abrir outra tela. */
.evaluation-select { border:0;background:transparent;padding:0;text-align:left;flex:1;min-width:0;color:inherit;cursor:pointer;border-radius:5px; }
.evaluation-select:hover { background:#f1f5fb; }
.evaluation-select:focus-visible,.evolution-map button:focus-visible { outline:3px solid #3159a4;outline-offset:3px; }
.history-radar-hint { margin:0;padding:0 20px 18px;color:var(--text-muted);font-size:12px;text-align:center; }
.history-comparison .panel-title p { margin:5px 0 0;font-size:12px;color:var(--text-muted); }
.history-visuals { grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); }
.history-visuals .evolution-panel .panel-title { flex-wrap:wrap;gap:12px; }
.history-visuals .evolution-panel .search-select { min-width:190px; }
.evolution-map-scroll { overflow:auto;padding:0 20px 12px; }
.evolution-map { border-collapse:separate;border-spacing:0;width:100%;table-layout:auto; }
.evolution-map th,.evolution-map td { padding:7px 8px;text-align:center;border-bottom:1px solid #e6ebf2;min-width:110px; }
.evolution-map thead th { background:#f7f9fc;vertical-align:top; }
.evolution-map th:first-child { position:sticky;left:0;z-index:1;min-width:175px;text-align:left;background:white;font-size:12px;box-shadow:1px 0 #e1e7f0; }
.evolution-map thead th:first-child { background:#f7f9fc; }
.evolution-column { display:grid;gap:5px;justify-items:center;width:100%;border:0;background:transparent;color:#39516f;padding:8px 2px;font-size:11px;white-space:normal; }
.evolution-column strong { font-size:12px;color:#1d3557; }
.evolution-column small { color:var(--text-muted); }
.evolution-map [data-evaluation-column].selected { background:#edf3ff; }
.evolution-map th.selected { box-shadow:inset 0 3px #3159a4; }
.map-score { display:inline-grid;place-items:center;width:52px;min-height:34px;border:1px solid transparent;border-radius:6px;font-size:15px;font-weight:600;padding:4px;line-height:1.2; }
.evolution-map button.map-score:hover { border-color:currentColor; }
.map-score-1 { background:#fce8e8;color:#9d3438; }
.map-score-2 { background:#fff0d4;color:#8c5b0a; }
.map-score-3 { background:#eaf0fc;color:#3c5796; }
.map-score-4 { background:#def3e9;color:#24694f; }
.map-score-5 { background:#bce3d0;color:#164d39; }
.map-score-empty { background:#f1f3f6;color:#8190a3; }
.map-scale { display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px 20px 0; }
.map-scale>span { display:flex;align-items:center;gap:6px;color:var(--text-muted);font-size:11px; }
.map-scale i { display:grid;place-items:center;width:22px;height:22px;border-radius:4px;font-size:12px;font-style:normal;font-weight:600; }
@media(max-width:650px) { .evolution-map-scroll { padding-left:10px;padding-right:10px; }.evolution-map th:first-child { min-width:135px; }.evaluation-card { flex-wrap:wrap; }.evaluation-select { flex-basis:100%; } }
@media(max-width:1000px) { .history-visuals { grid-template-columns:minmax(0,1fr); } }
@media print { .evolution-map-scroll { overflow:visible; }.map-score,.map-scale i { print-color-adjust:exact; } }
