@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&family=Gloria+Hallelujah&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cp-blue: #0a1d45;
  --cp-red: #7f0016;
  --cp-gold: #efba21;
  --cp-bg: #eef2f7;
  --cp-panel: #ffffff;
  --cp-border: rgba(10, 29, 69, 0.12);
  --cp-text: #1a2236;
  --cp-muted: #6d7588;
  --cp-shadow: 0 18px 40px rgba(10, 29, 69, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--cp-text);
  background: var(--cp-bg);
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
}
button {
  font: inherit;
}
.min-w-0 {
  min-width: 0;
}

/* LOGIN */
.login-page {
  min-height: 100vh;
  background: #081735;
}
.login-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.login-carousel,
.login-overlay {
  position: absolute;
  inset: 0;
}
.login-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 1s ease,
    transform 6s ease;
}
.login-slide.active {
  opacity: 1;
  transform: scale(1);
}
.login-overlay {
  background: linear-gradient(110deg, rgba(10, 29, 69, 0.46), rgba(10, 29, 69, 0.22) 36%, rgba(127, 0, 22, 0.2) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}
.login-top-brand {
  position: relative;
  z-index: 2;
}
.login-top-brand img {
  width: min(360px, 76vw);
}
.login-form-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.login-card-head h1 {
  font-family: "Fjalla One", sans-serif;
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 0.35rem;
  color: var(--cp-red);
  letter-spacing: 0.02em;
}
.login-card-head p {
  color: var(--cp-muted);
  margin: 0 0 1rem;
}
.login-form-card .form-label {
  font-weight: 700;
  color: var(--cp-blue);
}
.login-form-card .form-control,
.login-form-card .form-select {
  border-radius: 14px;
  border-color: rgba(10, 29, 69, 0.14);
  min-height: 54px;
}
.login-secondary-btn {
  color: var(--cp-blue);
  border-color: rgba(10, 29, 69, 0.18);
  background: rgba(255, 255, 255, 0.74);
}
.login-secondary-btn:hover {
  color: #fff;
  background: var(--cp-blue);
}

.chalk-board {
  position: relative;
  background: linear-gradient(180deg, #325655 0%, #182c33 55%, #0d1719 100%);
  border-radius: 26px;
  padding: 1.5rem;
  border: 2px solid rgba(239, 186, 33, 0.75);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 0 8px rgba(127, 0, 22, 0.95),
    var(--cp-shadow);
  color: #fff;
}
.board-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(239, 186, 33, 0.95);
  color: #1f1f1f;
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.chalk-board h2 {
  font-family: "Fjalla One", sans-serif;
  letter-spacing: 0.03em;
  margin: 0 0 1rem;
  color: #fff7ce;
}
.board-notes p,
#blackboard p {
  font-family: "Gloria Hallelujah", cursive;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.board-notes.compact p {
  font-size: 0.95rem;
}
.board-notes strong {
  color: #ffef8a;
}
.board-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  color: #fff7ce;
}
.board-contact span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.board-inline {
  margin-top: 0;
}

/* APP */
.cp-topbar {
  background: var(--cp-blue);
  box-shadow: 0 10px 24px rgba(10, 29, 69, 0.16);
  z-index: 1030;
}
.brand-link {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 46px;
  width: auto;
}
.top-user strong {
  font-size: 0.95rem;
}
.top-user span {
  opacity: 0.8;
}

.cp-menu-strip {
  background: linear-gradient(180deg, #ffffff, #f8f9fd);
  border-bottom: 1px solid var(--cp-border);
}
.cp-menu-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(84px, 1fr));
  gap: 0.7rem;
}
.cp-menu-tile {
  min-height: 92px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(10, 29, 69, 0.08);
  color: var(--cp-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 0.5rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(10, 29, 69, 0.05);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.cp-menu-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--cp-shadow);
  border-color: rgba(10, 29, 69, 0.18);
  color: var(--cp-blue);
}
.cp-menu-tile.active {
  background: linear-gradient(135deg, var(--cp-blue), #14346f);
  color: #fff;
}
.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(10, 29, 69, 0.08);
  font-size: 1.15rem;
}
.cp-menu-tile.active .tile-icon {
  background: rgba(255, 255, 255, 0.14);
  color: var(--cp-gold);
}
.tile-label {
  font-family: "Fjalla One", sans-serif;
  font-size: 0.83rem;
  line-height: 1.05rem;
  letter-spacing: 0.03em;
}
.cp-content {
  min-height: calc(100vh - 130px);
}
.cp-breadcrumb .breadcrumb-item,
.cp-breadcrumb .breadcrumb-item.active {
  color: var(--cp-muted);
}

/* CARDS */
.card,
.module-card,
.student-banner {
  border-radius: 24px;
  box-shadow: var(--cp-shadow);
  background: #fff;
}
.module-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  overflow: hidden;
}
.module-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(10, 29, 69, 0.08);
}
.module-card-head h2 {
  margin: 0;
  font-family: "Fjalla One", sans-serif;
  font-size: 1.4rem;
  color: var(--cp-blue);
}
.module-card-head p {
  margin: 0.25rem 0 0;
  color: var(--cp-muted);
  font-size: 0.93rem;
}
.module-card-body {
  padding: 1rem 1.1rem;
}
.module-chip,
.module-counter,
.soft-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--cp-blue);
  font-weight: 700;
  white-space: nowrap;
}
.module-counter {
  background: rgba(10, 29, 69, 0.06);
}
.badge-success {
  background: rgba(25, 135, 84, 0.14);
  color: #0d6a42;
}

.student-photo-frame,
.profile-photo-large,
.linked-student-photo {
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #e8eef8);
  border: 1px solid rgba(10, 29, 69, 0.08);
}
.student-photo-frame {
  width: 94px;
  height: 94px;
  border-radius: 22px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(239, 186, 33, 0.18);
}
.student-photo-frame img,
.profile-photo-large img,
.linked-student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.student-banner-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--cp-red);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.student-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--cp-muted);
  font-size: 0.95rem;
}

/* DASHBOARD */
.stack-list {
  display: grid;
  gap: 0.8rem;
}
.stack-item {
  border: 1px solid var(--cp-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  padding: 0.9rem 1rem;
}
.stack-item-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.75rem;
}
.stack-item p {
  margin: 0.45rem 0 0;
  color: var(--cp-muted);
  font-size: 0.92rem;
}
.behavior-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px dashed rgba(10, 29, 69, 0.12);
}
.behavior-line:first-child {
  border-top: 0;
  padding-top: 0;
}
.behavior-line:last-child {
  padding-bottom: 0;
}
.gauge-wrap {
  display: grid;
  place-items: center;
}
.gauge-wrap.large {
  min-height: 260px;
}
.gauge-value {
  --gauge-value: 0;
  width: 220px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 62%, transparent 63% 100%), conic-gradient(from 210deg, var(--cp-red) 0deg, var(--cp-gold) calc(var(--gauge-value) * 1.2deg), #d9e1ef 0deg, #d9e1ef 240deg, transparent 240deg);
  position: relative;
}
.gauge-wrap.large .gauge-value {
  width: 260px;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.gauge-center strong {
  font-size: 2rem;
  color: var(--cp-blue);
}
.gauge-center small {
  color: var(--cp-muted);
  font-size: 0.9rem;
}

/* SCHEDULE */
.schedule-table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 10px 8px;
}
.schedule-table th {
  background: var(--cp-blue);
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.7rem;
  font-family: "Fjalla One", sans-serif;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.schedule-table th small {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.7;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
}
.period-col {
  width: 62px;
  font-weight: 800;
  text-align: center;
  color: var(--cp-blue);
}
.schedule-class {
  width: 100%;
  min-height: 98px;
  border: 1px solid rgba(10, 29, 69, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  padding: 0.8rem;
  text-align: left;
  color: var(--cp-text);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.schedule-class:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(10, 29, 69, 0.08);
}
.schedule-class strong {
  display: block;
  font-size: 0.92rem;
}
.schedule-class span {
  display: block;
  font-size: 0.79rem;
  color: var(--cp-muted);
  margin-top: 0.2rem;
}
.schedule-class.is-empty {
  cursor: default;
  background: #f5f7fb;
  color: #9aa5ba;
}
.schedule-class.is-empty:hover {
  transform: none;
  box-shadow: none;
}
.class-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.class-meta em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--cp-muted);
}
.class-meta em.has-material {
  color: #0d6a42;
  font-weight: 700;
}
.class-dots {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4d9e4;
  display: inline-block;
}
.status-dot.ok {
  background: #198754;
}
.status-dot.bad {
  background: #dc3545;
}

/* MODULES */
.module-area {
  min-height: 240px;
}
.skeleton-box:empty::before {
  content: "Carregando...";
  display: block;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(90deg, #f1f4fa, #ffffff, #f1f4fa);
  color: var(--cp-muted);
  text-align: center;
}
.report-table {
  width: 100%;
  min-width: 780px;
  border-collapse: separate;
  border-spacing: 0;
}
.report-table thead th {
  position: sticky;
  top: 0;
  background: var(--cp-blue);
  color: #fff;
  padding: 0.85rem 0.75rem;
  font-size: 0.86rem;
  text-align: center;
  z-index: 1;
}
.report-table tbody td {
  padding: 0.8rem 0.75rem;
  border-bottom: 1px solid rgba(10, 29, 69, 0.08);
  font-size: 0.88rem;
  text-align: center;
  background: #fff;
}
.report-table tbody tr:nth-child(even) td {
  background: #fbfcff;
}
.report-table .discipline-cell {
  text-align: left;
  min-width: 220px;
}
.report-table .discipline-cell strong {
  display: block;
}
.report-table .discipline-cell small {
  display: block;
  color: var(--cp-muted);
  margin-top: 0.2rem;
}
.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}
.grade-good {
  background: rgba(25, 135, 84, 0.12);
  color: #0d6a42;
  border-color: rgba(25, 135, 84, 0.2);
}
.grade-mid {
  background: rgba(239, 186, 33, 0.24);
  color: #8c6600;
  border-color: rgba(239, 186, 33, 0.3);
}
.grade-low {
  background: rgba(220, 53, 69, 0.12);
  color: #a52834;
  border-color: rgba(220, 53, 69, 0.18);
}
.grade-empty {
  background: #f1f4fa;
  color: #98a1b5;
  border-color: rgba(10, 29, 69, 0.08);
}

.atitudinal-top {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 1rem;
  align-items: center;
}
.atitudinal-summary {
  display: grid;
  gap: 0.9rem;
}
.at-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 1rem;
}
.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.trimester-card {
  background: #fff;
  border: 1px solid var(--cp-border);
  border-radius: 22px;
  box-shadow: var(--cp-shadow);
  overflow: hidden;
}
.trimester-head {
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(180deg, #f9fbff, #f1f4fb);
  border-bottom: 1px solid rgba(10, 29, 69, 0.08);
}
.trimester-head h3 {
  margin: 0;
  font-family: "Fjalla One", sans-serif;
  color: var(--cp-blue);
}
.trimester-head p {
  margin: 0.35rem 0 0;
  color: #2d8a3d;
  font-weight: 700;
}
.trimester-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.at-card {
  width: 100%;
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  background: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}
.at-card span {
  font-weight: 700;
  color: var(--cp-text);
}
.at-card strong {
  color: var(--cp-red);
}
.at-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: #f8faff;
  border-radius: 14px;
  border: 1px solid rgba(10, 29, 69, 0.06);
}
.at-details div {
  text-align: center;
}
.at-details span {
  display: block;
  color: var(--cp-muted);
  font-size: 0.78rem;
}
.at-details strong {
  display: block;
  margin-top: 0.2rem;
}
.empty-panel {
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(10, 29, 69, 0.18);
  background: #fbfcff;
  color: var(--cp-muted);
}
.profile-main-card {
  text-align: center;
}
.profile-photo-large {
  width: min(240px, 70vw);
  height: min(300px, 80vw);
  margin: 0 auto 1rem;
  border-radius: 24px;
}
.profile-main-card h2 {
  font-family: "Fjalla One", sans-serif;
  color: var(--cp-blue);
  margin: 0;
}
.profile-main-card p {
  color: var(--cp-muted);
  margin: 0.4rem 0 0;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.profile-grid div {
  border: 1px solid var(--cp-border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fbfcff;
}
.profile-grid span {
  display: block;
  color: var(--cp-muted);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}
.profile-grid strong {
  display: block;
  font-size: 0.95rem;
}
.linked-student {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px dashed rgba(10, 29, 69, 0.12);
}
.linked-student:first-child {
  border-top: 0;
  padding-top: 0;
}
.linked-student:last-child {
  padding-bottom: 0;
}
.linked-student-photo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}
.linked-student-data strong {
  display: block;
}
.linked-student-data span {
  color: var(--cp-muted);
  font-size: 0.85rem;
}
.year-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* CARTEIRINHA */
.card-page-body {
  background: #e8edf7;
}
.student-id-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.student-id-card {
  width: min(720px, 100%);
  background: linear-gradient(135deg, var(--cp-blue), #14346f 58%, var(--cp-red));
  color: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 29, 69, 0.22);
}
.student-id-brand {
  padding: 1.4rem 1.4rem 0;
}
.student-id-brand img {
  width: min(280px, 70vw);
}
.student-id-content {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
}
.student-id-text h1 {
  font-family: "Fjalla One", sans-serif;
  margin: 0 0 1rem;
  font-size: 2rem;
}
.student-id-text p {
  margin: 0 0 0.55rem;
  font-size: 1rem;
}
.student-id-photo {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.student-id-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}
.student-id-footer {
  padding: 1rem 1.4rem 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.toast {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  .cp-menu-grid {
    grid-template-columns: repeat(5, minmax(84px, 1fr));
  }
}
@media (max-width: 1199.98px) {
  .atitudinal-top {
    grid-template-columns: 1fr;
  }
  .tri-grid {
    grid-template-columns: 1fr;
  }
  .student-id-content {
    grid-template-columns: 1fr;
  }
  .student-id-photo {
    max-width: 260px;
  }
}
@media (max-width: 991.98px) {
  .brand-logo {
    height: 40px;
  }
  .cp-menu-grid {
    grid-template-columns: repeat(4, minmax(78px, 1fr));
  }
  .student-banner .btn {
    flex: 1 1 calc(50% - 0.5rem);
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .linked-student {
    grid-template-columns: 52px 1fr;
  }
  .linked-student .btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767.98px) {
  .login-form-card,
  .chalk-board {
    padding: 1.1rem;
    border-radius: 22px;
  }
  .chalk-board {
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.9),
      0 0 0 6px rgba(127, 0, 22, 0.9),
      var(--cp-shadow);
  }
  .cp-menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .cp-menu-tile {
    min-height: 84px;
    border-radius: 16px;
    padding: 0.55rem 0.35rem;
  }
  .tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .tile-label {
    font-size: 0.76rem;
  }
  .student-photo-frame {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }
  .student-meta-line {
    font-size: 0.88rem;
  }
  .module-card-head,
  .module-card-body {
    padding: 0.95rem;
  }
  .module-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .schedule-table {
    min-width: 720px;
    border-spacing: 7px 7px;
  }
  .schedule-class {
    min-height: 90px;
    padding: 0.72rem;
  }
  .gauge-value {
    width: 190px;
  }
  .gauge-wrap.large .gauge-value {
    width: 220px;
  }
  .linked-student {
    gap: 0.7rem;
  }
  .board-notes p,
  #blackboard p {
    font-size: 0.92rem;
  }
}
@media (max-width: 575.98px) {
  .login-top-brand img {
    width: 260px;
  }
  .cp-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-banner .btn {
    flex: 1 1 100%;
  }
  .at-details {
    grid-template-columns: 1fr;
  }
}

/* HEADER PROFILE MENU PATCH */
.top-actions {
  min-width: 0;
}
.cp-refresh-btn {
  min-height: 40px;
  border-radius: 12px;
  padding-inline: 0.85rem;
}
.cp-profile-toggle {
  min-height: 44px;
  border-radius: 14px;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(78vw, 420px);
}
.cp-profile-toggle::after {
  margin-left: 0.15rem;
}
.cp-profile-mini-photo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}
.cp-profile-mini-photo img,
.cp-profile-menu-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cp-profile-toggle-text {
  min-width: 0;
  line-height: 1.08;
  color: #fff;
}
.cp-profile-toggle-text strong {
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.cp-profile-toggle-text small {
  font-size: 0.73rem;
  opacity: 0.84;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
.cp-profile-menu {
  width: min(94vw, 320px);
  border-radius: 18px;
  padding: 0.55rem;
  margin-top: 0.65rem;
}
.cp-profile-menu-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.45rem;
}
.cp-profile-menu-photo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #fff, #e8eef8);
  border: 1px solid rgba(10, 29, 69, 0.08);
}
.cp-profile-menu .dropdown-item {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 600;
  color: var(--cp-text);
}
.cp-profile-menu .dropdown-item:hover,
.cp-profile-menu .dropdown-item:focus {
  background: #eef2ff;
  color: var(--cp-blue);
}
.cp-profile-menu .dropdown-item.text-danger:hover,
.cp-profile-menu .dropdown-item.text-danger:focus {
  background: #fff1f2;
  color: #b42318;
}

@media (max-width: 767.98px) {
  .brand-logo {
    height: 38px;
  }
  .cp-topbar .py-2 {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
  }
  .cp-refresh-btn {
    width: 40px;
    padding-inline: 0;
    display: inline-grid;
    place-items: center;
  }
  .cp-profile-toggle {
    padding-right: 0.55rem;
    min-width: 0;
  }
  .cp-profile-toggle::after {
    margin-left: 0;
  }
}

/* PATCH MAY-17 REFINEMENTS */
.board-tag {
  font-size: 1.08rem;
}
.board-notes.compact p {
  font-size: 1rem;
  line-height: 1.55;
}
.module-card-head.module-card-head-compact {
  padding: 0.85rem 1rem;
}
.schedule-body-compact {
  padding: 0.8rem 0.95rem 0.95rem;
}
.compact-evals-card .module-card-body {
  padding-top: 0.75rem;
}
.stack-list-compact {
  gap: 0.55rem;
}
.stack-item.stack-item-compact {
  padding: 0.72rem 0.8rem;
  border-radius: 15px;
}
.stack-item.stack-item-compact p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
}
.stack-item.stack-item-compact .stack-item-head strong {
  font-size: 0.9rem;
  line-height: 1.15;
}
.stack-item.stack-item-compact .soft-badge {
  min-height: 28px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
}

.cp-profile-toggle {
  cursor: pointer;
}
.cp-profile-toggle:hover,
.cp-profile-toggle:focus,
.cp-profile-toggle.show {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
}
.cp-profile-toggle:hover .cp-profile-toggle-text,
.cp-profile-toggle:focus .cp-profile-toggle-text,
.cp-profile-toggle.show .cp-profile-toggle-text {
  color: #fff;
}

.schedule-table {
  min-width: 900px;
  border-spacing: 7px 6px;
}
.schedule-table th {
  padding: 0.62rem 0.55rem;
  border-radius: 11px;
  font-size: 0.95rem;
}
.period-col {
  width: 54px;
  font-size: 0.9rem;
}
.schedule-class {
  min-height: 86px;
  padding: 0.62rem 0.66rem;
  border-radius: 14px;
}
.schedule-class strong {
  font-size: 0.86rem;
  line-height: 1.08;
}
.schedule-class span {
  font-size: 0.74rem;
  margin-top: 0.15rem;
}
.class-meta {
  margin-top: 0.5rem;
  gap: 0.45rem;
  align-items: flex-end;
}
.class-meta em {
  font-size: 0.68rem;
}
.class-pdt {
  display: flex;
  align-items: center;
  gap: 0.22rem;
  flex-wrap: wrap;
}
.pdt-mark {
  min-width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  border: 1px solid #d5dce8;
  background: #edf1f7;
  color: #7a879c;
}
.pdt-mark.ok {
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.25);
  color: #0d6a42;
}
.pdt-mark.bad {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.22);
  color: #b42318;
}

.dashboard-behavior-grid,
.period-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.period-gauge-card {
  border: 1px solid var(--cp-border);
  border-radius: 18px;
  padding: 0.9rem 0.75rem;
  background: linear-gradient(180deg, #fff, #fbfcff);
  text-align: center;
}
.period-gauge-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--cp-blue);
  font-family: "Fjalla One", sans-serif;
}
.period-gauge {
  --gauge-value: 0;
  width: 110px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff 61%, transparent 62% 100%), conic-gradient(#198754 calc(var(--gauge-value) * 1%), #f0f3f8 0);
  position: relative;
}
.period-gauge.warning {
  background: radial-gradient(closest-side, #fff 61%, transparent 62% 100%), conic-gradient(#f59e0b calc(var(--gauge-value) * 1%), #f0f3f8 0);
}
.period-gauge.danger {
  background: radial-gradient(closest-side, #fff 61%, transparent 62% 100%), conic-gradient(#dc3545 calc(var(--gauge-value) * 1%), #f0f3f8 0);
}
.period-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1.05;
}
.period-gauge-center strong {
  font-size: 1.05rem;
  color: var(--cp-blue);
}
.period-gauge-center small {
  font-size: 0.68rem;
  color: var(--cp-muted);
}

.atitudinal-summary-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--cp-border);
}
.atitudinal-summary-table th,
.atitudinal-summary-table td {
  text-align: center;
  padding: 0.72rem 0.55rem;
}
.atitudinal-summary-table thead th {
  background: var(--cp-blue);
  color: #fff;
  font-family: "Fjalla One", sans-serif;
  font-weight: 400;
}
.atitudinal-summary-table tbody td {
  background: #fff;
  border-top: 1px solid rgba(10, 29, 69, 0.08);
}
.atitudinal-summary-table .divider {
  color: var(--cp-muted);
  font-size: 0.78rem;
  display: block;
  margin: 0.15rem 0;
}
.atitudinal-summary-table .pdt-title {
  font-weight: 800;
  color: var(--cp-blue);
}

.month-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.month-chip {
  border: 1px solid rgba(10, 29, 69, 0.12);
  background: #fff;
  color: var(--cp-blue);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.month-chip.active {
  background: var(--cp-blue);
  color: #fff;
  border-color: var(--cp-blue);
}
.month-section {
  margin-top: 1rem;
}
.month-title {
  margin: 0 0 0.75rem;
  color: var(--cp-blue);
  font-family: "Fjalla One", sans-serif;
  font-size: 1.2rem;
}
.eval-observation {
  display: block;
  color: var(--cp-muted);
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

.objective-goal-box {
  margin-top: 1rem;
  border: 1px solid var(--cp-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  overflow: hidden;
}
.objective-goal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(10, 29, 69, 0.08);
}
.objective-goal-head h3 {
  margin: 0;
  font-family: "Fjalla One", sans-serif;
  color: var(--cp-blue);
  font-size: 1.15rem;
}
.objective-goal-head span {
  color: var(--cp-muted);
  font-size: 0.86rem;
}
.objective-goal-list {
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}
.objective-row {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr 58px;
  gap: 0.8rem;
  align-items: center;
}
.objective-label strong {
  display: block;
  font-size: 0.9rem;
}
.objective-label small {
  color: var(--cp-muted);
  display: block;
  font-size: 0.76rem;
}
.objective-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}
.objective-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #efba21, #198754);
}
.objective-track.goal-met .objective-fill {
  background: linear-gradient(90deg, #0fa968, #198754);
}
.objective-score {
  font-weight: 800;
  text-align: right;
  color: var(--cp-blue);
}

@media (max-width: 1199.98px) {
  .dashboard-behavior-grid,
  .period-gauges {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .board-tag {
    font-size: 1rem;
  }
  .board-notes.compact p {
    font-size: 0.95rem;
  }
  .schedule-table {
    min-width: 660px;
  }
  .schedule-class {
    min-height: 78px;
    padding: 0.56rem 0.58rem;
  }
  .pdt-mark {
    min-width: 17px;
    height: 17px;
    font-size: 0.62rem;
  }
  .objective-row {
    grid-template-columns: 1fr;
  }
}

/* PATCH MAY-17 ORIGINAL-LIKE DASHBOARD */
.cp-profile-toggle:hover,
.cp-profile-toggle:focus,
.cp-profile-toggle.show {
  background: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.cp-profile-toggle:hover .cp-profile-toggle-text,
.cp-profile-toggle:focus .cp-profile-toggle-text,
.cp-profile-toggle.show .cp-profile-toggle-text {
  color: inherit;
}
.dashboard-news-card .module-card-body {
  padding-top: 0.8rem;
}
.news-eval-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.news-eval-item {
  border: 1px solid rgba(10, 29, 69, 0.1);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 82px;
  display: flex;
  flex-direction: column;
}
.news-eval-date {
  display: block;
  background: #800;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  padding: 0.22rem 0.4rem;
}
.news-eval-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.15;
  text-align: center;
  padding: 0.42rem 0.55rem 0.22rem;
  color: var(--cp-text);
}
.news-eval-subject {
  display: block;
  padding: 0 0.55rem 0.45rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--cp-muted);
  line-height: 1.2;
}
.schedule-table.original-like {
  min-width: 980px;
  border-spacing: 6px 6px;
  table-layout: fixed;
}
.schedule-table.original-like th {
  width: 19%;
  border-radius: 9px;
  padding: 0.58rem 0.4rem;
  font-size: 1rem;
}
.schedule-table.original-like .time-head {
  width: 58px;
}
.schedule-table.original-like .period-col {
  width: 58px;
  font-size: 1.2rem;
  font-family: "Fjalla One", sans-serif;
  color: var(--cp-blue);
}
.schedule-table.original-like .schedule-class {
  min-height: 88px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid rgba(51, 51, 51, 0.16);
  padding: 0.45rem 0.35rem 0.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}
.schedule-table.original-like .schedule-class:hover {
  transform: none;
  box-shadow: none;
  background: rgba(239, 186, 33, 0.18);
}
.schedule-table.original-like .schedule-class.is-empty {
  background: #f1f4f8;
}
.schedule-subject {
  display: block;
  text-align: center;
  color: #800;
  font-family: "Fjalla One", sans-serif;
  font-size: 1.04rem;
  line-height: 1.05;
}
.schedule-teacher {
  display: block;
  text-align: center;
  color: var(--cp-text);
  font-size: 0.76rem;
  text-transform: uppercase;
  line-height: 1.15;
  min-height: 28px;
}
.class-pdt.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.15rem;
}
.pdt-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  font-family: "Fjalla One", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
  color: #cfd6e1;
}
.pdt-flag.ok {
  color: #198754;
}
.pdt-flag.bad {
  color: #dc3545;
}

.behavior-compact-body {
  padding-top: 0.85rem;
}
.behavior-legend-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--cp-muted);
  font-size: 0.82rem;
}
.behavior-legend-line strong {
  color: var(--cp-blue);
}
.dashboard-behavior-grid.compact,
.period-gauges.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.period-gauge-card.compact {
  padding: 0.6rem 0.45rem;
  border-radius: 14px;
}
.period-gauge-card.compact h3 {
  margin-bottom: 0.45rem;
  font-size: 0.86rem;
}
.period-gauge.compact {
  width: 84px;
  background: radial-gradient(closest-side, #fff 63%, transparent 64% 100%), conic-gradient(#198754 calc(var(--gauge-value) * 1%), #edf1f7 0);
}
.period-gauge.compact.warning {
  background: radial-gradient(closest-side, #fff 63%, transparent 64% 100%), conic-gradient(#f59e0b calc(var(--gauge-value) * 1%), #edf1f7 0);
}
.period-gauge.compact.danger {
  background: radial-gradient(closest-side, #fff 63%, transparent 64% 100%), conic-gradient(#dc3545 calc(var(--gauge-value) * 1%), #edf1f7 0);
}
.period-gauge.compact .period-gauge-center strong {
  font-size: 0.92rem;
}
.atitudinal-summary-table.compact {
  margin-top: 0.8rem;
  border-radius: 14px;
}
.atitudinal-summary-table.compact th,
.atitudinal-summary-table.compact td {
  padding: 0.58rem 0.45rem;
  font-size: 0.84rem;
}
.atitudinal-summary-table.compact .pdt-title small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--cp-muted);
}
.board-notes.compact p {
  font-size: 1.06rem;
}

.objective-goal-box.beside-table {
  margin-top: 0;
  position: sticky;
  top: 94px;
}
.objective-goal-box.beside-table .objective-goal-head {
  padding: 0.85rem 0.9rem;
}
.objective-goal-box.beside-table .objective-goal-head h3 {
  font-size: 1rem;
  line-height: 1.15;
}
.objective-goal-box.beside-table .objective-goal-list {
  padding: 0.85rem;
}
.objective-goal-box.beside-table .objective-row {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}
.objective-goal-box.beside-table .objective-track {
  height: 12px;
}
.objective-goal-box.beside-table .objective-score {
  text-align: left;
  font-size: 0.84rem;
}

@media (max-width: 1199.98px) {
  .news-eval-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .objective-goal-box.beside-table {
    position: static;
  }
}
@media (max-width: 991.98px) {
  .news-eval-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .news-eval-grid {
    grid-template-columns: 1fr;
  }
  .schedule-table.original-like {
    min-width: 720px;
  }
  .schedule-table.original-like .schedule-class {
    min-height: 82px;
    height: 82px;
  }
  .schedule-subject {
    font-size: 0.94rem;
  }
  .schedule-teacher {
    font-size: 0.7rem;
    min-height: 24px;
  }
  .class-pdt.centered {
    gap: 0.6rem;
  }
  .pdt-flag {
    font-size: 1.16rem;
  }
  .dashboard-behavior-grid.compact,
  .period-gauges.compact {
    grid-template-columns: 1fr;
  }
  .board-notes.compact p {
    font-size: 1rem;
  }
}

/* Boletim original-like, scoped so it does not affect dashboard/header */
.boletim-scroll {
  overflow-x: auto;
}
.boletim-original-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}
.boletim-original-table thead th {
  background: var(--cp-blue);
  color: #fff;
  text-align: center;
  padding: 0.7rem 0.35rem;
  font-family: "Fjalla One", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-right: 2px solid #fff;
  white-space: nowrap;
}
.boletim-original-table thead th:first-child {
  border-top-left-radius: 0.4rem;
}
.boletim-original-table thead th:last-child {
  border-top-right-radius: 0.4rem;
  border-right: 0;
}
.boletim-head-disc {
  min-width: 220px;
}
.boletim-head-objetivo {
  min-width: 420px;
}
.boletim-original-table tbody td {
  padding: 0;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  vertical-align: middle;
}
.boletim-original-table tbody tr:nth-child(odd) td:not(.boletim-objetivo-cell) {
  background: #efefef;
}
.boletim-original-table tbody tr:nth-child(even) td:not(.boletim-objetivo-cell) {
  background: #f8f8f8;
}
.boletim-disciplina {
  min-width: 220px;
  padding: 0.5rem;
}
.boletim-disciplina p {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.boletim-disciplina small {
  display: block;
  margin-top: 0.1rem;
  color: #9a0e0e;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}
.boletim-grade-cell {
  width: 64px;
  min-width: 64px;
  height: 42px;
  text-align: center;
  font-weight: 800;
  font-size: 1.04rem;
  color: #fff;
}
.boletim-grade-cell.good,
.boletim-grade-cell.success {
  background: #028100 !important;
}
.boletim-grade-cell.mid,
.boletim-grade-cell.warning {
  background: #ffa300 !important;
}
.boletim-grade-cell.low,
.boletim-grade-cell.danger {
  background: #ff120b !important;
}
.boletim-grade-cell.empty {
  background: #efefef !important;
  color: transparent;
}
.boletim-objetivo-cell {
  width: 420px;
  min-width: 420px;
  background: #f8f8f8 !important;
  padding: 0.2rem 0.35rem;
}
.objetivo-lane {
  position: relative;
  height: 42px;
  background: #f8f8f8;
}
.objetivo-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border-radius: 0.28rem;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}
.objetivo-fill.warning {
  background: #ffa300;
}
.objetivo-fill.success {
  background: #028100;
}
.objetivo-target {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 42px;
  background: repeating-linear-gradient(90deg, #d8d8d8 0 4px, #f8f8f8 4px 8px);
}
.boletim-footer-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}
.boletim-legend-box {
  display: grid;
  gap: 0.55rem;
}
.boletim-legend-box span {
  color: var(--cp-blue);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (max-width: 991.98px) {
  .boletim-footer-grid {
    grid-template-columns: 1fr;
  }
  .boletim-original-table {
    min-width: 1180px;
  }
}

/* Behavior compact refinements */
.behavior-module-shell {
  max-width: 1120px;
}
.behavior-legend-line.compact-center {
  justify-content: center;
  text-align: center;
}
.period-gauges.compact.compact-fit {
  max-width: 760px;
  margin: 0 auto;
}
.behavior-summary-shell {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
}
.atitudinal-summary-table.compact.compact-width {
  width: auto;
  min-width: 520px;
  margin-top: 0;
}
.atitudinal-summary-table.compact.compact-width td strong {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.atitudinal-summary-table.compact .divider {
  display: inline;
  margin: 0 0.2rem;
}
.tri-grid.compact-centered {
  /* grid-template-columns: repeat(3, minmax(260px, 340px)); */
  justify-content: center;
}
.at-card strong.at-grade-good {
  color: #198754;
}
.at-card strong.at-grade-mid {
  color: #f59e0b;
}
.at-card strong.at-grade-low {
  color: #dc3545;
}
.at-card strong.at-grade-empty {
  color: var(--cp-muted);
}
.at-details strong {
  display: inline-block;
  margin-top: 0.2rem;
}

/* Professional global footer */
.cp-footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
  border-top: 1px solid var(--cp-border);
}
.cp-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding: 1rem 0 1.15rem;
}
.cp-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cp-blue);
}
.cp-footer-brand img {
  height: 28px;
  width: auto;
}
.cp-footer-brand strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.cp-footer-brand small {
  display: block;
  color: var(--cp-muted);
  font-size: 0.76rem;
}
.cp-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: var(--cp-muted);
  font-size: 0.8rem;
}
.cp-footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
@media (max-width: 991.98px) {
  .behavior-module-shell {
    max-width: 100%;
  }
  .tri-grid.compact-centered {
    grid-template-columns: 1fr;
  }
  .period-gauges.compact.compact-fit {
    max-width: 100%;
  }
  .atitudinal-summary-table.compact.compact-width {
    min-width: 100%;
  }
  .cp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* PATCH MAY-17 NIGHT: header, mobile menu, schedule slider, evaluation slider */
.brand-link-stacked {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}
.brand-logo-full {
  height: 42px;
  width: auto;
  max-width: min(78vw, 360px);
  object-fit: contain;
}
.brand-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.cp-mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 1.35rem;
  padding: 0;
}
.cp-mobile-menu-toggle:hover,
.cp-mobile-menu-toggle:focus {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cp-mobile-menu-backdrop {
  position: fixed;
  inset: 70px 0 0;
  background: rgba(10, 29, 69, 0.32);
  z-index: 1025;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cp-mobile-menu-backdrop.show {
  opacity: 1;
}
.schedule-head-wrap {
  align-items: center;
}
.schedule-week-picker {
  min-width: 220px;
}
.schedule-week-picker .form-label {
  color: var(--cp-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.schedule-week-picker .form-select {
  min-height: 38px;
  border-radius: 999px;
  border-color: rgba(10, 29, 69, 0.1);
  font-weight: 700;
  color: var(--cp-blue);
  background-color: #edf2ff;
}

.snap-carousel {
  position: relative;
}
.snap-controls {
  position: absolute;
  inset: 50% 0 auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.carousel-nav {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(10, 29, 69, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--cp-blue);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(10, 29, 69, 0.12);
}
.carousel-nav:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.snap-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.snap-viewport::-webkit-scrollbar {
  display: none;
}
.snap-track {
  --per-view: 5;
  --gap: 0.65rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gap) * (var(--per-view) - 1))) / var(--per-view));
  gap: var(--gap);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #cfd6e1;
  padding: 0;
}
.carousel-dot.active {
  background: var(--cp-blue);
}
.is-single-page .snap-controls,
.is-single-page .carousel-dots {
  display: none;
}

.eval-slider .snap-controls {
  left: 0.25rem;
  right: 0.25rem;
}
.eval-slider .news-eval-item {
  min-height: 98px;
  border-radius: 16px;
  scroll-snap-align: start;
}
.eval-slider .news-eval-date {
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
}
.eval-slider .news-eval-item strong {
  font-size: 0.95rem;
  padding-top: 0.6rem;
}
.eval-slider .news-eval-subject {
  font-size: 0.85rem;
  padding-bottom: 0.7rem;
}

.schedule-desktop-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}
.schedule-day-column,
.schedule-mobile-day {
  min-width: 0;
}
.schedule-day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: var(--cp-blue);
  color: #fff;
  font-family: "Fjalla One", sans-serif;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.05;
}
.schedule-day-head small {
  margin-top: 0.2rem;
  font-family: "Inter", sans-serif;
  font-size: 0.76rem;
  opacity: 0.78;
}
.schedule-day-stack {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.34rem;
}
.schedule-class-card {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(10, 29, 69, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 0.38rem 0.4rem;
  text-align: left;
}
.schedule-class-card.is-empty {
  background: #f3f6fa;
  color: #9aa5ba;
}
.schedule-class-card:hover {
  background: rgba(239, 186, 33, 0.14);
  box-shadow: none;
  transform: none;
}
.schedule-period-index {
  font-family: "Fjalla One", sans-serif;
  color: #6f7c95;
  font-size: 1.1rem;
  text-align: center;
}
.schedule-card-content {
  min-width: 0;
}
.schedule-class-card .schedule-subject {
  display: block;
  text-align: center;
  color: #a01818;
  font-family: "Fjalla One", sans-serif;
  font-size: 0.92rem;
  line-height: 1.02;
}
.schedule-class-card .schedule-teacher {
  display: block;
  min-height: 18px;
  margin-top: 0.1rem;
  text-align: center;
  color: var(--cp-text);
  font-size: 0.63rem;
  text-transform: uppercase;
  line-height: 1.05;
}
.class-pdt.compact {
  gap: 0.65rem;
  margin-top: 0.15rem;
}
.class-pdt.compact .pdt-flag {
  min-width: 12px;
  font-size: 1rem;
}
.schedule-mobile-slider .snap-controls {
  left: 0.35rem;
  right: 0.35rem;
  top: 32px;
  transform: none;
}
.schedule-mobile-track {
  --gap: 0.75rem;
}
.schedule-mobile-day {
  scroll-snap-align: start;
}
.schedule-mobile-day .schedule-day-stack {
  margin-top: 0.55rem;
}
.schedule-mobile-day .schedule-class-card {
  min-height: 74px;
}
.eval-observation.is-scheduled {
  color: #0a1d45;
  font-weight: 700;
}

/* Carteirinha no celular: manter o layout do desktop */
@media (max-width: 767.98px) {
  .student-id-page {
    display: block;
    overflow: auto;
    padding: 1rem;
  }
  .student-id-card {
    width: 760px;
    max-width: none;
    margin: 0 auto;
  }
  .student-id-content {
    grid-template-columns: 1.15fr 0.85fr !important;
  }
  .student-id-photo {
    max-width: none !important;
  }
}

@media (max-width: 991.98px) {
  .brand-logo-full {
    height: 34px;
    max-width: min(64vw, 280px);
  }
  .brand-subtitle {
    font-size: 0.72rem;
  }
  .cp-menu-strip {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 1030;
    display: none;
    padding-bottom: 0.85rem;
    box-shadow: 0 20px 40px rgba(10, 29, 69, 0.18);
  }
  .cp-menu-strip.is-open {
    display: block;
  }
  .cp-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
  .schedule-head-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .schedule-week-picker {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .cp-refresh-btn {
    width: 40px;
    padding-inline: 0;
  }
  .eval-slider .snap-track,
  .schedule-mobile-track {
    --per-view: 1;
  }
  .eval-slider .news-eval-item {
    min-height: 108px;
  }
  .schedule-body-compact {
    padding-inline: 0.75rem;
  }
}

/* PATCH MAY-17 LATE: align shell, desktop menu, mobile menu lock, dashboard board */
.cp-shell-max {
  width: 100%;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.cp-topbar .cp-shell-max,
.cp-menu-strip .cp-shell-max,
.cp-content .cp-shell-max,
.cp-footer .cp-shell-max {
  width: 100%;
}

.cp-content {
  min-height: calc(100vh - 188px);
}

.cp-main-nav {
  width: 100%;
}

@media (min-width: 992px) {
  .cp-menu-strip {
    display: block !important;
    position: static;
  }

  .cp-menu-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .cp-menu-tile {
    min-height: 84px;
    padding: 0.6rem 0.45rem;
  }
}

.cp-profile-toggle,
.cp-profile-toggle:hover,
.cp-profile-toggle:focus,
.cp-profile-toggle.show {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: none !important;
}

.cp-profile-toggle .cp-profile-toggle-text,
.cp-profile-toggle:hover .cp-profile-toggle-text,
.cp-profile-toggle:focus .cp-profile-toggle-text,
.cp-profile-toggle.show .cp-profile-toggle-text {
  color: #fff !important;
}

body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}

body.mobile-menu-open .cp-content,
body.mobile-menu-open .cp-footer {
  pointer-events: none;
}

body.mobile-menu-open .cp-menu-strip,
body.mobile-menu-open .cp-mobile-menu-backdrop,
body.mobile-menu-open .cp-topbar {
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .cp-menu-strip {
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.55rem;
  }

  .cp-menu-strip .cp-shell-max {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }

  .cp-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .cp-menu-tile {
    min-height: 72px;
    border-radius: 14px;
    padding: 0.45rem 0.4rem;
    gap: 0.3rem;
  }

  .tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .tile-label {
    font-size: 0.78rem;
    line-height: 0.95rem;
  }
}

.dashboard-news-card,
.module-card,
.chalk-board,
.cp-footer-inner {
  max-width: 100%;
}

.chalk-board.board-inline {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767.98px) {
  .brand-logo-full {
    max-width: min(58vw, 240px);
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }
}

/* PATCH: shell alignment, desktop menu, mobile menu lock, current week button */
.cp-shell-max {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
}

.cp-topbar .cp-shell-max,
.cp-menu-strip .cp-shell-max,
.cp-content .cp-shell-max,
.cp-footer .cp-shell-max {
  width: 100%;
}

.cp-main-nav,
.cp-menu-grid,
.module-card,
.chalk-board.board-inline,
.cp-footer-inner {
  width: 100%;
}

@media (min-width: 992px) {
  .cp-menu-strip {
    display: block !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .cp-menu-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    gap: 0.7rem !important;
  }

  .cp-menu-tile {
    min-height: 88px !important;
  }
}

.schedule-week-picker-group {
  display: flex;
  align-items: end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.schedule-current-week-btn {
  min-height: 38px;
  border-radius: 999px;
  font-weight: 700;
}

.cp-profile-toggle,
.cp-profile-toggle:hover,
.cp-profile-toggle:focus,
.cp-profile-toggle.show {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.38) !important;
  box-shadow: none !important;
}

.cp-profile-toggle .cp-profile-toggle-text,
.cp-profile-toggle:hover .cp-profile-toggle-text,
.cp-profile-toggle:focus .cp-profile-toggle-text,
.cp-profile-toggle.show .cp-profile-toggle-text {
  color: #fff !important;
}

body.mobile-menu-open {
  overflow: hidden;
  height: 100vh;
}

body.mobile-menu-open .cp-content,
body.mobile-menu-open .cp-footer {
  pointer-events: none;
}

body.mobile-menu-open .cp-menu-strip,
body.mobile-menu-open .cp-mobile-menu-backdrop,
body.mobile-menu-open .cp-topbar {
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .cp-menu-strip {
    position: fixed !important;
    top: 72px !important;
    left: 0;
    right: 0;
    z-index: 1030;
    display: none;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.45rem;
    box-shadow: 0 20px 40px rgba(10, 29, 69, 0.18);
  }

  .cp-menu-strip.is-open {
    display: block !important;
  }

  .cp-menu-strip .cp-shell-max {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }

  .cp-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .cp-menu-tile {
    min-height: 72px !important;
    border-radius: 14px !important;
    padding: 0.45rem 0.4rem !important;
    gap: 0.3rem !important;
  }

  .tile-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .tile-label {
    font-size: 0.78rem;
    line-height: 0.95rem;
  }
}

/* PATCH: Boletim desktop without horizontal scroll */
@media (min-width: 992px) {
  .boletim-scroll {
    overflow-x: visible;
  }
  .boletim-original-table {
    min-width: 0;
    table-layout: fixed;
  }
  .boletim-head-disc {
    min-width: 180px;
    width: 180px;
  }
  .boletim-head-objetivo {
    min-width: 320px;
    width: 320px;
  }
  .boletim-disciplina {
    min-width: 180px;
    width: 180px;
    padding: 0.4rem 0.45rem;
  }
  .boletim-disciplina p {
    font-size: 0.9rem;
  }
  .boletim-disciplina small {
    font-size: 0.72rem;
  }
  .boletim-grade-cell {
    width: 52px;
    min-width: 52px;
    height: 38px;
    font-size: 0.92rem;
  }
  .boletim-original-table thead th {
    padding: 0.58rem 0.18rem;
    font-size: 0.88rem;
  }
  .boletim-objetivo-cell {
    width: 320px;
    min-width: 320px;
    padding: 0.16rem 0.22rem;
  }
  .objetivo-lane {
    height: 38px;
  }
  .objetivo-fill {
    min-width: 44px;
    height: 38px;
    font-size: 1rem;
  }
  .objetivo-target {
    width: 22px;
    height: 38px;
  }
}


/* Módulo: Indicações */
.indicacoes-page {
  display: grid;
  gap: 1rem;
}


.indicacoes-page .module-card-head {
  align-items: center;
}

.indicacoes-form .form-label {
  color: var(--cp-blue);
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.indicacoes-form .form-control,
.indicacoes-form .form-select,
.indicacoes-toolbar .form-control,
.indicacoes-toolbar .form-select {
  border-radius: 14px;
  border-color: rgba(10, 29, 69, 0.16);
  min-height: 42px;
}

.indicacoes-form .form-control:focus,
.indicacoes-form .form-select:focus,
.indicacoes-toolbar .form-control:focus,
.indicacoes-toolbar .form-select:focus {
  border-color: rgba(10, 29, 69, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(10, 29, 69, 0.08);
}

.indicacoes-submit-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

.indicacoes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  align-items: center;
}

.indicacoes-toolbar .input-group {
  width: min(100%, 330px);
}

.indicacoes-table.report-table {
  min-width: 760px;
}

.indicacoes-table.report-table thead th {
  text-align: left;
}

.indicacoes-table.report-table tbody td {
  text-align: left;
  vertical-align: middle;
}

.indicacoes-person strong,
.indicacoes-student strong {
  display: block;
  color: var(--cp-blue);
}

.indicacoes-person small,
.indicacoes-student small {
  color: var(--cp-muted);
}

.badge-status,
.badge-turno {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-turno {
  color: var(--cp-blue);
  background: rgba(10, 29, 69, 0.08);
}

.status-pendente {
  color: #8a5a00;
  background: rgba(255, 193, 7, 0.18);
}

.status-contatado {
  color: #075985;
  background: rgba(14, 165, 233, 0.14);
}

.status-interessado {
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
}

.status-matriculado {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.16);
}

.status-nao {
  color: #842029;
  background: rgba(220, 53, 69, 0.14);
}

.indicacoes-empty {
  padding: 1.75rem;
  text-align: center !important;
  color: var(--cp-muted);
}

@media (max-width: 767.98px) {

  .indicacoes-toolbar {
    justify-content: stretch;
  }

  .indicacoes-toolbar .input-group,
  .indicacoes-toolbar .form-select {
    width: 100% !important;
  }

  .indicacoes-submit-row .btn {
    width: 100%;
  }
}
