.block-mwa-dashboard-app /* ── PERFIL DO ALUNO ── block_mwa_dashboard */

/* Selector de aluno */
.block-mwa-dashboard-app .sp-autocomplete-wrap{
  position: relative;
  flex: 0 1 420px;
  max-width: 420px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fd;
  border: 1.5px solid #cfd8ea;
  border-radius: 99px;
  padding: 0 8px 0 18px;
  height: 48px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.block-mwa-dashboard-app .sp-autocomplete-wrap:hover{
  border-color: var(--blue);
  background: var(--panel);
}
.block-mwa-dashboard-app .sp-autocomplete-wrap:focus-within{
  border-color: var(--blue);
  background: var(--panel);
  box-shadow: 0 0 0 4px rgba(91,128,222,.14);
}
.block-mwa-dashboard-app .sp-search-icon{
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--blue);
  line-height: 1;
  pointer-events: none;
  opacity: .85;
}
.block-mwa-dashboard-app .sp-autocomplete-input{
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  min-width: 0;
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  height: 100%;
  padding: 0;
  box-shadow: none;
}
.block-mwa-dashboard-app .sp-autocomplete-input::placeholder{
  color: var(--muted);
  font-weight: 400;
}
.block-mwa-dashboard-app .sp-autocomplete-clear{
  flex: 0 0 auto;
  background: var(--line2);
  border: none;
  padding: 0;
  margin-right: 6px;
  cursor: pointer;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .12s, color .12s;
}
.block-mwa-dashboard-app .sp-autocomplete-clear:hover{
  background: var(--red-dim, rgba(217,95,95,.14));
  color: var(--red);
}

.block-mwa-dashboard-app .sp-student-select{
  width: min(320px, 100%);
  height: 36px;
  border: 1px solid #8f98aa;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: .82rem;
  font-weight: 600;
  padding: 0 10px;
  box-shadow: none;
}
.block-mwa-dashboard-app .sp-student-select:focus{
  outline: 1px solid #4a6cf7;
  border-color: #4a6cf7;
}

/* Suggestion list */
.block-mwa-dashboard-app .sp-autocomplete-drop{
  position: fixed;
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(16,24,40,.14);
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 99999;
}
.block-mwa-dashboard-app .sp-autocomplete-drop li{
  padding: 11px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .12s, color .12s;
}
.block-mwa-dashboard-app .sp-autocomplete-drop li + li{
  margin-top: 2px;
}
.block-mwa-dashboard-app .sp-autocomplete-drop li:hover,
.block-mwa-dashboard-app .sp-autocomplete-drop li.sp-ac-active{
  background: var(--blue-dim, rgba(91,128,222,.10));
  color: var(--blue);
}
.block-mwa-dashboard-app .sp-autocomplete-drop li .sp-ac-name{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-mwa-dashboard-app .sp-autocomplete-drop li .sp-ac-match{
  color: var(--blue);
  font-weight: 900;
}
.block-mwa-dashboard-app .sp-autocomplete-drop .sp-ac-empty{
  padding: 18px 14px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 400;
  text-align: center;
  cursor: default;
}
.block-mwa-dashboard-app .sp-autocomplete-drop .sp-ac-empty:hover{
  background: transparent;
  color: var(--muted);
}
.block-mwa-dashboard-app .sp-autocomplete-drop .sp-ac-kbd{
  position: sticky;
  bottom: -8px;
  margin: 6px -8px -8px;
  padding: 8px 14px;
  background: #f7f9fd;
  border-top: 1px solid var(--line2);
  border-radius: 0 0 15px 15px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.block-mwa-dashboard-app .sp-autocomplete-drop .sp-ac-kbd:hover{
  background: #f7f9fd;
  color: var(--muted);
}
.block-mwa-dashboard-app .sp-autocomplete-drop .sp-ac-kbd kbd{
  display: inline-block;
  background: var(--panel);
  border: 1px solid #cfd8ea;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  color: #536078;
  line-height: 1.4;
}
/* Slimmer scrollbar so the list reads as one clean surface. */
.block-mwa-dashboard-app .sp-autocomplete-drop::-webkit-scrollbar{
  width: 8px;
}
.block-mwa-dashboard-app .sp-autocomplete-drop::-webkit-scrollbar-thumb{
  background: var(--line2);
  border: 2px solid var(--panel);
  border-radius: 99px;
}

.block-mwa-dashboard-app .sp-progress-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: -4px 0 18px;
}
.block-mwa-dashboard-app .sp-progress-card{
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 64px;
  box-shadow: var(--shadow);
}
.block-mwa-dashboard-app .sp-progress-card h3{
  margin: 0 0 8px;
  font-size: .68rem;
  font-weight: 900;
  color: #46516a;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.block-mwa-dashboard-app #page-studentprofile .cl-act-dots{
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.block-mwa-dashboard-app #page-studentprofile .cl-act-dot{
  border-radius: 4px;
  padding: 1px 6px;
  font-size: .62rem;
  line-height: 1.45;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.block-mwa-dashboard-app #page-studentprofile .cl-act-dot.done{ background: var(--green); }
.block-mwa-dashboard-app #page-studentprofile .cl-act-dot.missing{ background: var(--red); }
.block-mwa-dashboard-app #page-studentprofile .cl-act-dot.pending{ background: var(--muted); }
.block-mwa-dashboard-app #page-studentprofile a.cl-act-dot:hover,
.block-mwa-dashboard-app #page-studentprofile a.cl-act-dot:focus{
  color: #fff;
  text-decoration: none;
  filter: brightness(.94);
}
.block-mwa-dashboard-app #page-studentprofile .cl-no-grades-hint{
  font-size: .68rem;
  color: var(--muted);
}
@media (max-width: 900px) {
  .block-mwa-dashboard-app .sp-progress-row{ grid-template-columns: 1fr; }
  .block-mwa-dashboard-app .sp-autocomplete-wrap,
  .block-mwa-dashboard-app .sp-student-select{ max-width: none; width: 100%; }
  .sp-selector-bar{ align-items: stretch; flex-direction: column; gap: 10px; }
}
.sp-selector-bar{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  overflow: visible;
}.block-mwa-dashboard-app .sp-selector-label{
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}.block-mwa-dashboard-app /* Header do perfil */
.sp-header-card{
  background: linear-gradient(135deg, var(--panel2), var(--panel3));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}.block-mwa-dashboard-app .sp-avatar{
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(91,155,213,.3);
}.block-mwa-dashboard-app .sp-avatar.has-img{
  overflow: hidden;
  background: #e8ecf5 !important;
}.block-mwa-dashboard-app .sp-avatar.has-img img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}.block-mwa-dashboard-app .sp-header-info{ flex: 1; min-width: 0; }.block-mwa-dashboard-app .sp-header-name{
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  margin: 0 0 3px;
}.block-mwa-dashboard-app .sp-header-email{
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 8px;
}.block-mwa-dashboard-app .sp-header-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}.block-mwa-dashboard-app .sp-tag{
  background: var(--panel3);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 700;
}.block-mwa-dashboard-app .sp-header-actions{
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}.block-mwa-dashboard-app .sp-btn-email{
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(91,155,213,.28);
  transition: transform .15s;
}.block-mwa-dashboard-app .sp-btn-email:hover{ transform: translateY(-1px); }.block-mwa-dashboard-app .sp-btn-crm{
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 9px 16px;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}.block-mwa-dashboard-app .sp-btn-crm:hover{ border-color: var(--blue); color: var(--blue); }.block-mwa-dashboard-app /* KPI row */
.sp-kpi-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.block-mwa-dashboard-app .sp-btn-report{align-items:center;background:#fff;border:1px solid #9bcdb4;border-radius:8px;color:#247a55;cursor:pointer;display:inline-flex;font-family:inherit;font-size:.8rem;font-weight:850;gap:7px;padding:9px 14px;}
.block-mwa-dashboard-app .sp-btn-report:hover{background:#eef9f3;border-color:#5dac82;color:#17623f;}
.block-mwa-dashboard-app .sp-btn-report .mwa-ui-icon{height:15px;width:15px;}

.block-mwa-dashboard-app #page-studentprofile .sp-kpi,
.block-mwa-dashboard-app #page-studentprofile .sp-section{
  overflow: visible;
  position: relative;
}
.block-mwa-dashboard-app #page-studentprofile .mwa-help-tip{
  z-index: 10000;
}
.block-mwa-dashboard-app #page-studentprofile .mwa-help-tip::after{
  z-index: 10000;
}
.block-mwa-dashboard-app #page-studentprofile .mwa-help-tip::before{
  z-index: 10001;
}
@media (max-width: 900px) {.block-mwa-dashboard-app .sp-kpi-row{ grid-template-columns: repeat(2, 1fr); } }.block-mwa-dashboard-app .sp-kpi{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}.block-mwa-dashboard-app .sp-kpi-label{
  font-size: .65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}.block-mwa-dashboard-app .sp-kpi-val{
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'DM Mono', ui-monospace, monospace;
}.block-mwa-dashboard-app .sp-kpi-sub{
  font-size: .72rem;
  color: var(--muted);
  margin-top: 4px;
}.block-mwa-dashboard-app /* Bloco genérico de seção */
.sp-section{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: visible;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 20;
}.block-mwa-dashboard-app .sp-section-head{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 900;
  color: var(--text);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}.block-mwa-dashboard-app .sp-section-head .sp-section-right{
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}.block-mwa-dashboard-app .sp-section-body{ padding: 16px 18px; }.block-mwa-dashboard-app /* Atividade 7 dias — sparkline */
.sp-sparkline-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
}.block-mwa-dashboard-app .sp-trend{
  font-size: .72rem;
  color: var(--muted);
}.block-mwa-dashboard-app .sp-trend.up{ color: var(--green); }.block-mwa-dashboard-app .sp-trend.down{ color: var(--red); }.block-mwa-dashboard-app /* Anotações */
.sp-notes-area{
  width: 100%;
  min-height: 90px;
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: .82rem;
  color: var(--text);
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}.block-mwa-dashboard-app .sp-notes-area:focus{ border-color: var(--blue); }.block-mwa-dashboard-app /* Histórico de contatos */
.sp-contact-item{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}.block-mwa-dashboard-app .sp-contact-item:last-child{ border-bottom: none; }.block-mwa-dashboard-app .sp-contact-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}.block-mwa-dashboard-app .sp-contact-subject{
  font-size: .82rem;
  font-weight: 800;
  color: var(--text);
}.block-mwa-dashboard-app .sp-contact-meta{
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
}.block-mwa-dashboard-app .sp-contact-delete{
  background: none;
  border: none;
  color: var(--subtle);
  cursor: pointer;
  font-size: .75rem;
  padding: 0 2px;
  margin-left: auto;
  transition: color .15s;
}.block-mwa-dashboard-app .sp-contact-delete:hover{ color: var(--red); }.block-mwa-dashboard-app /* Últimas interações — collapsible */
.sp-collapse-trigger{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 900;
  color: var(--text);
  user-select: none;
}.block-mwa-dashboard-app .sp-collapse-trigger:hover{ background: var(--panel2); }.block-mwa-dashboard-app .sp-collapse-arrow{ color: var(--muted); transition: transform .2s; }.block-mwa-dashboard-app .sp-collapse-arrow.open{ transform: rotate(180deg); }.block-mwa-dashboard-app .sp-collapse-body{ display: none; }.block-mwa-dashboard-app .sp-collapse-body.open{ display: block; }.block-mwa-dashboard-app /* Calendário de atividade */
.sp-calendar-wrap{ overflow-x: auto; padding: 4px 0; }.block-mwa-dashboard-app .sp-calendar-legend{
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .6rem;
  color: var(--muted);
  margin-top: 6px;
}.block-mwa-dashboard-app .sp-cal-box{
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}.block-mwa-dashboard-app .sp-card-empty{
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  border: 1px dashed var(--line2);
  border-radius: 12px;
  background: var(--panel2);
}.block-mwa-dashboard-app /* Empty state */
.sp-empty{
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}.block-mwa-dashboard-app .sp-empty-icon{ font-size: 2.5rem; margin-bottom: 12px; }.block-mwa-dashboard-app .sp-empty p{ font-size: .95rem; font-weight: 700; margin: 0; }.block-mwa-dashboard-app /* Botões de ação dentro do histórico */
.sp-action-btn{
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}.block-mwa-dashboard-app .sp-action-btn:hover{ border-color: var(--blue); color: var(--blue); }.block-mwa-dashboard-app .sp-action-btn.primary{
  background: linear-gradient(135deg, var(--blue2), var(--blue));
  color: #fff;
  border-color: transparent;
}
