/* ==========================================================================
   Intranet Marillac — módulo Professores
   ========================================================================== */

/* avatar com iniciais na cor do nome */
.pf-av {
  --tam: 34px; width: var(--tam); height: var(--tam); flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  font-size: calc(var(--tam) * .34); font-weight: 800; letter-spacing: .02em;
  color: hsl(var(--h) 55% 32%); background: hsl(var(--h) 70% 93%);
  box-shadow: inset 0 0 0 2px hsl(var(--h) 60% 85%);
}
.pf-av.pequeno { --tam: 30px; }
.pf-av.grande {
  --tam: 64px; color: #fff; box-shadow: 0 12px 24px -12px hsl(var(--h) 60% 35%);
  background: linear-gradient(135deg, hsl(var(--h) 55% 48%), hsl(var(--h) 60% 30%));
  animation: tm-flutua 4s ease-in-out infinite;
}

.pf-seg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pf-seg i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.pf-segs { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pf-chip {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--blue-50); color: var(--tx-forte); white-space: nowrap;
}
.pf-chip.pf-mais { background: var(--trilho); color: var(--muted); cursor: help; }
.pf-chip.pf-sec { background: #FEF3E2; color: var(--s-na); }

/* barra de busca/ordem da lista */
.pf-barra { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) auto 1fr; gap: 12px 14px; align-items: end; padding-top: 4px; }
.pf-barra .al-busca { grid-column: auto; }
.pf-total { justify-self: end; margin: 0 0 10px; }

/* tabela */
.pf-tabela td { vertical-align: middle; }
.pf-tabela td.num { white-space: nowrap; min-width: 100px; }
.pf-nome { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--tx-forte); text-decoration: none; }
.pf-nome:hover span { text-decoration: underline; }
.pf-tabela tr:hover .pf-av { transform: scale(1.1) rotate(-6deg); }
.pf-av { transition: transform .3s var(--ease-mola); }
.pf-barra-t { display: inline-block; vertical-align: middle; width: 56px; height: 6px; margin-right: 8px; border-radius: 99px; background: var(--trilho); overflow: hidden; }
.pf-barra-t span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy-500), var(--orange-500)); transition: width .9s var(--ease); }
.barras-prontas .pf-barra-t span { width: var(--w); }
.pf-link { font-weight: 700; color: var(--tx-forte); text-decoration: none; }
.pf-link:hover { text-decoration: underline; }
.pf-det td .sub .pf-seg { font-size: 11px; }

/* cartões */
.pf-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; padding: 4px 20px 20px; }
.pf-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 20px 16px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none;
  box-shadow: var(--sombra-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  animation: card-entra .5s var(--ease) backwards; animation-delay: calc(var(--i) * 25ms);
}
.pf-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 64px; z-index: 0;
  background: linear-gradient(135deg, hsl(var(--h) 70% 95%), transparent);
}
.pf-card > * { position: relative; }
.pf-card .pf-av { --tam: 56px; }
.pf-card strong { font-size: 14px; font-weight: 800; color: var(--tx-titulo); line-height: 1.25; }
.pf-card-sub { font-size: 12px; color: var(--muted); }
.pf-card .pf-segs, .pf-card .pf-chips { justify-content: center; }
.pf-card-ir { position: absolute; top: 12px; right: 12px; color: var(--muted); transition: transform .25s var(--ease-mola), color .2s; }
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -18px rgba(27, 42, 107, .45); border-color: hsl(var(--h) 50% 80%); }
.pf-card:hover .pf-av { transform: scale(1.08) rotate(-6deg); }
.pf-card:hover .pf-card-ir { transform: translateX(3px); color: var(--tx-forte); }

/* detalhe */
.pf-cab { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-cab-txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.pf-cab-txt h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; color: var(--tx-titulo); letter-spacing: -.02em; line-height: 1.1; }
.pf-cab-txt p { font-size: 13px; color: var(--muted); }
.pf-duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pf-dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-dist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; color: var(--ink-2); animation: subir .4s var(--ease) backwards; animation-delay: calc(var(--i) * 70ms); }
.pf-dist b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pf-dist-trilho { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: var(--trilho); overflow: hidden; }
.pf-dist-trilho span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width 1s var(--ease); }
.barras-prontas .pf-dist-trilho span { width: var(--w); }

@media (max-width: 1100px) { .pf-duo { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .pf-barra { grid-template-columns: 1fr 1fr; }
  .pf-barra .al-busca { grid-column: 1 / -1; }
  .pf-total { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-dist li, .pf-av.grande { animation: none; }
  .pf-barra-t span, .pf-dist-trilho span { transition: none; }
}

/* ---------- Avaliação dos alunos (POE, 1 a 4) ---------- */
.pf-col-poe { white-space: nowrap; }
.pf-poe { display: inline-flex; align-items: center; gap: 8px; }
.pf-poe-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.pf-poe-n.n1 { color: var(--n1-ink); } .pf-poe-n.n2 { color: var(--n2-ink); }
.pf-poe-n.n3 { color: var(--n3-ink); } .pf-poe-n.n4 { color: var(--n4-ink); }
.pf-card-poe { display: grid; justify-items: center; gap: 4px; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }
.pf-card-poe small { font-size: 11px; color: var(--muted); }
.pf-poe-corpo { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.pf-poe-anel {
  --c: var(--line-2); --tam: 128px; position: relative; width: var(--tam); height: var(--tam); flex: none; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--trilho) 0); animation: anel-encher 1.3s var(--ease) both;
}
.pf-poe-anel.n1 { --c: var(--n1); } .pf-poe-anel.n2 { --c: var(--n2); } .pf-poe-anel.n3 { --c: var(--n3); } .pf-poe-anel.n4 { --c: var(--n4); }
.pf-poe-anel::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.pf-poe-anel > * { position: relative; }
.pf-poe-anel strong { font-size: 30px; font-weight: 800; color: var(--tx-titulo); font-variant-numeric: tabular-nums; }
.pf-poe-anel span { font-size: 12px; color: var(--muted); }
.pf-poe-info { flex: 1; min-width: 240px; display: grid; gap: 8px; justify-items: start; }
.pf-poe-info .ajuda { margin: 0; }
.pf-poe-sem { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pf-poe-sem li {
  display: grid; grid-template-columns: auto auto; gap: 2px 12px; align-items: center; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--ink-2);
}
.pf-poe-sem li small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.pf-poe-sem em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--s-na); }
@media (prefers-reduced-motion: reduce) { .pf-poe-anel { animation: none; } }
.pf-tabela td:first-child { min-width: 210px; }
.pf-col-poe { text-align: center; }
.pf-poe-pill {
  display: inline-grid; place-items: center; min-width: 52px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: help;
}
.pf-poe-pill.n1 { background: var(--n1-bg); color: var(--n1-ink); box-shadow: inset 0 0 0 1.5px var(--n1); }
.pf-poe-pill.n2 { background: var(--n2-bg); color: var(--n2-ink); box-shadow: inset 0 0 0 1.5px var(--n2); }
.pf-poe-pill.n3 { background: var(--n3-bg); color: var(--n3-ink); box-shadow: inset 0 0 0 1.5px var(--n3); }
.pf-poe-pill.n4 { background: var(--n4-bg); color: var(--n4-ink); box-shadow: inset 0 0 0 1.5px var(--n4); }
.pf-poe-aviso { margin: 0 20px 14px; }

/* ---------- Lançamento de notas e faltas ---------- */
.lc-bloco .bloco-cabecalho { align-items: center; }
.lc-gear { gap: 6px; flex: none; margin-left: auto; }
.lc-mais { display: flex; justify-content: center; padding: 12px 0 2px; }
.lc-gear .ic { transition: transform .5s var(--ease); }
.lc-gear:hover .ic { transform: rotate(90deg); }
.lc-bims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lc-bim {
  display: grid; gap: 6px; align-content: start; text-align: left; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.lc-bim:hover { transform: translateY(-2px); box-shadow: var(--sombra-sm); }
.lc-bim[aria-pressed="true"] { border-color: var(--navy-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy-600) 14%, transparent); }
.lc-bim:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; }
.lc-bim-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lc-bim-top strong { font-size: 14px; color: var(--tx-titulo); }
.lc-fase { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.lc-fase.encerrado { background: var(--s-sem-bg); color: var(--s-sem); }
.lc-fase.aberto { background: var(--blue-50); color: var(--tx-forte); }
.lc-fase.futuro { background: var(--surface-2); color: var(--muted); }
.lc-datas { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lc-met { font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.lc-met b { font-size: 18px; font-variant-numeric: tabular-nums; }
.lc-met.atrasado { color: var(--s-abaixo); }
.lc-met.dia { color: var(--s-acima); font-weight: 700; }
.lc-trilho { height: 7px; border-radius: 99px; background: var(--trilho); overflow: hidden; }
.lc-trilho span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy-500), #15803D); transition: width 1s var(--ease); }
.barras-prontas .lc-trilho span { width: var(--w); }
.lc-lista { margin-top: 16px; }
.lc-resumo, .lc-det-resumo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 12px; }
.lc-det-resumo { margin-bottom: 0; padding-bottom: 8px; }
.lc-resumo .ajuda { margin: 0; }
.lc-todos { margin-left: auto; }
.lc-cont { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.lc-cont b { font-size: 16px; font-variant-numeric: tabular-nums; }
.lc-cont.atrasado { color: var(--s-abaixo); } .lc-cont.prazo { color: var(--tx-forte); } .lc-cont.dia { color: var(--s-acima); }
.lc-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 700; cursor: help;
}
.lc-pill.atrasado { background: var(--s-abaixo-bg); color: var(--s-abaixo); }
.lc-pill.prazo { background: var(--blue-50); color: var(--tx-forte); }
.lc-pill.dia { background: var(--s-acima-bg); color: var(--s-acima); }
.lc-col { white-space: nowrap; }
.lc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.lc-chip { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.lc-chip.atrasado { background: var(--s-abaixo-bg); color: #8A1030; }
.lc-chip.prazo { background: var(--blue-50); color: var(--tx-forte); }
.lc-chip.mais { background: var(--trilho); color: var(--muted); font-weight: 700; cursor: help; }
.lc-tabela td { vertical-align: middle; }
.lc-tabela td:first-child { min-width: 210px; }
.lc-ok { padding: 24px 12px; }
.lc-ok .ic { color: var(--s-acima); }
.lc-det th small { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.lc-det .lc-cel { white-space: nowrap; }
.pf-card-lanc { display: flex; justify-content: center; }
.lc-prazos th, .lc-prazos td { vertical-align: middle; }
.lc-prazos th, .lc-prazos td { padding-left: 8px; padding-right: 8px; }
.lc-prazos input { width: 100%; min-width: 0; padding-left: 10px; padding-right: 8px; }
.lc-regra { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; }
.lc-regra .ic { flex: none; margin-top: 2px; }
.dialogo-rodape .lc-siga { margin-right: auto; }
@media (max-width: 1100px) { .lc-bims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lc-bims { grid-template-columns: 1fr; } .lc-todos { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .lc-trilho span, .lc-gear .ic, .lc-bim { transition: none; } }
