/*
 * base/11-turmas-anexos-certificado.css
 * Painel do mentor: visão geral, turmas com cor, calendário por turma, matérias,
 * competências por aluno, notificações por aluno, anexos de tarefa e certificado com a arte oficial.
 */

/* ---------- Turma em gestão (menu lateral) ---------- */

label.ctx {
  display: block;
  cursor: pointer;
}

.ctxs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ctxs i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.ctxs select {
  background: transparent;
  border: 0;
  padding: 0;
  color: #e8e1d2;
  font: 600 13px var(--ui);
  cursor: pointer;
  min-width: 0;
  box-shadow: none;
}

.ctxs select option {
  background: #141414;
  color: #e8e1d2;
}

/* ---------- Etiqueta de turma ---------- */

.tc {
  --c: var(--gd);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11.5px/1 var(--ui);
  padding: 5px 9px 5px 7px;
  border-radius: 99px;
  white-space: nowrap;
  color: var(--tx);
  background: color-mix(in srgb,var(--c) 18%,var(--sf));
  border: 1px solid color-mix(in srgb,var(--c) 55%,transparent);
}

.tc i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

.tc.none,.tc.all {
  --c: var(--t3);
  color: var(--t2);
  border-style: dashed;
}

.tc.all i {
  background: conic-gradient(#fdb621,#5aa9e6,#6cc08b,#e8795e,#fdb621);
}

/* Seleção de turmas em formulários */

.tpick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tk {
  --c: var(--gd);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 9px 11px;
  border: 1px solid var(--ln2);
  border-radius: 10px;
  background: var(--sf2);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t2);
  position: relative;
}

.tk input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tk i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 2px solid var(--c);
  flex: none;
}

.tk:has(input:checked) {
  border-color: var(--c);
  background: color-mix(in srgb,var(--c) 16%,var(--sf));
  color: var(--tx);
}

.tk:has(input:checked) i {
  background: var(--c);
  box-shadow: inset 0 0 0 2px var(--sf);
}

.tk:has(input:focus-visible) {
  outline: 2px solid var(--gd);
  outline-offset: 2px;
}

/* Filtro de turma */

.tfil {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tfil button {
  --c: var(--t3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 99px;
  padding: 6px 12px;
  font: 600 12.5px var(--ui);
  color: var(--t2);
  cursor: pointer;
}

.tfil button i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.tfil button.on {
  color: var(--tx);
  border-color: var(--c);
  background: color-mix(in srgb,var(--c) 16%,var(--sf));
}

.g2>.card+.card {
  margin-top: 0;
}

.avs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.avs .av {
  cursor: pointer;
  width: 32px;
  height: 32px;
  font-size: 11.5px;
}

.avs .av:hover {
  border-color: var(--gd);
}

.tal-r {
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--ln);
}

.tal-r:first-child {
  border-top: 0;
}

.tal-r .grow {
  flex: 1;
  min-width: 0;
}

.kpi.k2 {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 104px;
}

.kpi.k2 .kb {
  flex: 1;
  min-width: 0;
}

.kpi.k2 .num {
  margin: 4px 0 6px;
}

.kpi.k2 small:empty {
  display: none;
}

.kpi.k2 .bar {
  margin-top: 8px;
}

.ks {
  font: 500 14px var(--ui);
  color: var(--t3);
  letter-spacing: 0;
}

.ov-t,.ov-r {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 12px 10px;
  border-radius: 10px;
  margin: 0 -10px;
  width: calc(100% + 20px);
}

.ov-t+.ov-t,.ov-r+.ov-r {
  margin-top: 2px;
}

.ov-t:hover,.ov-r:hover,.ov-t.on {
  background: var(--sf2);
}

.ov-t.on {
  box-shadow: inset 3px 0 0 var(--c);
}

.ov-t>i {
  width: 10px;
  height: 36px;
  border-radius: 4px;
  background: var(--c);
  flex: none;
}

.ov-t .grow,.ov-r .grow {
  flex: 1;
  min-width: 0;
}

.ov-t b {
  display: block;
  font-weight: 600;
}

.ov-t .bar {
  margin-top: 7px;
}

.rk {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sf3);
  color: var(--t2);
  font: 700 11.5px/24px var(--ui);
  text-align: center;
  flex: none;
}

.ov-r:first-of-type .rk {
  background: var(--gds);
  color: var(--gd);
}

/* ---------- Matérias ---------- */

.mnum {
  font: 600 30px/1 var(--dp);
  color: var(--gd);
  min-width: 26px;
}

/* ---------- Calendário por turma ---------- */

.calm {
  min-width: 150px;
  text-align: center;
}

.callg {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cal.adm>div:not(.h) {
  min-height: 116px;
}

.cal>.add {
  cursor: pointer;
  position: relative;
}

.cal>.add:hover {
  background: var(--sf2);
}

.cal>.add:hover::after {
  content: "+";
  position: absolute;
  top: 5px;
  right: 8px;
  font: 700 15px/1 var(--ui);
  color: var(--gd);
}

.ev {
  --c: var(--gd);
  border-left: 3px solid var(--c);
  background: color-mix(in srgb,var(--c) 20%,var(--sf));
  white-space: normal;
  padding: 4px 6px;
}

.ev:hover {
  background: color-mix(in srgb,var(--c) 32%,var(--sf));
}

.ev .et {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev .et b {
  font-weight: 800;
}

.ev .ep {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.ev .ep .tc {
  font-size: 10px;
  padding: 3px 6px 3px 5px;
  background: color-mix(in srgb,var(--c) 30%,var(--sf));
}

.ev .ep .tc i {
  width: 6px;
  height: 6px;
}

.ev.t {
  --c: var(--in);
  background: var(--ins);
}

.ev.x {
  --c: var(--ok);
  background: var(--oks);
}

.lk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gd);
  font-weight: 600;
  white-space: nowrap;
}

.lk svg {
  width: 13px;
  height: 13px;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 20px 16px;
  border: 1.5px dashed var(--ln2);
  border-radius: 12px;
  background: var(--sf2);
  cursor: pointer;
  position: relative;
}

.drop:hover,.drop.on,.drop:focus-within {
  border-color: var(--gd);
  background: var(--gds);
}

.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.drop svg {
  width: 22px;
  height: 22px;
  color: var(--gd);
}

.drop small {
  color: var(--t3);
  font-size: 12px;
}

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fchips:empty {
  display: none;
}

.fchip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 7px;
  border: 1px solid var(--ln2);
  border-radius: 10px;
  background: var(--sf);
  max-width: 100%;
}

.fchip>b {
  font: 800 10px/1 var(--ui);
  letter-spacing: .03em;
  padding: 8px 6px;
  border-radius: 6px;
  background: var(--sf3);
  color: var(--t2);
  min-width: 38px;
  text-align: center;
}

.fchip>b.fx-pdf {
  background: var(--ers);
  color: var(--er);
}

.fchip>b.fx-xls,.fchip>b.fx-xlsx,.fchip>b.fx-csv {
  background: var(--oks);
  color: var(--ok);
}

.fchip>b.fx-ppt,.fchip>b.fx-pptx {
  background: var(--wns);
  color: var(--wn);
}

.fchip>b.fx-doc,.fchip>b.fx-docx {
  background: var(--ins);
  color: var(--in);
}

.fn {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
}

.fn span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.fn small {
  color: var(--t3);
  font-size: 11.5px;
  font-weight: 500;
}

.fb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--t2);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}

.fb:hover {
  background: var(--sf3);
  color: var(--tx);
}

.fb svg {
  width: 16px;
  height: 16px;
}

.cp-l {
  padding: 16px 10px;
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}

.cp-l .ch {
  padding: 0 8px;
}

.cp-a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cp-a:hover {
  background: var(--sf2);
}

.cp-a.on {
  background: var(--gds);
  box-shadow: inset 3px 0 0 var(--gd);
}

.cp-a .grow {
  flex: 1;
  min-width: 0;
}

.cp-a .grow b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cp-f {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.6fr);
  gap: 12px;
  margin-top: 12px;
}

.cp-f .f {
  margin: 0;
}

.cp-d>summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.nt-i {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ln);
}

.nt-i:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nt-i .grow {
  flex: 1;
  min-width: 0;
}

.nt-i b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
}

.nt-i .ico {
  width: 34px;
  height: 34px;
}

/* ---------- Certificado com a arte oficial ---------- */

#mbox.cw {
  max-width: 980px;
}

.certx {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1491 / 1055;
  background: #05090d;
  border-radius: 6px;
  overflow: hidden;
  font-family: "Cormorant Garamond","Cormorant",Georgia,serif;
  line-height: 1;
  text-align: center;
  color: #f3efe6;
}

.certx img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.certx>div {
  position: absolute;
  white-space: nowrap;
}

.cx-n {
  left: 14%;
  right: 14%;
  bottom: 44.2%;
  font-weight: 600;
  letter-spacing: .01em;
  color: #f0c45a;
  background: linear-gradient(180deg,#fbe6a3,#f0c45a 50%,#c9932c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: .12em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cx-l {
  left: 8%;
  right: 8%;
  top: 72.25%;
  transform: translateY(-50%);
  font-size: 1.46cqw;
  font-weight: 500;
  letter-spacing: .035em;
}

.cx-m {
  left: 13.4%;
  width: 28%;
  bottom: 17.8%;
  font-size: 1.75cqw;
  font-weight: 600;
  color: #efe7d4;
  letter-spacing: .02em;
}

.cx-d {
  left: 58.65%;
  width: 28%;
  top: 88.65%;
  transform: translateY(-50%);
  font-size: 1.34cqw;
  font-weight: 500;
  letter-spacing: .03em;
}

#printroot {
  display: none;
}

html.pc body>*:not(#printroot) {
  display: none!important;
}

html.pc #printroot {
  display: block;
  position: fixed;
  inset: 0;
  background: #05090d;
  z-index: 999;
}

@media print {
  html.pc,html.pc body {
    margin: 0;
    padding: 0;
    background: #05090d;
  }
  html.pc #printroot,html.pc #printroot * {
    visibility: visible!important;
  }
  html.pc #printroot {
    position: static;
  }
  html.pc #printroot .certx {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width:760px) {
  .nt-i {
    flex-wrap: wrap;
  }
  .nt-i .grow {
    flex-basis: calc(100% - 50px);
  }
  .nt-i .btn {
    margin-left: 46px;
  }
  .cal.adm>div:not(.h) {
    min-height: 84px;
  }
  .ev .ep {
    display: none;
  }
  .fn span {
    max-width: 150px;
  }
}
