/* ═══ Avaliação Física 2.0 · A6 relatório (avr-) + A7 área do aluno (ava-) — 17/10/2026 ═══ */
/* ── A6: relatório por cima da página; no papel só ele ── */
.avr-fundo { position: fixed; inset: 0; z-index: 10060; background: rgba(0,0,0,.6); overflow-y: auto; padding: 12px 8px 40px; }
body.avr-aberto { overflow: hidden; }
.avr-barra { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; justify-content: space-between; max-width: 820px; margin: 0 auto 10px; flex-wrap: wrap; }
.avr-dica { color: #ddd; font-size: .78rem; flex: 1; text-align: center; }
.avr-btn { background: #fff; color: #222; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.avr-btn.avr-pri { background: #7c3aed; color: #fff; }
.avr-folha { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 28px 30px; border-radius: 6px; font: 13px/1.45 Arial, Helvetica, sans-serif; }
.avr-folha h1 { font-size: 20px; margin: 0; color: #111; text-transform: none; letter-spacing: 0; }
.avr-folha h2 { font-size: 14px; margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid #7c3aed; color: #111; text-transform: none; letter-spacing: 0; }
.avr-folha p { margin: 4px 0; color: #222; }
.avr-cab { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #ddd; padding-bottom: 12px; }
.avr-cab > div:nth-child(2), .avr-cab > div:first-child:not(.avr-data) { flex: 1; }
.avr-logo { max-height: 56px; max-width: 140px; object-fit: contain; }
.avr-data { text-align: right; display: flex; flex-direction: column; font-size: 12px; color: #444; }
.avr-data b { font-size: 15px; color: #111; }
.avr-faixa { background: #fff4e5; border: 1px solid #f0b35b; color: #7a4a00; padding: 8px 10px; border-radius: 6px; margin-top: 10px; font-weight: 600; }
.avr-aluno { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.avr-aluno small, .avr-medidas small { display: block; color: #666; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.avr-aluno b { font-size: 13px; }
.avr-medidas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.avr-medidas > div { border: 1px solid #e5e5e5; border-radius: 6px; padding: 6px 8px; }
.avr-medidas b { font-size: 15px; }
.avr-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.avr-tab th, .avr-tab td { border-bottom: 1px solid #eee; padding: 5px 6px; text-align: right; }
.avr-tab th:first-child, .avr-tab td:first-child { text-align: left; }
.avr-tab th { color: #555; font-weight: 600; }
.avr-tab tr.avr-bom td:last-child { color: #15803d; font-weight: 700; }
.avr-tab tr.avr-ruim td:last-child { color: #b91c1c; font-weight: 700; }
.avr-nota { font-size: 11px; color: #666 !important; font-style: italic; }
.avr-avisos { margin: 6px 0 0 18px; padding: 0; font-size: 11.5px; color: #555; }
.avr-grafs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.avr-grafs figure, .avr-fotos figure { margin: 0; }
.avr-grafs figcaption { font-size: 12px; font-weight: 600; color: #333; }
.avr-graf { width: 100%; height: auto; display: block; }
.avr-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.avr-fotos img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 6px; background: #f2f2f2; }
.avr-fotos figcaption { text-align: center; font-size: 11px; color: #555; }
.avr-texto { white-space: pre-wrap; }
.avr-prox { margin-top: 12px !important; }
.avr-rodape { margin-top: 20px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 10.5px; color: #777; text-align: center; }
@media (max-width: 640px) {
  .avr-folha { padding: 16px 14px; }
  .avr-aluno, .avr-medidas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avr-grafs { grid-template-columns: minmax(0, 1fr); }
  .avr-cab { flex-wrap: wrap; }
  .avr-dica { display: none; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  body.avr-aberto > *:not(#avr) { display: none !important; }
  html, body.avr-aberto { overflow: visible; background: #fff !important; background-image: none !important; }
  .avr-fundo { position: static; background: #fff; padding: 0; overflow: visible; }
  .avr-barra { display: none !important; }
  .avr-folha { max-width: none; padding: 0; border-radius: 0; }
  .avr-aluno, .avr-medidas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avr-grafs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avr-quebra-evitar { break-inside: avoid; }
  .avr-folha * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── A7: área do aluno — visual do mockup do dono (17/10/2026), identidade roxa do Ravvo ── */
.ava-pagina { --ava-roxo: #8b5cf6; --ava-roxo2: #a855f7; --ava-borda: color-mix(in srgb, var(--ava-roxo) 22%, var(--border, #2a2a3a));
  display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.ava-pagina svg { width: 1em; height: 1em; flex: none; }
.ava-topo { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: ". cont" "tit tit"; align-items: center; row-gap: 6px; min-height: 44px; }
.ava-titulo { grid-area: tit; min-width: 0; }
.ava-titulo h1 { margin: 0; display: flex; align-items: center; gap: 10px; font-family: var(--font-display, inherit); font-size: 1.55rem; font-weight: 800;
  letter-spacing: 0; text-transform: none; color: var(--text-primary); }
.ava-titulo-ico { display: inline-flex; color: var(--ava-roxo2); font-size: 1.6rem; }
.ava-titulo p { margin: 6px 0 0; color: var(--text-secondary, var(--text-muted)); font-size: .95rem; line-height: 1.35; }
.ava-contador { grid-area: cont; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 14px; border: 1px solid var(--ava-borda);
  background: var(--bg-card); color: var(--text-secondary, var(--text-muted)); font-size: .9rem; white-space: nowrap; }
.ava-contador svg { color: var(--ava-roxo2); font-size: 1.15rem; }
.ava-proxima { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-muted); }
.ava-proxima svg { color: var(--ava-roxo2); }
.ava-bloco { background: var(--bg-card); border: 1px solid var(--ava-borda); border-radius: 18px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); min-width: 0; }
.ava-vazio { text-align: center; padding: 40px 16px; }
.ava-sub { color: var(--text-muted); font-size: .85rem; margin: 0; }
.ava-cab { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ava-cab > div { flex: 1; min-width: 0; }
.ava-cab h3 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); text-transform: none; letter-spacing: 0; }
.ava-cab p { margin: 3px 0 0; color: var(--text-muted); font-size: .85rem; }
.ava-cab-ico { color: var(--ava-roxo2); font-size: 1.55rem; display: inline-flex; margin-top: 2px; }
/* destaque */
.ava-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--ava-roxo) 55%, transparent);
  background: radial-gradient(circle at 82% 50%, rgba(139,92,246,.45), transparent 55%), linear-gradient(135deg, #2a1659 0%, #1a1033 55%, #140c26 100%);
  box-shadow: 0 0 0 1px rgba(168,85,247,.12), 0 14px 40px rgba(124,58,237,.28); color: #fff; }
.ava-hero-txt { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; min-width: 0; }
.ava-hero-ico { grid-row: 1 / span 3; color: #c4b5fd; font-size: 1.6rem; padding-top: 2px; }
.ava-hero small { color: #c4b5fd; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ava-hero b { font-family: var(--font-display, inherit); font-size: 2.6rem; line-height: 1.05; font-weight: 800; color: #fff; }
.ava-hero p { margin: 6px 0 0; color: #d4d4e8; font-size: .85rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ava-hero p > span { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 1.05rem; }
.ava-hero .ava-neutro { color: #e9d5ff; }
.ava-hero-arte { position: relative; z-index: 1; flex: none; width: 104px; height: 104px; display: grid; place-items: center; }
.ava-hero-arte::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(196,181,253,.25); }
.ava-hero-arte span { width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center; font-size: 3rem; color: #f5f3ff;
  background: linear-gradient(145deg, #a78bfa, #6d28d9); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 12px 28px rgba(124,58,237,.55); transform: rotate(-8deg); }
/* comparação */
.ava-datas { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; }
.ava-data { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--ava-borda); border-radius: 14px; min-width: 0; }
.ava-data > span:first-child { color: var(--text-muted); font-size: .78rem; padding-left: 4px; }
.ava-data-campo { position: relative; display: flex; align-items: center; border: 1px solid var(--ava-borda); border-radius: 12px; background: var(--bg-input, transparent); }
.ava-data-campo svg { position: absolute; left: 10px; color: var(--ava-roxo2); pointer-events: none; font-size: 1.05rem; }
.ava-data-campo select { width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: var(--text-primary); font: inherit; font-size: .95rem;
  padding: 11px 26px 11px 34px; border-radius: 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.ava-trocar { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--ava-borda);
  color: var(--ava-roxo2); font-size: 1.15rem; }
/* tabela */
.ava-tab { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; table-layout: fixed; }
.ava-tab th { background: color-mix(in srgb, var(--text-primary) 6%, transparent); color: var(--text-secondary, var(--text-muted)); font-weight: 600; font-size: .78rem;
  text-transform: none; letter-spacing: 0; padding: 10px 6px; text-align: right; }
.ava-tab th:first-child { border-radius: 10px 0 0 10px; text-align: left; padding-left: 10px; width: 36%; }
.ava-tab th:last-child { border-radius: 0 10px 10px 0; padding-right: 10px; }
.ava-tab td { padding: 12px 6px; border-bottom: 1px solid var(--ava-borda); text-align: right; vertical-align: middle; color: var(--text-primary); }
.ava-tab tr:last-child td { border-bottom: 0; }
.ava-tab td:first-child { text-align: left; padding-left: 4px; }
.ava-tab td:last-child { padding-right: 10px; }
.ava-ind { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ava-ind > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.ava-ind-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ava-roxo2); font-size: 1.15rem;
  background: color-mix(in srgb, var(--ava-roxo) 14%, transparent); }
.ava-dif { white-space: nowrap; }
.ava-dif b { font-weight: 800; }
.ava-dif svg { margin-left: 4px; vertical-align: -2px; }
.ava-bom { color: #22c55e; } .ava-ruim { color: #ef4444; } .ava-neutro { color: var(--text-secondary, var(--text-muted)); }
.ava-nota { margin-top: 8px; font-size: .82rem; color: var(--text-muted); font-style: italic; white-space: pre-wrap; }
/* gráfico */
.ava-serie { flex: none; max-width: 46%; background: var(--bg-input, transparent); color: var(--text-primary); border: 1px solid var(--ava-borda); border-radius: 12px;
  padding: 9px 10px; font: inherit; font-size: .88rem; }
.ava-graf { width: 100%; height: auto; display: block; }
.ava-g-grade { stroke: currentColor; opacity: .09; }
.ava-g-eixo { fill: currentColor; opacity: .6; font-size: 13px; }
.ava-g-pilula { fill: #fff; font-size: 12.5px; font-weight: 700; }
.ava-g-linha { filter: drop-shadow(0 4px 8px rgba(168,85,247,.45)); }
/* histórico */
.ava-hist { border: 1px solid var(--ava-borda); border-radius: 16px; padding: 12px; margin-top: 10px; background: color-mix(in srgb, var(--text-primary) 3%, transparent); }
.ava-hist:first-of-type { margin-top: 0; }
.ava-hist-atual { border: 1.5px solid var(--ava-roxo2); box-shadow: inset 4px 0 0 var(--ava-roxo2), 0 0 0 1px rgba(168,85,247,.15); }
.ava-hist-linha { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.ava-hist-data { display: flex; flex-direction: column; align-items: center; min-width: 44px; line-height: 1.05; }
.ava-hist-data b { font-family: var(--font-display, inherit); font-size: 1.55rem; font-weight: 800; color: var(--text-primary); }
.ava-hist-data span { font-size: .8rem; font-weight: 700; color: var(--ava-roxo2); }
.ava-hist-data small { font-size: .75rem; color: var(--text-muted); }
.ava-hist-meio { min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ava-selo { font-size: .72rem; font-weight: 700; color: #22c55e; background: rgba(34,197,94,.14); border-radius: 8px; padding: 3px 8px; }
.ava-hist-vals { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ava-hist-vals > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ava-hist-vals .ava-ind-ico { width: 26px; height: 26px; font-size: 1rem; }
.ava-hist-vals small { display: block; font-size: .68rem; color: var(--text-muted); white-space: nowrap; }
.ava-hist-vals b { font-size: .95rem; color: var(--text-primary); white-space: nowrap; }
.ava-hist-btns { display: flex; flex-direction: column; gap: 6px; }
.ava-btn { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-start; white-space: nowrap; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--ava-borda); background: var(--bg-input, transparent); color: var(--text-primary); font: inherit; font-size: .78rem; cursor: pointer; }
.ava-btn svg { font-size: 1rem; }
.ava-mais { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; transition: transform .2s; }
.ava-mais.aberto { transform: rotate(90deg); color: var(--ava-roxo2); }
.ava-hist-detalhe { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ava-borda); }
.ava-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ava-chips div { background: var(--bg-input); border-radius: var(--radius-sm, 8px); padding: 6px 10px; text-align: center; min-width: 74px; }
.ava-chips small { display: block; font-size: .6rem; color: var(--text-muted); text-transform: uppercase; }
.ava-chips b { font-family: var(--font-display, inherit); }
.ava-privado { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; color: var(--text-muted); font-size: .76rem; text-align: center; }
/* fotos */
.ava-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.ava-fotos figure { margin: 0; }
.ava-fotos img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 12px; background: var(--bg-input); cursor: zoom-in; }
.ava-fotos figcaption { font-size: .72rem; color: var(--text-muted); text-align: center; }
.ava-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ava-lado figure { margin: 0; }
.ava-lado img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 12px; background: var(--bg-input); cursor: zoom-in; }
.ava-lado figcaption { text-align: center; font-size: .78rem; color: var(--text-muted); }
.ava-zoom { position: fixed; inset: 0; z-index: 10070; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ava-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 768px) {
  .ava-titulo { padding-left: 2px; }
  .ava-topo { padding-left: 60px; }               /* o botão ☰ do aluno fica no canto, por cima */
  .ava-titulo { margin-left: -60px; padding-left: 60px; }
}
@media (max-width: 420px) {
  .ava-titulo h1 { font-size: 1.4rem; }
  .ava-hero b { font-size: 2.3rem; }
  .ava-hero-arte { width: 84px; height: 84px; } .ava-hero-arte span { width: 72px; height: 72px; font-size: 2.4rem; }
  .ava-tab { font-size: .82rem; } .ava-tab th { font-size: .72rem; padding: 9px 4px; }
  .ava-hist-linha { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ava-hist-btns { grid-column: 1 / -1; grid-row: 2; flex-direction: row; } .ava-hist-btns .ava-btn { flex: 1; justify-content: center; }
  .ava-mais { grid-column: 3; grid-row: 1; }
  .ava-datas { gap: 6px; } .ava-data { padding: 8px; } .ava-trocar { width: 30px; height: 30px; }
  .ava-data-campo select { padding-left: 30px; font-size: .88rem; }
}
/* o v8-mobile-hotfix.css põe todo <select> com width:100% !important no celular: aqui o do gráfico fica do tamanho do texto */
.ava-pagina .ava-cab .ava-serie { width: auto !important; max-width: 44% !important; flex: none; padding: 8px 10px; min-height: 40px; }
@media (max-width: 420px) {
  .ava-bloco { padding: 14px 12px; }
  .ava-data { padding: 6px; }
  .ava-data-campo svg { display: none; }            /* o rótulo já diz o que é; sobra lugar para a data inteira */
  .ava-data-campo select { padding: 10px 22px 10px 10px; }
  .ava-tab th:first-child { width: 40%; }
  .ava-ind { gap: 7px; } .ava-ind-ico { width: 24px; height: 24px; font-size: .95rem; border-radius: 7px; }
  .ava-ind > span:last-child { overflow-wrap: break-word; }
}
.ava-pagina svg.ava-graf { width: 100%; height: auto; }   /* o gráfico não é ícone */
/* .ava-tab td (cor do texto) vencia .ava-bom/.ava-ruim: a diferença da tabela precisa da cor da tendência */
.ava-tab td.ava-bom { color: #22c55e; } .ava-tab td.ava-ruim { color: #ef4444; } .ava-tab td.ava-neutro { color: var(--text-secondary, var(--text-muted)); }
