/* =========================================================
   LICEU ERNESTO MUTHEMBA
   PORTAL ACADÉMICO
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

/* =========================================================
   CORES
   ========================================================= */

:root {
  --green: #83d32d;
  --green-dark: #5eae1c;
  --green-light: #a5e65a;

  --dark: #353638;
  --dark-light: #444548;

  --yellow: #f2c94c;

  --white: #ffffff;
  --light: #f7f8f5;

  --gray: #777;
  --gray-light: #eeeeee;

  --border: #e5e5e5;

  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  --transition: all 0.3s ease;
}

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.top-bar {
  width: 100%;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
}

.top-bar-content {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.9;
}

.top-contact i {
  color: var(--green);
}

.top-account {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-account a {
  transition: var(--transition);
}

.top-account a:hover {
  color: var(--green);
}

.top-button {
  background: var(--green);
  color: #fff !important;
  padding: 11px 18px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.top-button:hover {
  background: var(--green-dark);
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

.main-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-content {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* LOGOTIPO */

.school-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-symbol {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: inherit;
  font-size: 22px;
}

.logo-symbol::before,
.logo-symbol::after {
  content: none !important;
  display: none !important;
}

.logo-symbol img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  filter: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text h1 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo-text h2 {
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  margin-top: 3px;
  letter-spacing: 0.8px;
}

.logo-text span {
  color: #999;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-top: 4px;
}

/* =========================================================
   MENU
   ========================================================= */

.main-navigation > ul {
  display: flex;
  align-items: center;
}

.main-navigation > ul > li {
  position: relative;
}

.main-navigation > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 34px 13px;
  color: #333;
  font-size: 10px;
  font-weight: 600;
  transition: var(--transition);
}

.main-navigation > ul > li > a:hover,
.main-navigation > ul > li > a.active {
  color: var(--green-dark);
}

.main-navigation > ul > li > a.active {
  position: relative;
}

/* O estado activo fica indicado pela cor do texto, sem traço verde sob o menu. */
.main-navigation > ul > li > a.active::after {
  content: none !important;
  display: none !important;
}

.main-navigation i {
  font-size: 8px;
}

/* DROPDOWN */

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.has-dropdown:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  border-bottom: 1px solid #f0f0f0;
}

.dropdown a {
  display: block;
  padding: 12px 17px;
  color: #444;
  font-size: 11px;
  transition: var(--transition);
}

.dropdown a:hover {
  background: #f5faef;
  color: var(--green-dark);
  padding-left: 22px;
}

/* PESQUISA */

.search-button a {
  padding-left: 17px !important;
  padding-right: 0 !important;
}

.search-button i {
  font-size: 13px;
}

/* MENU MOBILE */

.mobile-menu-button {
  display: none;
  background: var(--green);
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 3px;
  font-size: 18px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  position: relative;
  min-height: 510px;
  background-image: url("/static/escola.b7b63c1064a8.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.68),
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0.18)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
  color: #fff;
  padding: 70px 0;
}

.hero-small-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #e9e9e9;
}

.hero-text h2 {
  font-family: "Roboto Slab", serif;
  font-size: clamp(36px, 5vw, 55px);
  line-height: 1.13;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text p {
  max-width: 570px;
  color: #eee;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* BOTÕES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 25px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: #333;
}

.btn-secondary:hover {
  background: var(--green);
  color: #fff;
}

/* SETAS */

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 55px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  transition: var(--transition);
}

.hero-arrow:hover {
  background: var(--green);
}

.hero-arrow-left {
  left: 0;
}

.hero-arrow-right {
  right: 0;
}

/* PONTOS */

.hero-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  width: 24px;
  border-radius: 10px;
  background: var(--green);
}

/* =========================================================
   ACESSOS RÁPIDOS
   ========================================================= */

.quick-access {
  background: var(--dark);
  color: #fff;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-card {
  min-height: 105px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.quick-card:hover {
  background: #3e3f41;
}

.quick-icon {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border: 1px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.quick-content h3 {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.quick-content p {
  font-size: 8px;
  line-height: 1.5;
  color: #bbb;
  margin-bottom: 4px;
}

.quick-content a {
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.section-heading h2 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 32px;
  line-height: 1.25;
  margin: 8px 0 10px;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
  color: #888;
  font-size: 12px;
}

/* =========================================================
   SOBRE
   ========================================================= */

.about-section {
  padding: 90px 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  left: -12px;
  top: -12px;
  border-top: 4px solid var(--green);
  border-left: 4px solid var(--green);
  z-index: 1;
}

.about-image-badge {
  position: absolute;
  right: 25px;
  bottom: 25px;
  background: var(--green);
  color: #fff;
  padding: 15px 22px;
  display: flex;
  flex-direction: column;
}

.about-image-badge strong {
  font-family: "Roboto Slab", serif;
  font-size: 23px;
}

.about-image-badge span {
  font-size: 9px;
}

.about-content > .section-subtitle {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.about-content h2 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 38px;
  line-height: 1.2;
  margin: 8px 0 20px;
}

.about-content h2 span {
  color: var(--green-dark);
}

.about-content p {
  color: #777;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 13px;
}

.about-intro {
  color: #555 !important;
  font-weight: 600;
  font-size: 15px !important;
}

/* =========================================================
   SERVIÇOS
   ========================================================= */

.portal-services {
  background: #f7f8f5;
  padding: 90px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  padding: 32px 28px;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--green);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: #f0f8e7;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-card h3 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.service-card p {
  color: #888;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
}

.service-link {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

/* =========================================================
   ÁREAS
   ========================================================= */

.user-areas {
  padding: 90px 0;
  background: #fff;
}

.user-area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.user-area-card {
  text-align: center;
  padding: 38px 30px;
  border: 1px solid #e9e9e9;
  transition: var(--transition);
}

.user-area-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.user-area-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f8e7;
  color: var(--green-dark);
  font-size: 27px;
}

.user-area-card h3 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 20px;
  margin-bottom: 10px;
}

.user-area-card p {
  color: #888;
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.user-area-card a {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

/* =========================================================
   ESTATÍSTICAS
   ========================================================= */

.statistics-section {
  position: relative;
  padding: 70px 0;
  background-image: url("/static/escola.b7b63c1064a8.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
}

.statistics-overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 36, 37, 0.86);
}

.statistics-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  color: var(--green);
  font-size: 25px;
  margin-bottom: 10px;
}

.stat-item strong {
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 7px;
}

.stat-item span {
  color: #ccc;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* =========================================================
   AVISOS
   ========================================================= */

.information-section {
  padding: 90px 0;
}

.information-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 65px;
}

.section-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.section-title-row span {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

.section-title-row h2 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 25px;
}

.section-title-row > a {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

.announcement-card {
  display: flex;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid #eee;
}

.announcement-date {
  min-width: 60px;
  height: 60px;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.announcement-date strong {
  font-family: "Roboto Slab", serif;
  font-size: 23px;
  line-height: 1;
}

.announcement-date span {
  font-size: 8px;
  font-weight: 700;
}

.announcement-category {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

.announcement-content h3 {
  color: var(--dark);
  font-size: 14px;
  margin: 3px 0 5px;
}

.announcement-content p {
  color: #888;
  font-size: 10px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.announcement-content a {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

/* =========================================================
   EVENTOS
   ========================================================= */

.event-list {
  border: 1px solid #eee;
}

.event-item {
  display: flex;
  gap: 15px;
  padding: 18px;
  border-bottom: 1px solid #eee;
}

.event-item:last-child {
  border-bottom: none;
}

.event-icon {
  min-width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f8e7;
  color: var(--green-dark);
}

.event-item span {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

.event-item h3 {
  color: var(--dark);
  font-size: 12px;
  margin: 2px 0;
}

.event-item p {
  color: #999;
  font-size: 9px;
}

/* =========================================================
   NOTÍCIAS
   ========================================================= */

.news-section {
  padding: 90px 0;
  background: #f7f8f5;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  background: #fff;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.news-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.06);
}

.news-date {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: var(--green);
  color: #fff;
  width: 55px;
  height: 55px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.news-date strong {
  font-family: "Roboto Slab", serif;
  font-size: 21px;
}

.news-date span {
  font-size: 8px;
  font-weight: 700;
}

.news-content {
  padding: 23px;
}

.news-content > span {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

.news-content h3 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  line-height: 1.4;
  margin: 6px 0 9px;
}

.news-content p {
  color: #888;
  font-size: 10px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.news-content a {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

/* =========================================================
   CHAMADA PORTAL
   ========================================================= */

.portal-call {
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 55px 0;
}

.portal-call-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.portal-call-content > div {
  max-width: 700px;
}

.portal-call-content span {
  font-size: 9px;
  font-weight: 700;
}

.portal-call-content h2 {
  font-family: "Roboto Slab", serif;
  font-size: 30px;
  line-height: 1.3;
  margin: 5px 0 8px;
}

.portal-call-content p {
  font-size: 11px;
}

.btn-light {
  background: #fff;
  color: var(--dark);
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.main-footer {
  background: var(--dark);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 45px;
  padding: 65px 0 50px;
}

.footer-column h3 {
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  position: relative;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--green);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-logo .logo-symbol {
  width: 42px;
  height: 42px;
}

.footer-logo strong {
  display: block;
  font-size: 12px;
}

.footer-logo span {
  color: #999;
  font-size: 7px;
}

.footer-school > p {
  color: #aaa;
  font-size: 10px;
  line-height: 1.9;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.social-links a {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #424346;
  color: #bbb;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--green);
  color: #fff;
}

.footer-column ul li {
  margin-bottom: 9px;
}

.footer-column ul li a {
  color: #aaa;
  font-size: 10px;
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--green);
}

.contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  color: #aaa;
  font-size: 10px;
}

.contact-list i {
  color: var(--green);
  width: 15px;
}

/* COPYRIGHT */

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p,
.footer-bottom a {
  color: #888;
  font-size: 9px;
}

.footer-bottom a {
  margin-left: 20px;
}

/* =========================================================
   VOLTAR AO TOPO
   ========================================================= */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================================
   ANIMAÇÃO
   ========================================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  animation: fadeInUp 0.8s ease both;
}

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--green-dark);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .main-navigation > ul > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 9px;
  }

  .hero-text h2 {
    font-size: 45px;
  }
}

/* =========================================================
   TABLET PEQUENO
   ========================================================= */

@media (max-width: 900px) {
  .top-contact span:nth-child(2),
  .top-contact span:nth-child(3) {
    display: none;
  }

  .main-navigation {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-area-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .statistics-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 35px;
  }

  .information-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .container {
    width: 92%;
  }

  .top-bar {
    display: none;
  }

  .logo-symbol {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .logo-text h1 {
    font-size: 17px;
  }

  .logo-text h2 {
    font-size: 10px;
  }

  .hero-section {
    min-height: 520px;
  }

  .hero-text {
    padding: 55px 0;
  }

  .hero-text h2 {
    font-size: 34px;
  }

  .hero-text p {
    font-size: 12px;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .about-section,
  .portal-services,
  .user-areas,
  .information-section,
  .news-section {
    padding: 65px 0;
  }

  .section-heading h2 {
    font-size: 27px;
  }

  .about-image img {
    height: 280px;
  }

  .about-content h2 {
    font-size: 31px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .user-area-grid {
    grid-template-columns: 1fr;
  }

  .statistics-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .portal-call-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 18px 0;
  }
}

/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 400px) {
  .hero-text h2 {
    font-size: 29px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .statistics-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MENU MOBILE - JAVASCRIPT
   ========================================================= */

@media (max-width: 900px) {
  .main-navigation.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .main-navigation.mobile-active > ul {
    display: block;
  }

  .main-navigation.mobile-active > ul > li {
    border-bottom: 1px solid #eee;
  }

  .main-navigation.mobile-active > ul > li > a {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
  }

  .main-navigation.mobile-active .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--green);
  }

  .main-navigation.mobile-active .dropdown-open > .dropdown {
    display: block;
  }
}

/* =========================================================
   LOGIN — PORTAL ACADÉMICO
   ========================================================= */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48% 52%;
  background: #fff;
}

/* =========================================================
   LADO VISUAL
   ========================================================= */

.login-visual {
  position: relative;
  min-height: 100vh;
  background-image: url("/static/escola.b7b63c1064a8.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.login-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(35, 36, 38, 0.9),
    rgba(55, 75, 40, 0.72)
  );
}

.login-visual-content {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 570px;
  margin: 0 auto;
  color: #fff;
}

.login-school-symbol {
  width: 68px;
  height: 68px;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 25px;
}

.login-small-title {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.login-visual-content h1 {
  font-family: "Roboto Slab", serif;
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.12;
  margin-bottom: 18px;
}

.login-line {
  width: 55px;
  height: 3px;
  background: var(--green);
  margin-bottom: 18px;
}

.login-visual-content > p {
  font-size: 13px;
  color: #ddd;
}

.login-visual-content .login-quote {
  max-width: 430px;
  margin-top: 80px;
  padding-left: 18px;
  border-left: 2px solid var(--green);
  color: #eee;
  font-family: "Roboto Slab", serif;
  font-size: 14px;
  line-height: 1.8;
}

/* =========================================================
   ÁREA DO LOGIN
   ========================================================= */

.login-area {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
  background: #fff;
}

.login-container {
  width: 100%;
  max-width: 460px;
}

/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 42px;
}

.login-logo-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #f0f8e7;
  border: 2px solid var(--green);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.login-logo strong {
  display: block;
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 17px;
  line-height: 1;
}

.login-logo span {
  display: block;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* =========================================================
   TÍTULO
   ========================================================= */

.login-header {
  margin-bottom: 27px;
}

.login-header h2 {
  color: var(--dark);
  font-family: "Roboto Slab", serif;
  font-size: 29px;
  margin-bottom: 6px;
}

.login-header p {
  color: #888;
  font-size: 11px;
}

/* =========================================================
   TIPO DE UTILIZADOR
   ========================================================= */

.login-user-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 27px;
}

.user-type {
  min-height: 74px;
  background: #f7f8f5;
  border: 1px solid #e7e7e7;
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--transition);
}

.user-type i {
  font-size: 17px;
}

.user-type span {
  font-size: 9px;
  font-weight: 700;
}

.user-type:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.user-type.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* =========================================================
   FORMULÁRIO
   ========================================================= */

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group > label,
.password-label label {
  display: block;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group label i,
.password-label label i {
  color: var(--green-dark);
  margin-right: 5px;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.password-label label {
  margin-bottom: 0;
}

.password-label a {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 600;
}

.password-label a:hover {
  text-decoration: underline;
}

/* INPUT */

.input-wrapper {
  position: relative;
}

.input-wrapper > i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 13px;
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 51px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0 45px;
  color: #333;
  font-size: 11px;
  outline: none;
  transition: var(--transition);
}

.input-wrapper input::placeholder {
  color: #aaa;
}

.input-wrapper input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(131, 211, 45, 0.1);
}

/* MOSTRAR SENHA */

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 51px;
  width: 45px;
  background: transparent;
  color: #aaa;
}

.toggle-password:hover {
  color: var(--green-dark);
}

/* =========================================================
   LEMBRAR
   ========================================================= */

.remember-me {
  margin: 3px 0 23px;
}

.remember-me label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 9px;
  cursor: pointer;
}

.remember-me input {
  accent-color: var(--green);
}

/* =========================================================
   BOTÃO LOGIN
   ========================================================= */

.login-submit {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.login-submit:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(94, 174, 28, 0.2);
}

.login-submit i {
  transition: transform 0.3s ease;
}

.login-submit:hover i {
  transform: translateX(4px);
}

/* =========================================================
   MENSAGEM
   ========================================================= */

.login-message {
  display: none;
  margin-top: 15px;
  padding: 11px 14px;
  font-size: 10px;
  line-height: 1.5;
}

.login-message.show {
  display: block;
}

.login-message.error {
  background: #fff1f1;
  border-left: 3px solid #d9534f;
  color: #a94442;
}

.login-message.success {
  background: #f0f9e9;
  border-left: 3px solid var(--green);
  color: #4c8c16;
}

/* =========================================================
   AJUDA
   ========================================================= */

.login-help {
  display: flex;
  gap: 13px;
  margin-top: 30px;
  padding: 17px;
  background: #f7f8f5;
  border-left: 3px solid var(--green);
}

.help-icon {
  color: var(--green-dark);
  font-size: 18px;
  padding-top: 2px;
}

.login-help strong {
  display: block;
  color: #555;
  font-size: 10px;
  margin-bottom: 4px;
}

.login-help p {
  color: #999;
  font-size: 9px;
  line-height: 1.6;
}

/* =========================================================
   VOLTAR
   ========================================================= */

.back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #888;
  font-size: 9px;
  margin-top: 28px;
  transition: var(--transition);
}

.back-home:hover {
  color: var(--green-dark);
}

/* =========================================================
   LOGIN — TABLET
   ========================================================= */

@media (max-width: 850px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 360px;
  }

  .login-visual-content {
    width: 85%;
  }

  .login-visual-content h1 {
    font-size: 40px;
  }

  .login-visual-content .login-quote {
    margin-top: 30px;
  }

  .login-area {
    min-height: auto;
    padding: 55px 25px;
  }
}

/* =========================================================
   LOGIN — MOBILE
   ========================================================= */

@media (max-width: 500px) {
  .login-visual {
    min-height: 300px;
  }

  .login-visual-content {
    width: 88%;
  }

  .login-school-symbol {
    width: 52px;
    height: 52px;
    font-size: 21px;
    margin-bottom: 17px;
  }

  .login-small-title {
    font-size: 8px;
  }

  .login-visual-content h1 {
    font-size: 31px;
  }

  .login-visual-content > p {
    font-size: 10px;
  }

  .login-visual-content .login-quote {
    display: none;
  }

  .login-area {
    padding: 40px 18px;
  }

  .login-logo {
    margin-bottom: 30px;
  }

  .login-header h2 {
    font-size: 25px;
  }

  .login-user-types {
    gap: 5px;
  }

  .user-type {
    min-height: 67px;
  }

  .user-type span {
    font-size: 8px;
  }
}

/* =========================================================
   DASHBOARD DO ALUNO
   ========================================================= */

.student-dashboard {
  min-height: 100vh;
  background: #f5f7f3;
  color: #333;
  font-family: "Montserrat", sans-serif;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.student-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 255px;
  height: 100vh;
  background: #252729;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}

/* LOGO */

.student-logo {
  height: 83px;
  padding: 0 23px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.student-logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-logo-text strong {
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: 16px;
  line-height: 1;
}

.student-logo-text span {
  display: block;
  color: #9edc62;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 5px;
}

/* MINI PERFIL */

.student-mini-profile {
  margin: 20px 15px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-avatar {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.student-mini-profile strong {
  display: block;
  font-size: 10px;
  margin-bottom: 4px;
}

.student-mini-profile span {
  color: #999;
  font-size: 8px;
}

/* NAVEGAÇÃO */

.student-navigation {
  flex: 1;
  overflow-y: auto;
  padding: 5px 15px 15px;
}

.student-menu-title {
  display: block;
  color: #777;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.3px;
  padding: 13px 10px 8px;
}

.second-menu {
  margin-top: 8px;
}

.student-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 11px;
  margin: 3px 0;
  color: #aaa;
  font-size: 9px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: 0.2s ease;
}

.student-nav-link i {
  width: 17px;
  text-align: center;
  font-size: 12px;
}

.student-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.student-nav-link.active {
  color: #fff;
  background: rgba(131, 211, 45, 0.12);
  border-left-color: var(--green);
}

.student-nav-link.active i {
  color: var(--green);
}

.notification-badge {
  margin-left: auto;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
}

/* SAIR */

.student-sidebar-bottom {
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.student-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 11px;
  color: #aaa;
  font-size: 9px;
}

.student-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.student-logout i {
  color: #e27474;
}

/* =========================================================
   MAIN
   ========================================================= */

.student-main {
  margin-left: 255px;
  min-height: 100vh;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.student-topbar {
  height: 83px;
  background: #fff;
  border-bottom: 1px solid #e7e9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dashboard-menu-button {
  display: none;
  width: 37px;
  height: 37px;
  background: #f4f6f2;
  color: #555;
  border-radius: 3px;
}

.dashboard-page-title span {
  display: block;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.dashboard-page-title h1 {
  font-family: "Roboto Slab", serif;
  color: #333;
  font-size: 21px;
  margin: 0;
}

/* TOPBAR DIREITA */

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-search {
  width: 180px;
  height: 37px;
  border: 1px solid #e5e7e3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: #fafbfa;
}

.dashboard-search i {
  color: #aaa;
  font-size: 11px;
}

.dashboard-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 9px;
  color: #555;
}

.topbar-icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  background: #f5f7f3;
  color: #777;
  border-radius: 50%;
}

.topbar-icon-button span {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.topbar-avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #eaf6df;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.topbar-profile-info strong {
  display: block;
  font-size: 9px;
  color: #444;
}

.topbar-profile-info span {
  display: block;
  font-size: 8px;
  color: #aaa;
  margin-top: 3px;
}

.topbar-profile > i {
  color: #aaa;
  font-size: 8px;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */

.student-content {
  padding: 30px 35px 20px;
  max-width: 1600px;
  margin: 0 auto;
}

/* =========================================================
   WELCOME
   ========================================================= */

.student-welcome {
  min-height: 185px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #4f742f, #76b63c);
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.welcome-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  color: #fff;
}

.welcome-content > span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  opacity: 0.8;
}

.welcome-content h2 {
  font-family: "Roboto Slab", serif;
  font-size: 27px;
  margin: 8px 0 8px;
}

.welcome-content p {
  max-width: 570px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  line-height: 1.7;
  margin-bottom: 17px;
}

.welcome-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: #fff;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

.welcome-button:hover {
  background: #f5f5f5;
}

.welcome-decoration {
  position: absolute;
  right: 55px;
  bottom: -35px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-decoration::before {
  content: "";
  position: absolute;
  width: 125px;
  height: 125px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.welcome-decoration i {
  font-size: 55px;
  color: rgba(255, 255, 255, 0.2);
}

/* =========================================================
   ESTATÍSTICAS
   ========================================================= */

.student-statistics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.student-stat-card {
  background: #fff;
  border: 1px solid #e8ebe6;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.stat-icon {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.stat-icon.green {
  background: #edf8e4;
  color: #68a82d;
}

.stat-icon.blue {
  background: #eaf3fa;
  color: #4b8db9;
}

.stat-icon.orange {
  background: #fff3e5;
  color: #d9913d;
}

.stat-icon.purple {
  background: #f1ebfa;
  color: #8661ad;
}

.stat-information span {
  display: block;
  color: #999;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.stat-information strong {
  display: block;
  color: #333;
  font-family: "Roboto Slab", serif;
  font-size: 22px;
}

.stat-information small {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-top: 3px;
}

.stat-information small i {
  color: var(--green);
}

/* =========================================================
   GRID DE CARDS
   ========================================================= */

.student-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-card {
  background: #fff;
  border: 1px solid #e8ebe6;
  min-width: 0;
}

.dashboard-card-header {
  min-height: 72px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf0ec;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-overline {
  display: block;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.dashboard-card-header h3 {
  font-family: "Roboto Slab", serif;
  color: #333;
  font-size: 15px;
  margin: 0;
}

.dashboard-card-header > a {
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 600;
}

.dashboard-card-header > a i {
  margin-left: 4px;
}

/* =========================================================
   TABELA DE NOTAS
   ========================================================= */

.grades-table-wrapper {
  overflow-x: auto;
}

.grades-table {
  width: 100%;
  border-collapse: collapse;
}

.grades-table th {
  padding: 12px 18px;
  text-align: left;
  color: #aaa;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #fafbfa;
}

.grades-table td {
  padding: 12px 18px;
  border-top: 1px solid #f0f2ef;
  color: #777;
  font-size: 8px;
}

.subject-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
  font-weight: 600;
}

.subject-icon {
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7e9;
  color: var(--green-dark);
  font-size: 10px;
}

.grades-table td strong {
  color: #444;
}

.status {
  display: inline-block;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 700;
}

.status.approved {
  color: #579522;
  background: #eff8e8;
}

.status.excellent {
  color: #397ea8;
  background: #eaf5fb;
}

/* =========================================================
   ATIVIDADES
   ========================================================= */

.activities-list {
  padding: 4px 20px 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2ef;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-date {
  width: 39px;
  height: 42px;
  background: #f1f7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-date strong {
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 14px;
}

.activity-date span {
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
}

.activity-info strong {
  display: block;
  color: #555;
  font-size: 8px;
  margin-bottom: 5px;
}

.activity-info span {
  display: block;
  color: #aaa;
  font-size: 7px;
}

.activity-info span i {
  margin-right: 4px;
  color: var(--green);
}

/* =========================================================
   AVISOS
   ========================================================= */

.announcement-list {
  padding: 5px 20px 10px;
}

.announcement {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2ef;
}

.announcement:last-child {
  border-bottom: none;
}

.announcement-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: #f0f7e9;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.announcement strong {
  display: block;
  color: #555;
  font-size: 8px;
  margin-bottom: 4px;
}

.announcement p {
  color: #999;
  font-size: 7px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.announcement small {
  color: #bbb;
  font-size: 6px;
}

/* =========================================================
   HORÁRIO
   ========================================================= */

.schedule-list {
  padding: 7px 20px 12px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 42px 10px 1fr;
  gap: 9px;
  align-items: center;
  min-height: 51px;
}

.schedule-time {
  color: #888;
  font-size: 8px;
  font-weight: 600;
}

.schedule-line {
  width: 3px;
  height: 100%;
  max-height: 35px;
  background: #e7f1de;
  border-radius: 2px;
}

.schedule-subject strong {
  display: block;
  color: #555;
  font-size: 8px;
  margin-bottom: 4px;
}

.schedule-subject span {
  display: block;
  color: #aaa;
  font-size: 7px;
}

/* =========================================================
   ACESSOS RÁPIDOS
   ========================================================= */

.quick-access-section {
  margin-top: 8px;
  margin-bottom: 25px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading > div > span {
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-heading h2 {
  color: #333;
  font-family: "Roboto Slab", serif;
  font-size: 18px;
  margin-top: 4px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}

.quick-access-card {
  min-height: 120px;
  padding: 17px 13px;
  background: #fff;
  border: 1px solid #e8ebe6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  transition: 0.2s ease;
}

.quick-access-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.quick-access-card > div {
  width: 35px;
  height: 35px;
  background: #f0f7e9;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 11px;
}

.quick-access-card strong {
  color: #555;
  font-size: 8px;
  margin-bottom: 5px;
}

.quick-access-card span {
  color: #aaa;
  font-size: 7px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.student-footer {
  padding: 20px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #aaa;
  font-size: 7px;
}

/* =========================================================
   RESPONSIVO — TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .student-statistics {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-search {
    display: none;
  }
}

/* =========================================================
   RESPONSIVO — TABLET PEQUENO
   ========================================================= */

@media (max-width: 850px) {
  .student-sidebar {
    transform: translateX(-100%);
  }

  .student-sidebar.open {
    transform: translateX(0);
  }

  .student-main {
    margin-left: 0;
  }

  .dashboard-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .student-topbar {
    padding: 0 20px;
  }

  .student-content {
    padding: 20px;
  }

  .student-grid {
    grid-template-columns: 1fr;
  }

  .topbar-profile-info,
  .topbar-profile > i {
    display: none;
  }
}

/* =========================================================
   RESPONSIVO — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .student-statistics {
    grid-template-columns: 1fr;
  }

  .student-welcome {
    padding: 25px;
    min-height: 210px;
  }

  .welcome-content h2 {
    font-size: 22px;
  }

  .welcome-decoration {
    right: -40px;
    opacity: 0.6;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .student-topbar {
    height: 70px;
  }

  .dashboard-page-title h1 {
    font-size: 17px;
  }

  .student-content {
    padding: 15px;
  }

  .student-footer {
    flex-direction: column;
    gap: 7px;
    text-align: center;
  }
}

/* =========================================================
   PÁGINA — PERFIL DO ALUNO
   ========================================================= */

.profile-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.profile-page-header > div > span {
  display: block;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}

.profile-page-header h2 {
  margin: 0;
  font-family: "Roboto Slab", serif;
  font-size: 24px;
  color: #333;
}

.profile-page-header p {
  margin: 7px 0 0;
  color: #999;
  font-size: 9px;
}

.profile-edit-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  background: var(--green);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  transition: 0.2s ease;
}

.profile-edit-button:hover {
  background: var(--green-dark);
}

/* =========================================================
   CARTÃO PRINCIPAL DO PERFIL
   ========================================================= */

.profile-main-card {
  position: relative;
  background: #fff;
  border: 1px solid #e8ebe6;
  margin-bottom: 20px;
  overflow: hidden;
}

.profile-cover {
  height: 105px;
  background: linear-gradient(100deg, #496c2d, #83c83f);
  position: relative;
}

.profile-cover::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  right: 50px;
  top: -110px;
}

.profile-large-avatar {
  position: absolute;
  left: 28px;
  bottom: -35px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 5px solid #fff;
  background: #eaf6df;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  z-index: 3;
}

.profile-identity {
  padding: 43px 28px 20px;
}

.profile-identity h2 {
  margin: 0 0 5px;
  color: #333;
  font-family: "Roboto Slab", serif;
  font-size: 19px;
}

.profile-identity p {
  color: #999;
  font-size: 8px;
  margin: 0 0 9px;
}

.profile-status {
  color: #5b9d2a;
  background: #eff8e9;
  padding: 5px 9px;
  font-size: 7px;
  font-weight: 700;
}

.profile-status i {
  font-size: 5px;
  margin-right: 4px;
}

.profile-academic-code {
  position: absolute;
  right: 28px;
  bottom: 25px;
  text-align: right;
}

.profile-academic-code span {
  display: block;
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.profile-academic-code strong {
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 13px;
}

/* =========================================================
   COLUNAS
   ========================================================= */

.profile-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-information-card .dashboard-card-header > i,
.profile-contact-card .dashboard-card-header > i {
  color: var(--green);
  font-size: 15px;
}

.profile-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px 20px 15px;
}

.profile-field {
  padding: 13px 10px;
  border-bottom: 1px solid #f0f2ef;
}

.profile-field:nth-child(odd) {
  border-right: 1px solid #f0f2ef;
}

.profile-field span {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-bottom: 5px;
}

.profile-field strong {
  display: block;
  color: #555;
  font-size: 8px;
}

.profile-field .active-text {
  color: #5b9d2a;
}

/* =========================================================
   CONTACTOS
   ========================================================= */

.profile-contact-card {
  margin-bottom: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 10px 20px 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 15px;
  border-right: 1px solid #edf0ec;
}

.contact-item:last-child {
  border-right: none;
}

.contact-icon {
  width: 35px;
  height: 35px;
  background: #eff8e8;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.contact-item span {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-bottom: 4px;
}

.contact-item strong {
  display: block;
  color: #555;
  font-size: 8px;
  word-break: break-word;
}

/* =========================================================
   ENCARREGADO
   ========================================================= */

.guardian-card {
  margin-bottom: 20px;
}

.guardian-information {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  gap: 13px;
}

.guardian-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f0f7e9;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guardian-data {
  flex: 1;
}

.guardian-data strong {
  display: block;
  color: #555;
  font-size: 8px;
  margin-bottom: 4px;
}

.guardian-data span,
.guardian-data small {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-bottom: 3px;
}

.guardian-contact-button {
  padding: 9px 14px;
  border: 1px solid #dce8d4;
  color: var(--green-dark);
  background: #f6faf3;
  font-size: 7px;
  font-weight: 700;
}

.guardian-contact-button:hover {
  background: var(--green);
  color: #fff;
}

/* =========================================================
   PERFIL — RESPONSIVO
   ========================================================= */

@media (max-width: 850px) {
  .profile-columns {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    border-right: none;
    border-bottom: 1px solid #edf0ec;
    padding: 13px 5px;
  }

  .contact-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .profile-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .profile-main-card {
    overflow: visible;
  }

  .profile-academic-code {
    position: static;
    text-align: left;
    padding: 0 28px 20px;
  }

  .profile-information {
    grid-template-columns: 1fr;
  }

  .profile-field:nth-child(odd) {
    border-right: none;
  }

  .guardian-information {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .guardian-contact-button {
    margin-left: 55px;
  }
}

/* =========================================================
   PÁGINA — MINHAS NOTAS
   ========================================================= */

.grades-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.grades-page-header > div > span {
  display: block;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}

.grades-page-header h2 {
  margin: 0;
  font-family: "Roboto Slab", serif;
  color: #333;
  font-size: 24px;
}

.grades-page-header p {
  margin: 7px 0 0;
  color: #999;
  font-size: 9px;
}

.print-grades-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid #dfe7da;
  background: #fff;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
}

.print-grades-button:hover {
  background: var(--green);
  color: #fff;
}

/* =========================================================
   RESUMO DAS NOTAS
   ========================================================= */

.grades-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.grades-summary-card {
  background: #fff;
  border: 1px solid #e8ebe6;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.grades-summary-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.grades-summary-icon.green {
  color: #679e32;
  background: #edf7e5;
}

.grades-summary-icon.blue {
  color: #4b8db9;
  background: #eaf4fa;
}

.grades-summary-icon.orange {
  color: #d48b35;
  background: #fff2e3;
}

.grades-summary-icon.purple {
  color: #8262aa;
  background: #f1ebf8;
}

.grades-summary-card span {
  display: block;
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.grades-summary-card strong {
  display: block;
  color: #333;
  font-family: "Roboto Slab", serif;
  font-size: 21px;
}

.grades-summary-card small {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-top: 3px;
}

/* =========================================================
   FILTROS
   ========================================================= */

.grades-filter-card {
  background: #fff;
  border: 1px solid #e8ebe6;
  margin-bottom: 20px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.grades-filter-title {
  min-width: 145px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
}

.grades-filter-title i {
  font-size: 12px;
}

.grades-filter-title strong {
  font-size: 8px;
}

.grades-filters {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.grade-filter label {
  display: block;
  color: #999;
  font-size: 7px;
  font-weight: 600;
  margin-bottom: 5px;
}

.grade-filter select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e5e9e3;
  outline: none;
  background: #fafbfa;
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  cursor: pointer;
}

.grade-filter select:focus {
  border-color: var(--green);
}

/* =========================================================
   TABELA COMPLETA
   ========================================================= */

.complete-grades-card {
  margin-bottom: 15px;
}

.grades-year {
  padding: 6px 9px;
  background: #f1f7eb;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
}

.complete-grades-wrapper {
  width: 100%;
  overflow-x: auto;
}

.complete-grades-table {
  width: 100%;
  min-width: 750px;
  border-collapse: collapse;
}

.complete-grades-table th {
  padding: 12px 17px;
  text-align: left;
  background: #fafbfa;
  border-bottom: 1px solid #edf0ec;
  color: #aaa;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.complete-grades-table td {
  padding: 13px 17px;
  border-bottom: 1px solid #f0f2ef;
  color: #777;
  font-size: 8px;
}

.complete-grades-table tbody tr:hover {
  background: #fbfcfa;
}

.grade-subject {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grade-subject-icon {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7e9;
  color: var(--green-dark);
  font-size: 11px;
}

.grade-subject strong {
  display: block;
  color: #555;
  font-size: 8px;
  margin-bottom: 3px;
}

.grade-subject small {
  display: block;
  color: #aaa;
  font-size: 6px;
}

.average-good {
  color: #619a2f !important;
  font-size: 10px;
}

.average-medium {
  color: #d18c38 !important;
  font-size: 10px;
}

.average-excellent {
  color: #4386ae !important;
  font-size: 10px;
}

.grade-status {
  display: inline-block;
  padding: 5px 8px;
  font-size: 6px;
  font-weight: 700;
}

.grade-status.approved {
  color: #59962b;
  background: #eef8e7;
}

.grade-status.excellent {
  color: #3e7fa5;
  background: #eaf5fb;
}

/* =========================================================
   LEGENDA
   ========================================================= */

.grades-legend {
  background: #fff;
  border: 1px solid #e8ebe6;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 15px;
}

.grades-legend > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.excellent-dot {
  background: #4386ae;
}

.approved-dot {
  background: #65a333;
}

.attention-dot {
  background: #d18c38;
}

.grades-legend strong {
  color: #666;
  font-size: 7px;
}

.grades-legend small {
  color: #aaa;
  font-size: 6px;
}

/* =========================================================
   NOTA INFORMATIVA
   ========================================================= */

.grades-note {
  background: #f5f9f1;
  border-left: 3px solid var(--green);
  padding: 13px 16px;
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
}

.grades-note > i {
  color: var(--green-dark);
  font-size: 13px;
  margin-top: 2px;
}

.grades-note strong {
  display: block;
  color: #5b783f;
  font-size: 8px;
  margin-bottom: 4px;
}

.grades-note p {
  color: #8c9883;
  font-size: 7px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   NOTAS — TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .grades-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .grades-filter-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .grades-filter-title {
    min-width: auto;
  }

  .grades-filters {
    width: 100%;
  }
}

/* =========================================================
   NOTAS — MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .grades-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .grades-summary {
    grid-template-columns: 1fr;
  }

  .grades-filters {
    grid-template-columns: 1fr;
  }

  .grades-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

/* =========================================================
   NOTAS — NOVA ESTRUTURA DE AVALIAÇÕES
   ========================================================= */

.subject-grades-card {
  margin-bottom: 20px;
}

.subject-average-box {
  text-align: right;
}

.subject-average-box span {
  display: block;
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 3px;
}

.subject-average-box strong {
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 18px;
}

.subject-grades-body {
  padding: 0 20px 5px;
}

.trimester-block {
  padding: 17px 0;
  border-bottom: 1px solid #edf0ec;
}

.trimester-block:last-child {
  border-bottom: none;
}

.trimester-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.trimester-title span:first-child {
  display: block;
  color: var(--green-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.trimester-title strong {
  color: #666;
  font-size: 7px;
}

.trimester-title strong.not-calculated {
  color: #aaa;
}

.trimester-status {
  padding: 5px 9px;
  font-size: 6px;
  font-weight: 700;
}

.trimester-status.completed {
  color: #59962b;
  background: #eef8e7;
}

.trimester-status.pending {
  color: #c48635;
  background: #fff4e4;
}

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.assessment-item {
  min-height: 60px;
  padding: 11px 13px;
  background: #fafbfa;
  border: 1px solid #edf0ec;
}

.assessment-item span {
  display: block;
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.assessment-item strong {
  display: block;
  color: #555;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
}

.assessment-item.result {
  background: #f2f8ed;
  border-color: #e0ecd6;
}

.assessment-item.result strong {
  color: var(--green-dark);
}

.assessment-item.result.locked {
  background: #f7f7f7;
  border-color: #ededed;
}

.assessment-item.result.locked strong {
  color: #aaa;
}

.assessment-item.result small {
  display: block;
  color: #aaa;
  font-size: 5px;
  margin-top: 5px;
}

.pending-text {
  font-family: "Montserrat", sans-serif !important;
  font-size: 11px !important;
  color: #c48635 !important;
}

/* =========================================================
   REGRA DE CÁLCULO
   ========================================================= */

.grades-rule-box {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: #f6f9f3;
  border: 1px solid #e2ebdc;
  margin-bottom: 20px;
}

.grades-rule-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7f2df;
  color: var(--green-dark);
  font-size: 12px;
}

.grades-rule-box strong {
  display: block;
  color: #5a763f;
  font-size: 8px;
  margin-bottom: 5px;
}

.grades-rule-box p {
  margin: 0;
  color: #89947f;
  font-size: 7px;
  line-height: 1.6;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {
  .assessment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .trimester-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .assessment-grid {
    grid-template-columns: 1fr 1fr;
  }

  .subject-average-box {
    display: none;
  }
}

@media print {
  .student-sidebar,
  .student-topbar,
  .print-grades-button {
    display: none !important;
  }

  .student-main {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .subject-grades-card {
    break-inside: avoid;
  }
}

/* =========================================================
   BOLETIM DO ALUNO
   ========================================================= */

.official-report {
  background: #fff;
  border: 1px solid #e1e6df;
  padding: 28px;
  margin-bottom: 25px;
}

/* =========================================================
   CABEÇALHO
   ========================================================= */

.report-header {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  align-items: center;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--green);
}

.report-school-mark {
  display: flex;
  justify-content: center;
}

.report-school-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef6e8;
  color: var(--green-dark);
  font-size: 22px;
}

.report-school-info h2 {
  margin: 0;
  color: #3d3d3d;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.report-school-info p {
  margin: 4px 0;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
}

.report-school-info span {
  color: #999;
  font-size: 7px;
}

.report-year {
  text-align: center;
  padding-left: 15px;
  border-left: 1px solid #e5e8e3;
}

.report-year span {
  display: block;
  color: #aaa;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.report-year strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 18px;
}

/* =========================================================
   DADOS DO ALUNO
   ========================================================= */

.report-student-data {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid #e8ebe6;
  margin-bottom: 20px;
}

.report-student-data > div {
  padding: 13px 12px;
  border-right: 1px solid #e8ebe6;
}

.report-student-data > div:last-child {
  border-right: none;
}

.report-student-data span {
  display: block;
  color: #aaa;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.report-student-data strong {
  color: #555;
  font-size: 8px;
}

/* =========================================================
   TABELA
   ========================================================= */

.report-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
  table-layout: fixed;
}

.report-table th {
  padding: 8px 4px;
  background: #f2f7ee;
  border: 1px solid #dce7d6;
  color: #61774f;
  font-size: 5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.report-table th.subject-column {
  width: 145px;
  text-align: left;
  padding-left: 9px;
}

.report-table th.annual-column {
  width: 70px;
  background: #e9f3e3;
}

.report-table td {
  height: 35px;
  padding: 6px 4px;
  border: 1px solid #e5e9e3;
  color: #666;
  font-size: 7px;
  text-align: center;
}

.report-table td.subject-name {
  padding-left: 9px;
  color: #555;
  font-weight: 600;
  text-align: left;
}

.report-table td.trimester-average {
  background: #f6faf3;
  color: var(--green-dark);
  font-weight: 700;
}

.report-table td.annual-average {
  background: #eaf4e4;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 9px;
  font-weight: 700;
}

.report-table td.not-available {
  background: #fafafa;
  color: #aaa;
  font-weight: 600;
}

/* =========================================================
   RESUMO
   ========================================================= */

.report-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  border: 1px solid #e2e7df;
}

.report-summary-item {
  padding: 15px;
  border-right: 1px solid #e2e7df;
}

.report-summary-item:last-child {
  border-right: none;
}

.report-summary-item span {
  display: block;
  color: #999;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.report-summary-item strong {
  display: block;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 18px;
}

.report-summary-item small {
  display: block;
  color: #aaa;
  font-size: 6px;
  margin-top: 4px;
}

.report-summary-item strong.report-pending {
  color: #c48635;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
}

/* =========================================================
   OBSERVAÇÃO
   ========================================================= */

.report-observation {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fafbf9;
  border-left: 3px solid var(--green);
  color: #888;
  font-size: 6px;
  line-height: 1.7;
}

.report-observation strong {
  color: #637650;
  margin-right: 3px;
}

/* =========================================================
   ASSINATURAS
   ========================================================= */

.report-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 55px;
}

.report-signatures > div {
  text-align: center;
}

.report-signatures span {
  display: block;
  color: #777;
  font-size: 7px;
  margin-bottom: 7px;
}

.report-signatures strong {
  color: #777;
  font-size: 6px;
  font-weight: 600;
}

/* =========================================================
   RODAPÉ DO DOCUMENTO
   ========================================================= */

.report-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 10px;
  border-top: 1px solid #e5e8e3;
}

.report-footer span {
  color: #aaa;
  font-size: 5px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .official-report {
    padding: 18px;
  }

  .report-student-data {
    grid-template-columns: 1fr 1fr;
  }

  .report-student-data > div:nth-child(2) {
    border-right: none;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .report-summary-item {
    border-right: none;
    border-bottom: 1px solid #e2e7df;
  }

  .report-summary-item:last-child {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .report-header {
    grid-template-columns: 50px 1fr;
  }

  .report-year {
    display: none;
  }

  .report-school-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }

  .report-school-info h2 {
    font-size: 11px;
  }

  .report-signatures {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body {
    background: #fff !important;
  }

  .student-sidebar,
  .student-topbar,
  .student-footer,
  .grades-page-header,
  .print-grades-button {
    display: none !important;
  }

  .student-main {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .student-content {
    padding: 0 !important;
  }

  .official-report {
    border: none;
    padding: 0;
    margin: 0;
  }

  .report-table-wrapper {
    overflow: visible;
  }

  .report-table {
    min-width: 0;
  }
}

/* =========================================================
   PAINEL DO PROFESSOR
   ========================================================= */

.professor-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e5e9e2;
  margin-bottom: 20px;
}

.professor-welcome > div:first-child > span {
  display: block;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.professor-welcome h2 {
  margin: 0;
  color: #3e3e3e;
  font-family: "Roboto Slab", serif;
  font-size: 20px;
}

.professor-welcome p {
  margin: 7px 0 0;
  color: #999;
  font-size: 8px;
}

.professor-subject-badge {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  background: #f1f7ec;
  border: 1px solid #dfebd6;
}

.professor-subject-badge > i {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2efd9;
  color: var(--green-dark);
  font-size: 12px;
}

.professor-subject-badge span {
  display: block;
  color: #999;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.professor-subject-badge strong {
  color: #55723c;
  font-size: 10px;
}

/* =========================================================
   TURMAS
   ========================================================= */

.professor-classes-card {
  margin-bottom: 20px;
}

.dashboard-card-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-card-link:hover {
  text-decoration: underline;
}

.professor-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 20px 20px;
}

.professor-class-card {
  border: 1px solid #e5e9e3;
  background: #fff;
  padding: 16px;
  transition: 0.2s ease;
}

.professor-class-card:hover {
  border-color: #cfdcc7;
  transform: translateY(-2px);
}

.class-card-icon {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6eb;
  color: var(--green-dark);
  font-size: 12px;
  margin-bottom: 12px;
}

.class-card-info span {
  display: block;
  color: #aaa;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.class-card-info strong {
  display: block;
  color: #555;
  font-family: "Roboto Slab", serif;
  font-size: 14px;
}

.class-card-info small {
  display: block;
  color: #aaa;
  font-size: 7px;
  margin-top: 4px;
}

.class-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 11px;
  border-top: 1px solid #edf0ec;
}

.class-card-footer span {
  color: #999;
  font-size: 6px;
}

.class-card-footer strong {
  color: var(--green-dark);
  font-size: 9px;
}

.class-card-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 9px 11px;
  background: #f3f8ef;
  color: var(--green-dark);
  text-decoration: none;
  font-size: 7px;
  font-weight: 700;
}

.class-card-button:hover {
  background: var(--green);
  color: #fff;
}

/* =========================================================
   AVISO DE ACESSO
   ========================================================= */

.professor-access-notice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 17px;
  background: #f5f8fb;
  border: 1px solid #e1e9ef;
  margin-bottom: 20px;
}

.professor-access-icon {
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9f1f6;
  color: #5683a0;
  font-size: 12px;
}

.professor-access-notice strong {
  color: #55758b;
  font-size: 8px;
}

.professor-access-notice p {
  margin: 5px 0 0;
  color: #8998a2;
  font-size: 7px;
  line-height: 1.6;
}

.professor-access-notice p strong {
  font-size: 7px;
  color: #667f8f;
}

/* =========================================================
   PROFESSOR RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .professor-class-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .professor-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .professor-subject-badge {
    width: 100%;
  }
}

/* =========================================================
   LANÇAMENTO DE NOTAS
   ========================================================= */

.grade-entry-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e4e9e1;
  margin-bottom: 14px;
}

.grade-control label {
  display: block;
  color: #888;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.grade-control select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dfe5dc;
  background: #fafcfa;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  outline: none;
}

.grade-control select:focus {
  border-color: var(--green);
}

/* =========================================================
   AVISO DE SEGURANÇA
   ========================================================= */

.grade-security-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f8f2;
  border: 1px solid #e0eadb;
  margin-bottom: 18px;
}

.grade-security-notice > i {
  color: var(--green-dark);
  font-size: 13px;
}

.grade-security-notice strong {
  color: #587047;
  font-size: 7px;
}

.grade-security-notice p {
  margin: 3px 0 0;
  color: #929b8c;
  font-size: 6px;
}

/* =========================================================
   DISCIPLINA ATUAL
   ========================================================= */

.grade-current-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: #f0f6ec;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
}

.grade-current-subject i {
  font-size: 9px;
}

/* =========================================================
   TABELA
   ========================================================= */

.grade-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.grade-entry-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.grade-entry-table th {
  padding: 10px 8px;
  background: #f5f8f3;
  border-top: 1px solid #e5eae2;
  border-bottom: 1px solid #dfe6dc;
  color: #78836f;
  font-size: 5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.grade-entry-table th.student-name-column {
  text-align: left;
  width: 210px;
}

.grade-entry-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf0ec;
  color: #777;
  font-size: 7px;
  text-align: center;
}

.grade-student-name {
  text-align: left !important;
}

.grade-student-name strong {
  display: block;
  color: #555;
  font-size: 8px;
}

.grade-student-name small {
  display: block;
  color: #aaa;
  font-size: 5px;
  margin-top: 3px;
}

/* =========================================================
   INPUT DAS NOTAS
   ========================================================= */

.grade-input {
  width: 58px;
  height: 31px;
  border: 1px solid #dfe5dc;
  background: #fff;
  color: #555;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 600;
  outline: none;
}

.grade-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(94, 132, 68, 0.08);
}

.grade-input::placeholder {
  color: #bbb;
}

/* =========================================================
   MÉDIA
   ========================================================= */

.grade-average {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 31px;
  background: #edf5e8;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 9px;
  font-weight: 700;
}

.grade-average.pending {
  background: #f7f7f7;
  color: #aaa;
}

/* =========================================================
   ESTADO
   ========================================================= */

.grade-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  font-size: 5px;
  font-weight: 700;
}

.grade-status.complete {
  background: #edf6e9;
  color: #63834c;
}

.grade-status.incomplete {
  background: #faf5e9;
  color: #b18a4a;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.grade-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid #e7ebe4;
}

.grade-entry-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 6px;
}

.grade-entry-rule i {
  color: #8b9b7d;
}

.save-grades-button {
  border: none;
  padding: 10px 16px;
  background: var(--green-dark);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.save-grades-button:hover {
  opacity: 0.9;
}

/* =========================================================
   LEGENDA
   ========================================================= */

.grade-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.grade-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #999;
  font-size: 5px;
}

.grade-legend span:nth-child(1) i {
  color: #63834c;
}

.grade-legend span:nth-child(2) i {
  color: #b18a4a;
}

.grade-legend span:nth-child(3) i {
  color: #78916b;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {
  .grade-entry-controls {
    grid-template-columns: 1fr;
  }

  .grade-entry-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .save-grades-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .grade-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================================================
   LANÇAMENTO DE NOTAS
   ========================================================= */

.grade-entry-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e4e9e1;
  margin-bottom: 14px;
}

.grade-control label {
  display: block;
  color: #888;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.7px;
  margin-bottom: 6px;
}

.grade-control select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dfe5dc;
  background: #fafcfa;
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  outline: none;
}

.grade-control select:focus {
  border-color: var(--green);
}

/* =========================================================
   AVISO DE SEGURANÇA
   ========================================================= */

.grade-security-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f4f8f2;
  border: 1px solid #e0eadb;
  margin-bottom: 18px;
}

.grade-security-notice > i {
  color: var(--green-dark);
  font-size: 13px;
}

.grade-security-notice strong {
  color: #587047;
  font-size: 7px;
}

.grade-security-notice p {
  margin: 3px 0 0;
  color: #929b8c;
  font-size: 6px;
}

/* =========================================================
   DISCIPLINA ATUAL
   ========================================================= */

.grade-current-subject {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: #f0f6ec;
  color: var(--green-dark);
  font-size: 7px;
  font-weight: 700;
}

.grade-current-subject i {
  font-size: 9px;
}

/* =========================================================
   TABELA
   ========================================================= */

.grade-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.grade-entry-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}

.grade-entry-table th {
  padding: 10px 8px;
  background: #f5f8f3;
  border-top: 1px solid #e5eae2;
  border-bottom: 1px solid #dfe6dc;
  color: #78836f;
  font-size: 5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.grade-entry-table th.student-name-column {
  text-align: left;
  width: 210px;
}

.grade-entry-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #edf0ec;
  color: #777;
  font-size: 7px;
  text-align: center;
}

.grade-student-name {
  text-align: left !important;
}

.grade-student-name strong {
  display: block;
  color: #555;
  font-size: 8px;
}

.grade-student-name small {
  display: block;
  color: #aaa;
  font-size: 5px;
  margin-top: 3px;
}

/* =========================================================
   INPUT DAS NOTAS
   ========================================================= */

.grade-input {
  width: 58px;
  height: 31px;
  border: 1px solid #dfe5dc;
  background: #fff;
  color: #555;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 600;
  outline: none;
}

.grade-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(94, 132, 68, 0.08);
}

.grade-input::placeholder {
  color: #bbb;
}

/* =========================================================
   MÉDIA
   ========================================================= */

.grade-average {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 31px;
  background: #edf5e8;
  color: var(--green-dark);
  font-family: "Roboto Slab", serif;
  font-size: 9px;
  font-weight: 700;
}

.grade-average.pending {
  background: #f7f7f7;
  color: #aaa;
}

/* =========================================================
   ESTADO
   ========================================================= */

.grade-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  font-size: 5px;
  font-weight: 700;
}

.grade-status.complete {
  background: #edf6e9;
  color: #63834c;
}

.grade-status.incomplete {
  background: #faf5e9;
  color: #b18a4a;
}

/* =========================================================
   RODAPÉ
   ========================================================= */

.grade-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-top: 1px solid #e7ebe4;
}

.grade-entry-rule {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 6px;
}

.grade-entry-rule i {
  color: #8b9b7d;
}

.save-grades-button {
  border: none;
  padding: 10px 16px;
  background: var(--green-dark);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.save-grades-button:hover {
  opacity: 0.9;
}

/* =========================================================
   LEGENDA
   ========================================================= */

.grade-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.grade-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #999;
  font-size: 5px;
}

.grade-legend span:nth-child(1) i {
  color: #63834c;
}

.grade-legend span:nth-child(2) i {
  color: #b18a4a;
}

.grade-legend span:nth-child(3) i {
  color: #78916b;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {
  .grade-entry-controls {
    grid-template-columns: 1fr;
  }

  .grade-entry-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .save-grades-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .grade-legend {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================================================
   DIREÇÃO — DISCIPLINAS
   ========================================================= */

.direction-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.direction-page-header > div > span {
  display: block;
  color: var(--green-dark);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.direction-page-header h2 {
  margin: 0;
  color: #444;
  font-family: "Roboto Slab", serif;
  font-size: 20px;
}

.direction-page-header p {
  margin: 6px 0 0;
  color: #999;
  font-size: 7px;
}

/* BOTÃO PRINCIPAL */

.primary-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  padding: 11px 15px;
  background: var(--green-dark);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.primary-action-button:hover {
  opacity: 0.9;
}

/* TABELA */

.direction-table-card {
  margin-bottom: 20px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #e1e6de;
  background: #fafcfa;
}

.table-search i {
  color: #aaa;
  font-size: 8px;
}

.table-search input {
  width: 150px;
  border: none;
  outline: none;
  background: transparent;
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-size: 6px;
}

.table-filter {
  height: 32px;
  border: 1px solid #e1e6de;
  background: #fafcfa;
  color: #666;
  padding: 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 6px;
  outline: none;
}

.direction-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.direction-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.direction-table th {
  padding: 11px 14px;
  background: #f5f8f3;
  border-top: 1px solid #e4e9e1;
  border-bottom: 1px solid #dfe5dc;
  color: #78836f;
  font-size: 5px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.4px;
}

.direction-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0eb;
  color: #777;
  font-size: 7px;
}

.direction-table tbody tr:hover {
  background: #fafcf9;
}

/* NOME DA DISCIPLINA */

.discipline-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.discipline-icon {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f6eb;
  color: var(--green-dark);
  font-size: 10px;
}

.discipline-name strong {
  color: #555;
  font-size: 8px;
}

/* ESTADO */

.active-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  background: #edf6e9;
  color: #63834c;
  font-size: 5px;
  font-weight: 700;
}

.active-status i {
  font-size: 4px;
}

/* AÇÕES */

.table-actions {
  display: flex;
  gap: 5px;
}

.table-actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e7df;
  background: #fff;
  color: #87927f;
  cursor: pointer;
}

.table-actions button:hover {
  background: #f1f6ed;
  color: var(--green-dark);
}

/* PAGINAÇÃO */

.direction-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e7ebe5;
}

.direction-pagination > span {
  color: #aaa;
  font-size: 6px;
}

.direction-pagination > div {
  display: flex;
  gap: 4px;
}

.direction-pagination button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e7df;
  background: #fff;
  color: #888;
  font-family: "Montserrat", sans-serif;
  font-size: 6px;
  cursor: pointer;
}

.direction-pagination button:hover,
.direction-pagination .pagination-active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* =========================================================
   MODAL
   ========================================================= */

.discipline-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 43, 32, 0.48);
}

.discipline-modal-overlay.show {
  display: flex;
}

.discipline-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.discipline-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #e8ece5;
}

.discipline-modal-header span {
  display: block;
  color: var(--green-dark);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.discipline-modal-header h3 {
  margin: 0;
  color: #4d4d4d;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
}

.discipline-modal-header button {
  width: 29px;
  height: 29px;
  border: none;
  background: #f5f7f4;
  color: #999;
  cursor: pointer;
}

.discipline-modal form {
  padding: 20px;
}

.modal-form-group {
  margin-bottom: 14px;
}

.modal-form-group label {
  display: block;
  margin-bottom: 6px;
  color: #777;
  font-size: 6px;
  font-weight: 700;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfe5dc;
  background: #fafcfa;
  color: #555;
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 7px;
  outline: none;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  border-color: var(--green);
}

.modal-form-group textarea {
  resize: vertical;
}

.modal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-form-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: #f4f8f2;
  color: #82907a;
  font-size: 6px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.modal-form-info i {
  color: var(--green-dark);
  margin-top: 1px;
}

.discipline-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.modal-cancel-button {
  border: 1px solid #dfe5dc;
  background: #fff;
  color: #777;
  padding: 11px 15px;
  font-family: "Montserrat", sans-serif;
  font-size: 7px;
  font-weight: 600;
  cursor: pointer;
}

.modal-cancel-button:hover {
  background: #f7f8f6;
}

/* RESPONSIVO */

@media (max-width: 800px) {
  .direction-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .table-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .table-search input {
    width: 100%;
  }
}

@media (max-width: 550px) {
  .modal-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .discipline-modal-footer {
    flex-direction: column-reverse;
  }

  .discipline-modal-footer button {
    width: 100%;
  }
}

/* =========================================================
   ATRIBUIÇÕES
   ========================================================= */

.assignment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  margin-bottom: 18px;
  background: #f3f7f0;
  border: 1px solid #dfe8da;
}

.assignment-info-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5efdf;
  color: var(--green-dark);
}

.assignment-info strong {
  display: block;
  color: #617653;
  font-size: 7px;
}

.assignment-info p {
  margin: 3px 0 0;
  color: #929c8b;
  font-size: 6px;
}

/* =========================================================
   FILTROS
   ========================================================= */

.assignment-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e4e9e1;
}

.assignment-filters label {
  display: block;
  margin-bottom: 6px;
  color: #888;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.7px;
}

.assignment-filters select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dfe5dc;
  background: #fafcfa;
  color: #666;
  font-family: "Montserrat", sans-serif;
  font-size: 6px;
  outline: none;
}

.assignment-filters select:focus {
  border-color: var(--green);
}

/* =========================================================
   TOTAL
   ========================================================= */

.assignment-total {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  background: #f1f6ee;
  color: var(--green-dark);
  font-size: 6px;
  font-weight: 700;
}

/* =========================================================
   PROFESSOR
   ========================================================= */

.teacher-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf4e9;
  color: var(--green-dark);
  font-size: 6px;
  font-weight: 700;
}

.teacher-cell strong {
  display: block;
  color: #555;
  font-size: 7px;
}

.teacher-cell small {
  display: block;
  margin-top: 2px;
  color: #aaa;
  font-size: 5px;
}

/* =========================================================
   DISCIPLINA
   ========================================================= */

.subject-tag {
  display: inline-block;
  padding: 5px 8px;
  background: #f3f6f1;
  color: #63745a;
  font-size: 6px;
  font-weight: 600;
}

/* =========================================================
   MODAL ATRIBUIÇÃO
   ========================================================= */

.assignment-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 43, 32, 0.48);
}

.assignment-modal-overlay.show {
  display: flex;
}

.assignment-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVO */

@media (max-width: 800px) {
  .assignment-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .assignment-info {
    align-items: flex-start;
  }
}

/* =========================================================
   GESTÃO DE TURMAS
   ========================================================= */

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}

/* =========================================================
   CARTÃO DA TURMA
   ========================================================= */

.class-card {
  background: #fff;
  border: 1px solid #e3e8e0;
  padding: 17px;
  transition: 0.2s ease;
}

.class-card:hover {
  border-color: #cbd8c5;
  box-shadow: 0 7px 25px rgba(70, 90, 60, 0.06);
}

.class-card-warning {
  border-color: #eadfca;
}

/* CABEÇALHO */

.class-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.class-level {
  display: block;
  color: var(--green-dark);
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.class-card-header h3 {
  margin: 0;
  color: #555;
  font-family: "Roboto Slab", serif;
  font-size: 15px;
}

.class-menu-button {
  width: 27px;
  height: 27px;
  border: none;
  background: #f5f7f4;
  color: #999;
  cursor: pointer;
}

/* ALUNOS */

.class-students {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0eb;
}

.class-students i {
  color: #87977c;
  font-size: 9px;
}

.class-students strong {
  color: #555;
  font-size: 12px;
}

.class-students span {
  color: #aaa;
  font-size: 6px;
}

/* DIRETOR */

.class-director {
  padding: 14px 0;
}

.class-director-label {
  margin-bottom: 8px;
  color: #aaa;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.class-director-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.class-director-person > div:nth-child(2) {
  flex: 1;
}

.class-director-person strong {
  display: block;
  color: #555;
  font-size: 7px;
}

.class-director-person small {
  display: block;
  margin-top: 2px;
  color: #aaa;
  font-size: 5px;
}

.class-director-person > i {
  color: #71935d;
  font-size: 9px;
}

/* SEM DIRETOR */

.class-no-director {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #fbf8f1;
  color: #b0925f;
  font-size: 6px;
}

.class-no-director i {
  font-size: 9px;
}

/* FOOTER DO CARD */

.class-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #edf0eb;
}

.class-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #718467;
  font-size: 5px;
  font-weight: 700;
}

.class-status i {
  font-size: 4px;
}

.class-status.warning {
  color: #b08d54;
}

.class-status.warning i {
  font-size: 7px;
}

.class-card-footer a,
.class-card-footer button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  color: var(--green-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.class-card-footer a:hover,
.class-card-footer button:hover {
  text-decoration: underline;
}

/* =========================================================
   MODAL TURMA
   ========================================================= */

.class-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(35, 43, 32, 0.48);
}

.class-modal-overlay.show {
  display: flex;
}

.class-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1050px) {
  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .class-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GESTÃO DE ALUNOS
   ========================================================= */

.student-table-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.student-list-avatar {
  width: 31px;
  height: 31px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #edf4e9;
  color: var(--green-dark);

  font-size: 6px;
  font-weight: 700;
}

.student-table-person strong {
  display: block;
  color: #555;
  font-size: 7px;
}

.student-table-person small {
  display: block;
  margin-top: 2px;
  color: #aaa;
  font-size: 5px;
}

.class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 22px;
  height: 21px;

  background: #f1f5ef;
  color: #65785d;

  font-size: 6px;
  font-weight: 700;
}

.student-list-table th,
.student-list-table td {
  white-space: nowrap;
}

/* =========================================================
   MODAL ALUNO
   ========================================================= */

.student-modal {
  max-width: 520px;
}

.student-details-modal {
  max-width: 560px;
}

/* =========================================================
   PERFIL DO ALUNO
   ========================================================= */

.student-profile-header {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 18px 22px;

  background: #f7f9f6;
  border-bottom: 1px solid #e8ece6;
}

.student-large-avatar {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e6efdf;
  color: var(--green-dark);

  font-size: 12px;
  font-weight: 700;
}

.student-profile-header strong {
  display: block;

  color: #555;

  font-family: "Roboto Slab", serif;
  font-size: 14px;
}

.student-profile-header span {
  display: block;

  margin-top: 3px;

  color: #999;

  font-size: 6px;
}

.student-profile-header small {
  display: inline-block;

  margin-top: 6px;
  padding: 4px 7px;

  background: #edf5e9;
  color: #6f8a63;

  font-size: 5px;
  font-weight: 700;
}

/* =========================================================
   DETALHES
   ========================================================= */

.student-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 1px;

  background: #e9ede7;
}

.student-detail-grid > div {
  padding: 14px;

  background: #fff;
}

.student-detail-grid span {
  display: block;

  margin-bottom: 5px;

  color: #aaa;

  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.student-detail-grid strong {
  color: #555;

  font-size: 7px;
}

/* =========================================================
   AÇÕES DO PERFIL
   ========================================================= */

.student-detail-actions {
  display: flex;
  gap: 7px;

  padding: 17px 20px;

  border-top: 1px solid #e8ece6;
}

.student-detail-actions button {
  flex: 1;

  min-height: 34px;

  border: 1px solid #dfe6da;

  background: #fafcf9;

  color: #687b61;

  font-family: "Montserrat", sans-serif;

  font-size: 5px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s;
}

.student-detail-actions button:hover {
  background: #f0f5ed;
  border-color: #cddac7;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {
  .student-list-table {
    min-width: 900px;
  }
}

@media (max-width: 600px) {
  .student-detail-grid {
    grid-template-columns: 1fr;
  }

  .student-detail-actions {
    flex-direction: column;
  }
}

/* =========================================================
   FICHA COMPLETA DO ALUNO
   ========================================================= */

.student-full-profile {
  display: flex;
  align-items: center;

  gap: 16px;

  padding: 22px;

  background: #ffffff;

  border: 1px solid #e8ece6;

  margin-bottom: 16px;
}

.student-full-avatar {
  width: 72px;
  height: 72px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e6efdf;

  color: var(--green-dark);

  font-size: 18px;
  font-weight: 700;
}

.student-full-info {
  flex: 1;
}

.profile-label {
  display: block;

  margin-bottom: 5px;

  color: #a2aaa0;

  font-size: 5px;

  font-weight: 700;

  letter-spacing: 1px;
}

.student-full-info h2 {
  margin: 0;

  color: #555;

  font-family: "Roboto Slab", serif;

  font-size: 17px;
}

.student-full-info p {
  margin: 5px 0;

  color: #999;

  font-size: 6px;
}

.profile-status {
  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 4px 7px;

  background: #edf5e9;

  color: #718b68;

  font-size: 5px;

  font-weight: 700;
}

.profile-status i {
  font-size: 5px;
}

.student-profile-buttons {
  display: flex;

  gap: 7px;
}

.secondary-action-button {
  min-height: 34px;

  padding: 0 12px;

  border: 1px solid #dfe6da;

  background: #fafcf9;

  color: #687b61;

  font-family: "Montserrat", sans-serif;

  font-size: 6px;

  font-weight: 700;

  cursor: pointer;
}

.secondary-action-button:hover {
  background: #f0f5ed;
}

/* =========================================================
   INFORMAÇÕES DO PERFIL
   ========================================================= */

.profile-information-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;

  margin-bottom: 16px;
}

.profile-data-list {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1px;

  background: #e9ede7;
}

.profile-data-list > div {
  padding: 13px;

  background: #fff;
}

.profile-data-list span {
  display: block;

  margin-bottom: 5px;

  color: #aaa;

  font-size: 5px;

  font-weight: 700;

  text-transform: uppercase;
}

.profile-data-list strong {
  color: #5c6558;

  font-size: 7px;
}

/* =========================================================
   DISCIPLINAS
   ========================================================= */

.student-subject-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 9px;
}

.student-subject-card {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 12px;

  border: 1px solid #e9ede7;

  background: #fbfcfa;
}

.subject-icon {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #edf4e9;

  color: #738a6b;
}

.subject-icon i {
  font-size: 11px;
}

.student-subject-card strong {
  display: block;

  color: #596256;

  font-size: 7px;
}

.student-subject-card span {
  display: block;

  margin-top: 3px;

  color: #aaa;

  font-size: 5px;
}

/* =========================================================
   HISTÓRICO ACADÉMICO
   ========================================================= */

.academic-history {
  padding: 4px 0;
}

.history-item {
  display: grid;

  grid-template-columns: 55px 15px 1fr;

  gap: 8px;

  min-height: 65px;
}

.history-year {
  padding-top: 8px;

  color: #718466;

  font-size: 7px;

  font-weight: 700;

  text-align: right;
}

.history-line {
  position: relative;
}

.history-line::before {
  content: "";

  position: absolute;

  top: 9px;
  bottom: -9px;

  left: 6px;

  width: 1px;

  background: #dfe7da;
}

.history-line::after {
  content: "";

  position: absolute;

  top: 7px;
  left: 3px;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #7b946f;
}

.history-content {
  padding: 6px 0 15px;
}

.history-content strong {
  display: block;

  color: #5b6358;

  font-size: 7px;
}

.history-content span {
  display: block;

  margin-top: 3px;

  color: #999;

  font-size: 5px;
}

.history-content small {
  display: inline-block;

  margin-top: 5px;

  color: #77906e;

  font-size: 5px;
}

/* =========================================================
   ACESSOS RÁPIDOS
   ========================================================= */

.profile-quick-actions {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 10px;

  margin-top: 16px;
}

.quick-profile-action {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 13px;

  border: 1px solid #e7ece4;

  background: #fff;

  text-decoration: none;

  transition: 0.2s;
}

.quick-profile-action:hover {
  border-color: #ccd9c6;

  transform: translateY(-1px);
}

.quick-profile-action > i {
  width: 32px;
  height: 32px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #eef4eb;

  color: #718a69;

  font-size: 10px;
}

.quick-profile-action strong {
  display: block;

  color: #5d655a;

  font-size: 7px;
}

.quick-profile-action span {
  display: block;

  margin-top: 3px;

  color: #aaa;

  font-size: 5px;
}

/* =========================================================
   TRANSFERÊNCIA
   ========================================================= */

.transfer-student-info {
  display: flex;

  align-items: center;

  gap: 9px;

  padding: 14px 20px;

  background: #f7f9f6;

  border-bottom: 1px solid #e8ece6;
}

.transfer-student-info strong {
  display: block;

  color: #5d6559;

  font-size: 7px;
}

.transfer-student-info span {
  display: block;

  margin-top: 3px;

  color: #999;

  font-size: 5px;
}

.modal-form-group textarea {
  width: 100%;

  padding: 9px 10px;

  border: 1px solid #dfe5dc;

  outline: none;

  resize: vertical;

  font-family: "Montserrat", sans-serif;

  font-size: 6px;

  box-sizing: border-box;
}

.modal-form-group textarea:focus {
  border-color: #aebeaa;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 800px) {
  .student-full-profile {
    align-items: flex-start;

    flex-wrap: wrap;
  }

  .student-profile-buttons {
    width: 100%;
  }

  .student-profile-buttons button {
    flex: 1;
  }

  .profile-information-grid {
    grid-template-columns: 1fr;
  }

  .student-subject-grid {
    grid-template-columns: 1fr;
  }

  .profile-quick-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .student-full-profile {
    flex-direction: column;
  }

  .student-profile-buttons {
    flex-direction: column;
  }

  .profile-data-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   GESTÃO DE PROFESSORES
   ========================================================= */

.teacher-table-person {
  display: flex;
  align-items: center;

  gap: 8px;
}

.teacher-list-avatar {
  width: 31px;
  height: 31px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #edf4e9;

  color: var(--green-dark);

  font-size: 7px;
  font-weight: 700;
}

.teacher-table-person strong {
  display: block;

  color: #555;

  font-size: 7px;
}

.teacher-table-person small {
  display: block;

  margin-top: 2px;

  color: #aaa;

  font-size: 5px;
}

.teacher-subjects {
  display: flex;

  flex-wrap: wrap;

  gap: 4px;
}

.teacher-subjects span {
  padding: 4px 6px;

  background: #f1f5ef;

  color: #718168;

  font-size: 5px;

  font-weight: 600;
}

.teacher-class-count {
  color: #687463;

  font-size: 6px;

  font-weight: 600;
}

.director-badge {
  display: inline-flex;

  align-items: center;

  gap: 4px;

  padding: 5px 7px;

  background: #eef4eb;

  color: #6e8667;

  font-size: 5px;

  font-weight: 700;
}

.director-badge i {
  font-size: 5px;
}

.not-director {
  color: #aaa;

  font-size: 5px;
}

/* =========================================================
   MODAL PROFESSOR
   ========================================================= */

.teacher-modal {
  max-width: 530px;
}

.teacher-details-modal {
  max-width: 570px;
}

/* =========================================================
   PERFIL DO PROFESSOR
   ========================================================= */

.teacher-profile-header {
  display: flex;

  align-items: center;

  gap: 12px;

  padding: 17px 21px;

  background: #f7f9f6;

  border-bottom: 1px solid #e8ece6;
}

.teacher-large-avatar {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #e6efdf;

  color: var(--green-dark);

  font-size: 13px;
  font-weight: 700;
}

.teacher-profile-header strong {
  display: block;

  color: #555;

  font-family: "Roboto Slab", serif;

  font-size: 13px;
}

.teacher-profile-header span {
  display: block;

  margin-top: 3px;

  color: #999;

  font-size: 6px;
}

.teacher-profile-header small {
  display: inline-block;

  margin-top: 6px;

  padding: 4px 7px;

  background: #edf5e9;

  color: #708867;

  font-size: 5px;

  font-weight: 700;
}

/* =========================================================
   RESUMO DO PROFESSOR
   ========================================================= */

.teacher-details-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1px;

  background: #e9ede7;
}

.teacher-details-grid > div {
  padding: 13px;

  background: #fff;
}

.teacher-details-grid span {
  display: block;

  margin-bottom: 5px;

  color: #aaa;

  font-size: 5px;

  font-weight: 700;
}

.teacher-details-grid strong {
  color: #5d6659;

  font-size: 8px;
}

/* =========================================================
   ATRIBUIÇÕES DO PROFESSOR
   ========================================================= */

.teacher-assigned-section {
  padding: 17px 20px;
}

.teacher-assigned-section h4 {
  margin: 5px 0 12px;

  color: #5b6358;

  font-family: "Roboto Slab", serif;

  font-size: 10px;
}

.teacher-assignment-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 10px 11px;

  margin-bottom: 5px;

  border: 1px solid #e8ece5;

  background: #fbfcfa;
}

.teacher-assignment-row strong {
  display: block;

  color: #5c6559;

  font-size: 6px;
}

.teacher-assignment-row span {
  display: block;

  margin-top: 3px;

  color: #999;

  font-size: 5px;
}

.teacher-assignment-row > i {
  color: #819977;

  font-size: 8px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 850px) {
  .teacher-list-table {
    min-width: 900px;
  }

  .teacher-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 550px) {
  .teacher-details-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   AJUSTE GERAL — PORTAL LICEU ERNESTO MUTHEMBA
   ===================================================== */

.student-nav-link span {
    font-size: 13px;
}

.student-menu-title {
    font-size: 10px;
}

.dashboard-page-title span {
    font-size: 10px;
}

.dashboard-page-title h1 {
    font-size: 22px;
}

.direction-page-header h2 {
    font-size: 28px;
}

.direction-page-header p {
    font-size: 14px;
    line-height: 1.6;
}

.primary-action-button {
    font-size: 13px;
    min-height: 44px;
}

.assignment-filters label {
    font-size: 11px;
}

.assignment-filters select {
    min-height: 


    /* =========================================================
   ATRIBUIÇÕES
   ========================================================= */

.assignment-person {
    display: flex;
    align-items: center;
    gap: 11px;
}

.assignment-avatar {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #edf4e9;
    color: #63785d;

    font-size: 11px;
    font-weight: 700;
}

.assignment-person strong {
    display: block;

    color: #525c50;

    font-size: 13px;
}

.assignment-person span {
    display: block;

    margin-top: 3px;

    color: #9ba298;

    font-size: 9px;
}

.class-director-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 9px;

    background: #f4f0df;

    color: #857648;

    font-size: 9px;
    font-weight: 700;
}

.class-director-badge i {
    font-size: 9px;
}

.not-director-badge {
    display: inline-flex;

    padding: 7px 9px;

    background: #f5f6f4;

    color: #899087;

    font-size: 9px;
}

.assignment-rule-card {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-top: 20px;

    padding: 18px 20px;

    background: #f6f9f4;

    border: 1px solid #e0e8dc;
}

.assignment-rule-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e7efe3;

    color: #6e8668;

    font-size: 18px;
}

.assignment-rule-card strong {
    display: block;

    margin-bottom: 5px;

    color: #596454;

    font-size: 13px;
}

.assignment-rule-card p {
    margin: 0;

    color: #7d8579;

    font-size: 11px;

    line-height: 1.6;
}

.assignment-modal {
    width: min(560px, 94vw);
}

.assignment-modal .modal-form-group {
    margin-bottom: 16px;
}

.assignment-modal .modal-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #697265;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .04em;
}

.assignment-modal .modal-form-group select {
    width: 100%;

    min-height: 44px;

    padding: 0 13px;

    border: 1px solid #dce3d9;

    background: #fff;

    color: #5b6558;

    font-family: "Montserrat", sans-serif;

    font-size: 12px;

    outline: none;
}

.assignment-modal .modal-form-group select:focus {
    border-color: #aebea8;
}

.assignment-modal .modal-form-info {
    margin-top: 10px;
    margin-bottom: 20px;
}


/* =========================================================
   TABELA DE ATRIBUIÇÕES
   ========================================================= */

.assignment-table-card {
    overflow: hidden;
}

.assignment-table-card .direction-table td {
    vertical-align: middle;
}

.assignment-table-card .direction-table th {
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {

    .assignment-filters {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 650px) {

    .assignment-filters {
        grid-template-columns: 1fr;
    }

    .assignment-rule-card {
        align-items: flex-start;
    }

}

@media (max-width: 500px) {

    .assignment-person strong {
        font-size: 12px;
    }

    .assignment-rule-card {
        flex-direction: column;
    }

}

/* =========================================================
   DASHBOARD DO PROFESSOR
   ========================================================= */

.professor-avatar {
    background: #e7efe3;
    color: #657c5f;
}


/* =========================================================
   BOAS-VINDAS
   ========================================================= */

.professor-welcome {

    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 150px;

    padding: 28px 32px;

    margin-bottom: 22px;

    background: linear-gradient(
        135deg,
        #f3f7f0,
        #eaf1e5
    );

    border: 1px solid #dfe8da;

}

.professor-welcome span {

    display: block;

    margin-bottom: 8px;

    color: #819079;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;

}

.professor-welcome h2 {

    margin: 0 0 8px;

    color: #566251;

    font-family: "Roboto Slab", serif;

    font-size: 25px;

}

.professor-welcome p {

    margin: 0;

    color: #7d8679;

    font-size: 12px;

}

.professor-welcome-icon {

    width: 80px;
    height: 80px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #dfe9da;

    color: #718568;

    font-size: 30px;

}


/* =========================================================
   TURMAS
   ========================================================= */

.professor-class-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    padding: 20px;

}

.professor-class-card {

    padding: 20px;

    background: #fff;

    border: 1px solid #e3e8e0;

    transition: .2s ease;

}

.professor-class-card:hover {

    border-color: #cbd7c6;

    transform: translateY(-2px);

}

.professor-class-top {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;

}

.professor-class-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf4e9;

    color: #6d8366;

}

.class-status {

    padding: 6px 8px;

    background: #edf5eb;

    color: #6b8064;

    font-size: 8px;

    font-weight: 700;

    text-transform: uppercase;

}

.professor-class-level {

    display: block;

    margin-bottom: 5px;

    color: #9aa198;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .05em;

}

.professor-class-card h4 {

    margin: 0 0 10px;

    color: #515b4e;

    font-family: "Roboto Slab", serif;

    font-size: 19px;

}

.professor-class-subject {

    display: flex;

    align-items: center;

    gap: 7px;

    padding-bottom: 15px;

    border-bottom: 1px solid #edf0eb;

    color: #697465;

    font-size: 11px;

}

.professor-class-subject i {

    color: #82967b;

}

.professor-class-info {

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 15px 0;

}

.professor-class-info span {

    color: #858d82;

    font-size: 10px;

}

.professor-class-info i {

    width: 17px;

    color: #91a18b;

}

.professor-class-button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px 12px;

    background: #f5f8f3;

    color: #687a62;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

}

.professor-class-button:hover {

    background: #eaf1e6;

}


/* =========================================================
   NOTAS PENDENTES
   ========================================================= */

.professor-pending-list {

    padding: 0 20px 20px;

}

.pending-item {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 15px 5px;

    border-bottom: 1px solid #edf0eb;

}

.pending-item:last-child {

    border-bottom: none;

}

.pending-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f5f0df;

    color: #927f48;

    flex-shrink: 0;

}

.pending-info {

    flex: 1;

}

.pending-info strong {

    display: block;

    margin-bottom: 4px;

    color: #5b6557;

    font-size: 12px;

}

.pending-info span {

    color: #969d93;

    font-size: 9px;

}

.pending-count {

    color: #8c9489;

    font-size: 9px;

}

.pending-item > a {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #708468;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

}


/* =========================================================
   SEGURANÇA
   ========================================================= */

.professor-security-note {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-top: 20px;

    padding: 17px 20px;

    background: #f7f9f6;

    border: 1px solid #e1e7de;

}

.professor-security-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8efe5;

    color: #71866a;

    flex-shrink: 0;

}

.professor-security-note strong {

    display: block;

    margin-bottom: 4px;

    color: #596454;

    font-size: 12px;

}

.professor-security-note p {

    margin: 0;

    color: #899187;

    font-size: 10px;

    line-height: 1.5;

}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1000px) {

    .professor-class-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }

}

@media (max-width: 700px) {

    .professor-welcome {

        padding: 22px;

    }

    .professor-welcome-icon {

        width: 60px;
        height: 60px;

        font-size: 22px;

    }

    .professor-class-grid {

        grid-template-columns: 1fr;

    }

    .pending-item {

        align-items: flex-start;

    }

    .pending-count {

        display: none;

    }

}

@media (max-width: 500px) {

    .professor-welcome-icon {

        display: none;

    }

    .professor-security-note {

        align-items: flex-start;

    }

}

/* =========================================================
   PÁGINA DA TURMA DO PROFESSOR
   ========================================================= */

.professor-back-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 15px;

    color: #788874;

    text-decoration: none;

    font-size: 11px;

    font-weight: 600;

}

.professor-back-link:hover {

    color: #596b54;

}


/* =========================================================
   CABEÇALHO DA TURMA
   ========================================================= */

.class-page-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 24px 28px;

    margin-bottom: 20px;

    background: #fff;

    border: 1px solid #e2e8df;

}

.class-page-main {

    display: flex;

    align-items: center;

    gap: 17px;

}

.class-page-icon {

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e8f0e4;

    color: #6d8366;

    font-size: 23px;

}

.class-page-main > div:last-child > span {

    display: block;

    margin-bottom: 5px;

    color: #98a097;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .07em;

}

.class-page-main h2 {

    margin: 0 0 5px;

    color: #515b4e;

    font-family: "Roboto Slab", serif;

    font-size: 26px;

}

.class-page-main p {

    margin: 0;

    color: #8b9389;

    font-size: 11px;

}

.class-page-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}

.secondary-class-button {

    min-height: 44px;

    padding: 0 15px;

    border: 1px solid #dce4d9;

    background: #fff;

    color: #687666;

    font-family: "Montserrat", sans-serif;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

}

.secondary-class-button:hover {

    background: #f6f8f5;

}


/* =========================================================
   TRIMESTRES
   ========================================================= */

.quarter-selector-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 20px;

    margin-bottom: 18px;

    background: #fff;

    border: 1px solid #e2e8df;

}

.quarter-selector-card > div:first-child > span {

    display: block;

    margin-bottom: 5px;

    color: #98a097;

    font-size: 9px;

    font-weight: 700;

}

.quarter-selector-card h3 {

    margin: 0;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 17px;

}

.quarter-buttons {

    display: flex;

    gap: 6px;

}

.quarter-button {

    min-height: 38px;

    padding: 0 13px;

    border: 1px solid #dfe5dc;

    background: #fff;

    color: #7d867a;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

}

.quarter-button.active {

    background: #6f8569;

    border-color: #6f8569;

    color: #fff;

}


/* =========================================================
   ESTRUTURA DAS AVALIAÇÕES
   ========================================================= */

.assessment-structure {

    margin-bottom: 20px;

    padding: 20px;

    background: #f7f9f6;

    border: 1px solid #e1e7de;

}

.assessment-structure-title {

    margin-bottom: 18px;

}

.assessment-structure-title span {

    display: block;

    margin-bottom: 5px;

    color: #97a096;

    font-size: 9px;

    font-weight: 700;

}

.assessment-structure-title h3 {

    margin: 0;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 17px;

}

.assessment-steps {

    display: flex;

    align-items: center;

}

.assessment-step {

    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;

}

.assessment-step-number {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #e6eee2;

    color: #6d8366;

    font-size: 10px;

    font-weight: 700;

}

.assessment-step strong {

    display: block;

    margin-bottom: 3px;

    color: #626c5e;

    font-size: 10px;

}

.assessment-step span {

    color: #979e94;

    font-size: 8px;

}

.assessment-step-line {

    width: 30px;

    height: 1px;

    margin: 0 8px;

    background: #d7dfd3;

}

.assessment-step-final
.assessment-step-number {

    background: #eee9d9;

    color: #8a7b4f;

}


/* =========================================================
   TABELA DE NOTAS
   ========================================================= */

.grades-class-card {

    overflow: hidden;

}

.grades-header-actions {

    display: flex;

    align-items: center;

    gap: 15px;

}

.grades-saving-status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #8b9488;

    font-size: 9px;

}

.grades-saving-status i {

    color: #7d9476;

}

.grade-table-wrapper {

    width: 100%;

    overflow-x: auto;

}

.grade-table {

    width: 100%;

    min-width: 1000px;

    border-collapse: collapse;

}

.grade-table th {

    padding: 13px 12px;

    background: #f7f9f6;

    border-bottom: 1px solid #e1e6df;

    color: #8d968b;

    font-size: 8px;

    font-weight: 700;

    text-align: left;

    white-space: nowrap;

}

.grade-table td {

    padding: 13px 12px;

    border-bottom: 1px solid #edf0eb;

    color: #697367;

    font-size: 10px;

    vertical-align: middle;

}

.grade-student {

    display: flex;

    align-items: center;

    gap: 9px;

    min-width: 180px;

}

.grade-student-avatar {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #edf4e9;

    color: #667c60;

    font-size: 9px;

    font-weight: 700;

}

.grade-student-avatar.large {

    width: 48px;
    height: 48px;

    font-size: 12px;

}

.grade-student strong {

    display: block;

    color: #596355;

    font-size: 10px;

}

.grade-student span {

    display: block;

    margin-top: 3px;

    color: #a0a69d;

    font-size: 8px;

}

.grade-value {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 35px;
    min-height: 30px;

    background: #f6f8f5;

    color: #596454;

    font-size: 11px;

    font-weight: 700;

}

.grade-missing {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 35px;
    min-height: 30px;

    background: #faf7ed;

    color: #a08e5b;

    font-size: 14px;

    font-weight: 700;

}

.quarter-average {

    color: #62745d;

    font-size: 12px;

}

.quarter-average.missing {

    color: #aa945b;

    font-size: 9px;

    text-transform: uppercase;

}

.grade-complete {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #708568;

    font-size: 8px;

    font-weight: 700;

    white-space: nowrap;

}

.grade-complete i {

    font-size: 10px;

}

.grade-incomplete {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #a08c59;

    font-size: 8px;

    font-weight: 700;

    white-space: nowrap;

}

.grade-pending-row {

    background: #fffdf8;

}

.grade-edit-button {

    width: 31px;
    height: 31px;

    border: 1px solid #e0e5dd;

    background: #fff;

    color: #778673;

    cursor: pointer;

}

.grade-edit-button:hover {

    background: #f1f5ee;

}


/* =========================================================
   NOTA SOBRE O CÁLCULO
   ========================================================= */

.grade-calculation-note {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    padding: 17px 20px;

    background: #f8faf7;

    border-top: 1px solid #e5eae2;

}

.grade-calculation-note > i {

    margin-top: 2px;

    color: #78906f;

}

.grade-calculation-note strong {

    color: #626d5f;

    font-size: 10px;

}

.grade-calculation-note p {

    margin: 5px 0 0;

    color: #8a9287;

    font-size: 9px;

    line-height: 1.6;

}


/* =========================================================
   MODAL DE NOTAS
   ========================================================= */

.grade-modal {

    width: min(570px, 94vw);

}

.grade-modal-student {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px 20px;

    background: #f7f9f6;

    border-bottom: 1px solid #e2e8df;

}

.grade-modal-student strong {

    display: block;

    margin-bottom: 4px;

    color: #596354;

    font-size: 13px;

}

.grade-modal-student span {

    color: #969e94;

    font-size: 9px;

}

.assessment-input-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;

    padding: 20px 20px 0;

}

.assessment-input label {

    display: block;

    margin-bottom: 7px;

    color: #697367;

    font-size: 9px;

    font-weight: 700;

}

.assessment-input input {

    width: 100%;

    height: 44px;

    padding: 0 10px;

    box-sizing: border-box;

    border: 1px solid #dce3d9;

    background: #fff;

    color: #596354;

    font-family: "Montserrat", sans-serif;

    font-size: 13px;

    font-weight: 700;

    text-align: center;

    outline: none;

}

.assessment-input input:focus {

    border-color: #9eb096;

}

.assessment-input span {

    display: block;

    margin-top: 5px;

    color: #a1a79e;

    font-size: 7px;

    text-align: center;

}

.modal-average-preview {

    margin: 20px;

    padding: 18px;

    background: #f3f7f0;

    border: 1px solid #dfe8da;

    text-align: center;

}

.modal-average-preview span {

    display: block;

    margin-bottom: 5px;

    color: #899486;

    font-size: 8px;

    font-weight: 700;

}

.modal-average-preview strong {

    display: block;

    color: #63785d;

    font-family: "Roboto Slab", serif;

    font-size: 27px;

}

.modal-average-preview small {

    display: block;

    margin-top: 5px;

    color: #9aa298;

    font-size: 8px;

}


/* =========================================================
   LISTA DE ALUNOS
   ========================================================= */

.student-list-modal {

    width: min(570px, 94vw);

}

.student-list-content {

    max-height: 400px;

    overflow-y: auto;

    padding: 18px 20px;

}

.student-list-search {

    display: flex;

    align-items: center;

    gap: 9px;

    height: 40px;

    margin-bottom: 12px;

    padding: 0 12px;

    border: 1px solid #dfe5dc;

    background: #fff;

}

.student-list-search i {

    color: #9aa198;

    font-size: 10px;

}

.student-list-search input {

    width: 100%;

    border: none;

    outline: none;

    color: #596354;

    font-family: "Montserrat", sans-serif;

    font-size: 10px;

}

.student-list-row {

    display: grid;

    grid-template-columns: 35px 1fr 80px;

    align-items: center;

    gap: 10px;

    padding: 12px 5px;

    border-bottom: 1px solid #edf0eb;

}

.student-list-row > span {

    color: #9ba198;

    font-size: 9px;

}

.student-list-row strong {

    color: #606a5d;

    font-size: 10px;

}

.student-list-row small {

    color: #9da49b;

    font-size: 8px;

}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {

    .class-page-header {

        align-items: flex-start;

        flex-direction: column;

    }

    .class-page-actions {

        width: 100%;

    }

    .assessment-steps {

        flex-wrap: wrap;

        gap: 12px;

    }

    .assessment-step-line {

        display: none;

    }

    .assessment-step {

        flex: 0 0 calc(50% - 6px);

    }

}

@media (max-width: 700px) {

    .quarter-selector-card {

        align-items: flex-start;

        flex-direction: column;

    }

    .quarter-buttons {

        width: 100%;

        overflow-x: auto;

    }

    .quarter-button {

        flex-shrink: 0;

    }

    .grades-header-actions {

        align-items: flex-end;

        flex-direction: column;

        gap: 8px;

    }

    .assessment-input-grid {

        grid-template-columns: 1fr;

    }

}

@media (max-width: 500px) {

    .class-page-actions {

        flex-direction: column;

    }

    .class-page-actions > * {

        width: 100%;

    }

    .class-page-main h2 {

        font-size: 22px;

    }

    .assessment-step {

        flex: 0 0 100%;

    }

}

/* =========================================================
   LANÇAMENTO DE NOTAS — PROFESSOR
   ========================================================= */

.grades-entry-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

}

.grades-entry-heading > div:first-child > span {

    display: block;

    margin-bottom: 6px;

    color: #98a097;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: .06em;

}

.grades-entry-heading h2 {

    margin: 0 0 7px;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 25px;

}

.grades-entry-heading p {

    margin: 0;

    color: #8e968b;

    font-size: 10px;

}

.grades-entry-status {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    background: #f5f8f3;

    border: 1px solid #dfe7dc;

}

.grades-entry-status > i {

    color: #758c6e;

    font-size: 17px;

}

.grades-entry-status strong {

    display: block;

    margin-bottom: 3px;

    color: #64705f;

    font-size: 9px;

}

.grades-entry-status span {

    color: #99a197;

    font-size: 8px;

}


/* =========================================================
   FILTROS
   ========================================================= */

.grade-filters-card {

    display: grid;

    grid-template-columns:
        1fr 1fr 1fr auto;

    align-items: end;

    gap: 13px;

    padding: 20px;

    margin-bottom: 18px;

    background: #fff;

    border: 1px solid #e1e7df;

}

.grade-filter-item label {

    display: block;

    margin-bottom: 7px;

    color: #8c958a;

    font-size: 8px;

    font-weight: 700;

}

.grade-select-wrapper {

    position: relative;

}

.grade-select-wrapper > i {

    position: absolute;

    top: 50%;

    left: 12px;

    transform: translateY(-50%);

    color: #879482;

    font-size: 10px;

    pointer-events: none;

}

.grade-select-wrapper select {

    width: 100%;

    height: 43px;

    padding: 0 30px 0 33px;

    border: 1px solid #dce4d9;

    background: #fff;

    color: #606a5d;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 600;

    outline: none;

    cursor: pointer;

}

.grade-select-wrapper select:focus {

    border-color: #98aa91;

}

.filter-apply-button {

    height: 43px;

    padding: 0 17px;

    border: none;

    background: #708568;

    color: #fff;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

}

.filter-apply-button:hover {

    background: #607659;

}


/* =========================================================
   TIPO DE AVALIAÇÃO
   ========================================================= */

.assessment-type-card {

    padding: 20px;

    margin-bottom: 20px;

    background: #f7f9f6;

    border: 1px solid #e1e7de;

}

.assessment-type-title {

    margin-bottom: 15px;

}

.assessment-type-title span {

    display: block;

    margin-bottom: 5px;

    color: #99a097;

    font-size: 8px;

    font-weight: 700;

}

.assessment-type-title h3 {

    margin: 0;

    color: #606a5c;

    font-family: "Roboto Slab", serif;

    font-size: 16px;

}

.assessment-type-buttons {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}

.assessment-type-button {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 64px;

    padding: 10px 13px;

    border: 1px solid #dce4d9;

    background: #fff;

    color: #667164;

    text-align: left;

    cursor: pointer;

}

.assessment-type-button:hover {

    border-color: #aab9a4;

}

.assessment-type-button.active {

    border-color: #708568;

    background: #f0f5ed;

}

.assessment-type-number {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #edf3e9;

    color: #718668;

    font-size: 9px;

    font-weight: 700;

}

.assessment-type-button.active
.assessment-type-number {

    background: #708568;

    color: #fff;

}

.assessment-type-button strong {

    display: block;

    margin-bottom: 4px;

    font-size: 10px;

}

.assessment-type-button span {

    display: block;

    color: #9aa198;

    font-size: 8px;

}


/* =========================================================
   CABEÇALHO DA PAUTA
   ========================================================= */

.grade-sheet-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;

}

.grade-sheet-heading > div:first-child > span {

    display: block;

    margin-bottom: 5px;

    color: #98a097;

    font-size: 8px;

    font-weight: 700;

}

.grade-sheet-heading h3 {

    margin: 0;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 17px;

}

.grade-sheet-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}

.unsaved-note {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    color: #a08d5b;

    font-size: 8px;

}

.unsaved-note i {

    font-size: 6px;

}

.save-grades-button {

    min-height: 40px;

    padding: 0 16px;

    border: none;

    background: #708568;

    color: #fff;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

}

.save-grades-button:hover {

    background: #5f7658;

}


/* =========================================================
   INFORMAÇÃO DA PAUTA
   ========================================================= */

.grade-sheet-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 13px 17px;

    border-bottom: 1px solid #e8ece6;

}

.grade-sheet-info > div {

    display: flex;

    align-items: center;

    gap: 9px;

}

.grade-sheet-info i {

    color: #809379;

}

.grade-sheet-info span {

    color: #899187;

    font-size: 8px;

}

.grade-sheet-info strong {

    color: #687565;

}

.students-count {

    color: #71816c !important;

    font-weight: 700;

    white-space: nowrap;

}


/* =========================================================
   TABELA
   ========================================================= */

.grade-entry-table-wrapper {

    width: 100%;

    overflow-x: auto;

}

.grade-entry-table {

    width: 100%;

    min-width: 850px;

    border-collapse: collapse;

}

.grade-entry-table th {

    padding: 13px 15px;

    background: #f8faf7;

    border-bottom: 1px solid #e0e6de;

    color: #8d958b;

    font-size: 8px;

    font-weight: 700;

    text-align: left;

}

.grade-entry-table td {

    padding: 12px 15px;

    border-bottom: 1px solid #edf0eb;

    color: #7b8478;

    font-size: 9px;

}

.entry-student {

    display: flex;

    align-items: center;

    gap: 9px;

}

.entry-avatar {

    width: 31px;
    height: 31px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #edf3e9;

    color: #687e62;

    font-size: 8px;

    font-weight: 700;

}

.entry-student strong {

    color: #5f695c;

    font-size: 9px;

}

.grade-entry-input {

    width: 65px;

    height: 36px;

    box-sizing: border-box;

    border: 1px solid #d8e0d5;

    background: #fff;

    color: #596554;

    font-family: "Montserrat", sans-serif;

    font-size: 11px;

    font-weight: 700;

    text-align: center;

    outline: none;

}

.grade-entry-input:focus {

    border-color: #91a58a;

    box-shadow: 0 0 0 2px #eef3eb;

}

.grade-entry-input.empty {

    background: #fffdf8;

    border-color: #e7dfc9;

}

.grade-entry-input.invalid {

    border-color: #c68c8c;

    background: #fff6f6;

}

.entry-status {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    font-size: 8px;

    font-weight: 700;

}

.entry-status.complete {

    color: #718669;

}

.entry-status.pending {

    color: #a18d59;

}

.entry-average {

    color: #61735c;

    font-size: 11px;

    font-weight: 700;

}

.entry-average.pending {

    color: #a28f5e;

    font-size: 8px;

    text-transform: uppercase;

}


/* =========================================================
   RODAPÉ DA PAUTA
   ========================================================= */

.grade-sheet-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    background: #fafbf9;

}

.grade-rule {

    display: flex;

    align-items: flex-start;

    gap: 9px;

}

.grade-rule > i {

    margin-top: 2px;

    color: #809378;

}

.grade-rule strong {

    display: block;

    margin-bottom: 3px;

    color: #687363;

    font-size: 8px;

}

.grade-rule span {

    display: block;

    max-width: 550px;

    color: #9ba198;

    font-size: 8px;

    line-height: 1.5;

}

.sheet-pagination {

    display: flex;

    align-items: center;

    gap: 10px;

    color: #929990;

    font-size: 8px;

    white-space: nowrap;

}

.sheet-pagination button {

    width: 27px;
    height: 27px;

    border: 1px solid #dfe5dc;

    background: #fff;

    color: #778273;

    cursor: pointer;

}


/* =========================================================
   AVISO
   ========================================================= */

.teacher-grade-warning {

    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-top: 18px;

    padding: 16px 18px;

    background: #fbfaf4;

    border: 1px solid #ece6d3;

}

.teacher-grade-warning-icon {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f2ecda;

    color: #a08d58;

}

.teacher-grade-warning strong {

    display: block;

    margin-bottom: 4px;

    color: #766b4d;

    font-size: 9px;

}

.teacher-grade-warning p {

    margin: 0;

    color: #9a927f;

    font-size: 8px;

    line-height: 1.6;

}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 950px) {

    .grade-filters-card {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .filter-apply-button {

        width: 100%;

    }

}

@media (max-width: 750px) {

    .grades-entry-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .grades-entry-status {

        width: 100%;

        box-sizing: border-box;

    }

    .assessment-type-buttons {

        grid-template-columns: 1fr;

    }

    .grade-sheet-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .grade-sheet-actions {

        width: 100%;

        justify-content: space-between;

    }

}

@media (max-width: 600px) {

    .grade-filters-card {

        grid-template-columns: 1fr;

    }

    .grade-sheet-footer {

        align-items: flex-start;

        flex-direction: column;

    }

    .grade-sheet-actions {

        align-items: flex-start;

        flex-direction: column;

    }

}

/* =========================================================
   DIREÇÃO — PROFESSORES
   IDENTIDADE: VERDE + AMARELO + ROXO
   ========================================================= */

.direction-dashboard {
    background: #f5f7f3;
    color: #596354;
}


/* SIDEBAR */

.direction-sidebar {

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 245px;

    background: #52654d;

    color: #fff;

    z-index: 100;

    overflow-y: auto;

}

.direction-brand {

    height: 78px;

    display: flex;

    align-items: center;

    gap: 11px;

    padding: 0 20px;

    box-sizing: border-box;

    border-bottom: 1px solid rgba(255,255,255,.12);

}

.direction-brand-icon {

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #e7c548;

    color: #52654d;

    font-size: 17px;

}

.direction-brand strong {

    display: block;

    font-family: "Roboto Slab", serif;

    font-size: 15px;

    letter-spacing: .08em;

}

.direction-brand span {

    display: block;

    margin-top: 2px;

    color: #dbe1d7;

    font-size: 7px;

    letter-spacing: .08em;

}


.direction-user {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 18px 15px;

    padding: 12px;

    background: rgba(255,255,255,.08);

}

.direction-user-avatar {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #735a91;

    color: #fff;

    font-size: 9px;

    font-weight: 800;

}

.direction-user strong {

    display: block;

    font-size: 9px;

}

.direction-user span {

    display: block;

    margin-top: 3px;

    color: #d1d9cd;

    font-size: 7px;

}


.direction-nav {

    padding: 0 11px 20px;

}

.direction-nav-title {

    display: block;

    padding: 12px 10px 7px;

    color: #bec8ba;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .12em;

}

.direction-nav-space {

    margin-top: 12px;

}


.direction-nav-link {

    display: flex;

    align-items: center;

    gap: 11px;

    min-height: 42px;

    margin-bottom: 3px;

    padding: 0 12px;

    box-sizing: border-box;

    color: #e1e6df;

    text-decoration: none;

    font-size: 9px;

    font-weight: 600;

}

.direction-nav-link i {

    width: 17px;

    text-align: center;

    font-size: 11px;

}

.direction-nav-link:hover {

    background: rgba(255,255,255,.08);

}

.direction-nav-link.active {

    background: #e7c548;

    color: #4e6049;

    font-weight: 800;

}

.direction-nav-link.active i {

    color: #695280;

}

.direction-logout {

    margin-top: 15px;

    border-top: 1px solid rgba(255,255,255,.12);

}


/* MAIN */

.direction-main {

    margin-left: 245px;

    min-height: 100vh;

}


/* TOPBAR */

.direction-topbar {

    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 0 28px;

    box-sizing: border-box;

    background: #fff;

    border-bottom: 1px solid #e2e8df;

}

.direction-topbar-left {

    display: flex;

    align-items: center;

    gap: 15px;

}

.direction-menu-button {

    display: none;

}

.direction-topbar-left span {

    display: block;

    margin-bottom: 3px;

    color: #99a197;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .08em;

}

.direction-topbar-left h1 {

    margin: 0;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 20px;

}


.direction-topbar-right {

    display: flex;

    align-items: center;

    gap: 15px;

}

.direction-search {

    position: relative;

}

.direction-search i {

    position: absolute;

    top: 50%;
    left: 12px;

    transform: translateY(-50%);

    color: #a0a89d;

    font-size: 10px;

}

.direction-search input {

    width: 190px;

    height: 37px;

    padding: 0 12px 0 32px;

    box-sizing: border-box;

    border: 1px solid #e0e6dd;

    outline: none;

    color: #667062;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

}

.direction-search input:focus {

    border-color: #9baa94;

}


.direction-notification {

    position: relative;

    width: 37px;
    height: 37px;

    border: 1px solid #e0e6dd;

    background: #fff;

    color: #71806d;

}

.direction-notification span {

    position: absolute;

    top: -4px;
    right: -4px;

    width: 14px;
    height: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #735a91;

    color: #fff;

    font-size: 6px;

}


.direction-profile {

    display: flex;

    align-items: center;

    gap: 9px;

}

.direction-profile-avatar {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #735a91;

    color: #fff;

    font-size: 8px;

    font-weight: 800;

}

.direction-profile strong {

    display: block;

    color: #626b5e;

    font-size: 8px;

}

.direction-profile span {

    display: block;

    margin-top: 3px;

    color: #9aa198;

    font-size: 7px;

}


/* CONTENT */

.direction-content {

    padding: 28px;

}


/* PAGE HEADING */

.direction-page-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;

}

.direction-page-heading > div > span {

    display: block;

    margin-bottom: 6px;

    color: #8f998c;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .07em;

}

.direction-page-heading h2 {

    margin: 0 0 6px;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 25px;

}

.direction-page-heading p {

    margin: 0;

    color: #929a90;

    font-size: 9px;

}

.add-teacher-button {

    min-height: 43px;

    padding: 0 18px;

    border: none;

    background: #e7c548;

    color: #4f604b;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;

    font-weight: 800;

    cursor: pointer;

}

.add-teacher-button i {

    margin-right: 6px;

}

.add-teacher-button:hover {

    background: #d9b83d;

}


/* STATS */

.teacher-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 20px;

}

.teacher-stat-card {

    display: flex;

    align-items: center;

    gap: 13px;

    min-height: 105px;

    padding: 17px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #e2e8df;

    position: relative;

    overflow: hidden;

}

.teacher-stat-card::after {

    content: "";

    position: absolute;

    right: -22px;

    bottom: -32px;

    width: 85px;
    height: 85px;

    border-radius: 50%;

    opacity: .08;

}

.teacher-stat-card.green::after {

    background: #526f4c;

}

.teacher-stat-card.yellow::after {

    background: #d1ad2e;

}

.teacher-stat-card.purple::after {

    background: #735a91;

}

.teacher-stat-card.dark::after {

    background: #394b36;

}

.teacher-stat-icon {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 14px;

}

.green .teacher-stat-icon {

    background: #eaf1e7;

    color: #607d59;

}

.yellow .teacher-stat-icon {

    background: #fbf4d7;

    color: #b39428;

}

.purple .teacher-stat-icon {

    background: #eee8f4;

    color: #735a91;

}

.dark .teacher-stat-icon {

    background: #e8ece6;

    color: #52654d;

}

.teacher-stat-card span {

    display: block;

    margin-bottom: 4px;

    color: #9aa198;

    font-size: 7px;

    font-weight: 800;

}

.teacher-stat-card strong {

    display: block;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 21px;

}

.teacher-stat-card small {

    display: block;

    margin-top: 2px;

    color: #a0a69e;

    font-size: 7px;

}


/* FILTERS */

.teacher-filters {

    display: grid;

    grid-template-columns:
        1fr 180px 180px auto;

    gap: 10px;

    padding: 15px;

    margin-bottom: 15px;

    background: #fff;

    border: 1px solid #e1e7de;

}

.teacher-filter-search {

    position: relative;

}

.teacher-filter-search i {

    position: absolute;

    top: 50%;
    left: 12px;

    transform: translateY(-50%);

    color: #9ca49a;

    font-size: 9px;

}

.teacher-filter-search input,
.teacher-filters select {

    width: 100%;

    height: 39px;

    box-sizing: border-box;

    padding: 0 12px;

    border: 1px solid #dfe5dc;

    background: #fff;

    color: #687265;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

    outline: none;

}

.teacher-filter-search input {

    padding-left: 31px;

}

.teacher-filter-search input:focus,
.teacher-filters select:focus {

    border-color: #9aaa93;

}

.filter-reset {

    height: 39px;

    padding: 0 13px;

    border: 1px solid #dfe5dc;

    background: #f8faf7;

    color: #788274;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

    cursor: pointer;

}


/* CARD */

.direction-card {

    background: #fff;

    border: 1px solid #e1e7de;

}

.direction-card-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #e6ebe4;

}

.direction-card-header span {

    display: block;

    margin-bottom: 4px;

    color: #9aa198;

    font-size: 7px;

    font-weight: 800;

}

.direction-card-header h3 {

    margin: 0;

    color: #60695c;

    font-family: "Roboto Slab", serif;

    font-size: 15px;

}

.teacher-table-count {

    color: #969e94;

    font-size: 8px;

}

.teacher-table-count strong {

    color: #735a91;

    font-size: 14px;

}


/* TABLE */

.teacher-table-wrapper {

    overflow-x: auto;

}

.teacher-table {

    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;

}

.teacher-table th {

    padding: 13px 16px;

    background: #f8faf7;

    color: #8e978a;

    border-bottom: 1px solid #e1e7de;

    font-size: 7px;

    font-weight: 800;

    text-align: left;

}

.teacher-table td {

    padding: 13px 16px;

    border-bottom: 1px solid #edf0eb;

    color: #7d8679;

    font-size: 8px;

    vertical-align: middle;

}

.teacher-name-cell {

    display: flex;

    align-items: center;

    gap: 9px;

}

.teacher-avatar {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 8px;

    font-weight: 800;

}

.green-avatar {

    background: #e6efe3;

    color: #5e7657;

}

.yellow-avatar {

    background: #faf1cc;

    color: #9e8224;

}

.purple-avatar {

    background: #ece5f2;

    color: #735a91;

}

.dark-avatar {

    background: #e6ebe4;

    color: #53634f;

}

.teacher-name-cell strong {

    display: block;

    margin-bottom: 3px;

    color: #60695d;

    font-size: 8px;

}

.teacher-name-cell span {

    display: block;

    color: #a0a69e;

    font-size: 6px;

}

.subject-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 4px;

}

.subject-tags span {

    padding: 5px 7px;

    background: #eee8f4;

    color: #735a91;

    font-size: 7px;

    font-weight: 700;

}

.class-director {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    padding: 5px 7px;

    font-size: 7px;

    font-weight: 700;

}

.class-director.yes {

    background: #fbf3d2;

    color: #927a25;

}

.class-director.no {

    background: #f2f4f1;

    color: #9aa198;

}

.teacher-status {

    display: inline-block;

    padding: 5px 8px;

    font-size: 7px;

    font-weight: 800;

}

.teacher-status.active {

    background: #e9f2e6;

    color: #5f7a59;

}

.teacher-status.inactive {

    background: #f3eeee;

    color: #986e6e;

}

.teacher-actions {

    display: flex;

    align-items: center;

    gap: 5px;

}

.teacher-actions button {

    width: 28px;
    height: 28px;

    border: 1px solid #e0e6dd;

    background: #fff;

    color: #7c8778;

    cursor: pointer;

}

.teacher-actions button:hover {

    border-color: #a7b5a0;

    background: #f3f6f1;

    color: #596d53;

}


/* TABLE FOOTER */

.teacher-table-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 14px 18px;

    color: #9ba198;

    font-size: 7px;

}

.teacher-table-footer > div {

    display: flex;

    gap: 4px;

}

.teacher-table-footer button {

    min-width: 27px;
    height: 27px;

    border: 1px solid #e0e5dd;

    background: #fff;

    color: #7e887b;

    font-size: 7px;

    cursor: pointer;

}

.teacher-table-footer button.current-page {

    background: #735a91;

    border-color: #735a91;

    color: #fff;

}


/* SECURITY */

.teacher-security-box {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 18px;

    padding: 16px 18px;

    background: #f0f5ed;

    border-left: 4px solid #e7c548;

}

.teacher-security-icon {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #fff;

    color: #735a91;

}

.teacher-security-box strong {

    display: block;

    margin-bottom: 4px;

    color: #5f6e59;

    font-size: 9px;

}

.teacher-security-box p {

    margin: 0;

    color: #8c9589;

    font-size: 8px;

    line-height: 1.55;

}

.teacher-security-box > i {

    margin-left: auto;

    color: #8a9a84;

}


/* MODAL */

.teacher-modal-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    background: rgba(55,65,52,.55);

    opacity: 0;

    visibility: hidden;

    transition: .2s;

    z-index: 1000;

}

.teacher-modal-overlay.show {

    opacity: 1;

    visibility: visible;

}

.teacher-modal {

    width: 100%;

    max-width: 570px;

    max-height: 90vh;

    overflow-y: auto;

    background: #fff;

    box-shadow: 0 20px 60px rgba(40,50,38,.25);

}

.teacher-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 19px 22px;

    background: #52654d;

    color: #fff;

}

.teacher-modal-header span {

    display: block;

    margin-bottom: 4px;

    color: #d9e0d5;

    font-size: 7px;

    font-weight: 800;

}

.teacher-modal-header h2 {

    margin: 0;

    font-family: "Roboto Slab", serif;

    font-size: 17px;

}

.teacher-modal-header button {

    width: 32px;
    height: 32px;

    border: 1px solid rgba(255,255,255,.25);

    background: transparent;

    color: #fff;

    cursor: pointer;

}

.teacher-modal-body {

    padding: 22px;

}

.teacher-form-group {

    margin-bottom: 15px;

}

.teacher-form-group label {

    display: block;

    margin-bottom: 6px;

    color: #788273;

    font-size: 8px;

    font-weight: 800;

}

.teacher-form-group input,
.teacher-form-group select {

    width: 100%;

    height: 41px;

    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid #dce4d9;

    outline: none;

    color: #64705f;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

}

.teacher-form-group input:focus,
.teacher-form-group select:focus {

    border-color: #8fa389;

}

.teacher-form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}

.teacher-form-info {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding: 12px;

    background: #f4f7f1;

    color: #84907f;

    font-size: 7px;

    line-height: 1.5;

}

.teacher-form-info i {

    color: #735a91;

    margin-top: 2px;

}

.teacher-form-info strong {

    color: #64705f;

}

.teacher-modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 8px;

    padding: 15px 22px;

    border-top: 1px solid #e7ebe5;

    background: #fafbf9;

}

.modal-cancel,
.modal-save {

    height: 38px;

    padding: 0 15px;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

    font-weight: 800;

    cursor: pointer;

}

.modal-cancel {

    border: 1px solid #dce3da;

    background: #fff;

    color: #788276;

}

.modal-save {

    border: none;

    background: #735a91;

    color: #fff;

}

.modal-save:hover {

    background: #634d7c;

}


/* FOOTER */

.direction-footer {

    display: flex;

    justify-content: space-between;

    padding: 25px 0 5px;

    color: #a0a79e;

    font-size: 7px;

}


/* RESPONSIVO */

@media (max-width: 1100px) {

    .teacher-stat-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .teacher-filters {

        grid-template-columns:
            1fr 1fr;

    }

}

@media (max-width: 850px) {

    .direction-sidebar {

        transform: translateX(-100%);

    }

    .direction-main {

        margin-left: 0;

    }

    .direction-topbar {

        padding: 0 18px;

    }

    .direction-menu-button {

        display: flex;

        width: 35px;
        height: 35px;

        align-items: center;
        justify-content: center;

        border: 1px solid #dfe5dc;

        background: #fff;

        color: #667361;

    }

    .direction-search {

        display: none;

    }

}

@media (max-width: 650px) {

    .direction-content {

        padding: 18px;

    }

    .direction-page-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .teacher-stat-grid {

        grid-template-columns: 1fr;

    }

    .teacher-filters {

        grid-template-columns: 1fr;

    }

    .direction-profile-info {

        display: none;

    }

    .teacher-form-row {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   ATRIBUIÇÕES DOS PROFESSORES
   ========================================================= */

.teacher-breadcrumb {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 16px;

    color: #9ba398;

    font-size: 8px;

}

.teacher-breadcrumb a {

    color: #735a91;

    text-decoration: none;

    font-weight: 700;

}

.teacher-breadcrumb i {

    font-size: 6px;

}


/* CABEÇALHO */

.assignment-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

}

.assignment-heading > div > span {

    display: block;

    margin-bottom: 5px;

    color: #90998d;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .08em;

}

.assignment-heading h2 {

    margin: 0 0 6px;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 25px;

}

.assignment-heading p {

    margin: 0;

    color: #929b90;

    font-size: 9px;

}

.assignment-back {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 39px;

    padding: 0 13px;

    border: 1px solid #dce4d9;

    background: #fff;

    color: #687466;

    text-decoration: none;

    font-size: 8px;

    font-weight: 700;

}


/* PROFESSOR */

.selected-teacher-card {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px 20px;

    margin-bottom: 18px;

    background: #fff;

    border: 1px solid #dfe6dc;

    border-left: 4px solid #735a91;

}

.selected-teacher-avatar {

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #eee8f4;

    color: #735a91;

    font-size: 12px;

    font-weight: 800;

}

.selected-teacher-info {

    flex: 1;

}

.selected-teacher-info > span {

    display: block;

    margin-bottom: 3px;

    color: #9ca49a;

    font-size: 7px;

    font-weight: 800;

}

.selected-teacher-info h3 {

    margin: 0 0 3px;

    color: #5d6759;

    font-family: "Roboto Slab", serif;

    font-size: 16px;

}

.selected-teacher-info p {

    margin: 0;

    color: #9ba299;

    font-size: 7px;

}

.selected-teacher-status {

    align-self: flex-start;

}


/* GRID */

.assignment-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-bottom: 18px;

}


/* PAINÉIS */

.assignment-panel {

    background: #fff;

    border: 1px solid #dfe6dc;

    min-width: 0;

}

.assignment-panel-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 15px;

    padding: 19px 20px;

    border-bottom: 1px solid #e7ebe4;

}

.assignment-panel-header > div:first-child > span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 25px;
    height: 25px;

    margin-bottom: 9px;

    background: #e9f0e6;

    color: #60775a;

    font-size: 8px;

    font-weight: 800;

}

.assignment-panel-header h3 {

    margin: 0 0 5px;

    color: #5d6759;

    font-family: "Roboto Slab", serif;

    font-size: 16px;

}

.assignment-panel-header p {

    max-width: 360px;

    margin: 0;

    color: #969e94;

    font-size: 8px;

    line-height: 1.5;

}

.assignment-counter {

    white-space: nowrap;

    color: #a0a69e;

    font-size: 7px;

}

.assignment-counter strong {

    color: #735a91;

    font-family: "Roboto Slab", serif;

    font-size: 18px;

}


/* PESQUISA */

.assignment-search {

    position: relative;

    margin: 14px 16px;

}

.assignment-search i {

    position: absolute;

    top: 50%;
    left: 11px;

    transform: translateY(-50%);

    color: #9ca49a;

    font-size: 9px;

}

.assignment-search input {

    width: 100%;

    height: 37px;

    box-sizing: border-box;

    padding: 0 11px 0 30px;

    border: 1px solid #dfe5dc;

    outline: none;

    color: #687266;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

}

.assignment-search input:focus {

    border-color: #9aaa93;

}


/* DISCIPLINAS */

.subject-selection {

    max-height: 300px;

    overflow-y: auto;

    padding: 0 16px;

}

.assignment-check-item {

    display: flex;

    align-items: center;

    gap: 10px;

    min-height: 51px;

    padding: 0 8px;

    border-bottom: 1px solid #edf0eb;

    cursor: pointer;

}

.assignment-check-item:hover {

    background: #f8faf7;

}

.assignment-check-item input {

    position: absolute;

    opacity: 0;

}

.custom-checkbox {

    width: 19px;
    height: 19px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid #ccd5c9;

    background: #fff;

    color: #fff;

}

.assignment-check-item input:checked
+ .custom-checkbox {

    background: #735a91;

    border-color: #735a91;

}

.custom-checkbox i {

    display: none;

    font-size: 8px;

}

.assignment-check-item input:checked
+ .custom-checkbox i {

    display: block;

}

.assignment-check-text {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.assignment-check-text strong {

    color: #687266;

    font-size: 8px;

}

.assignment-check-text small {

    color: #a0a69e;

    font-size: 6px;

}


/* AÇÕES */

.selection-actions {

    display: flex;

    justify-content: space-between;

    padding: 11px 20px;

    background: #fafbf9;

    border-top: 1px solid #e7ebe4;

}

.selection-actions button {

    padding: 5px 0;

    border: none;

    background: transparent;

    color: #735a91;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    font-weight: 800;

    cursor: pointer;

}


/* FILTROS DE TURMA */

.class-filters {

    display: grid;

    grid-template-columns: 140px 1fr;

    gap: 8px;

    padding: 14px 16px 0;

}

.class-filters select {

    height: 37px;

    padding: 0 8px;

    border: 1px solid #dfe5dc;

    background: #fff;

    color: #727c6e;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    outline: none;

}

.class-filters .assignment-search {

    margin: 0;

}


/* TURMAS */

.class-selection {

    max-height: 300px;

    overflow-y: auto;

    padding: 10px 16px 0;

}

.class-selection-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    min-height: 56px;

    padding: 0 8px;

    border-bottom: 1px solid #edf0eb;

}

.class-selection-item > label {

    display: flex;

    align-items: center;

    gap: 9px;

    flex: 1;

    cursor: pointer;

}

.class-selection-item input {

    position: absolute;

    opacity: 0;

}

.class-selection-item input:checked
+ .custom-checkbox {

    background: #e7c548;

    border-color: #e7c548;

    color: #52654d;

}

.class-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.class-info strong {

    color: #687266;

    font-size: 9px;

}

.class-info small {

    color: #a0a69e;

    font-size: 6px;

}


/* DIRETOR DE TURMA */

.director-toggle {

    display: flex;

    align-items: center;

    gap: 5px;

    min-height: 29px;

    padding: 0 8px;

    border: 1px solid #e0e6dd;

    background: #fff;

    color: #9ba299;

    font-family: "Montserrat", sans-serif;

    font-size: 6px;

    font-weight: 700;

    cursor: pointer;

}

.director-toggle i {

    font-size: 8px;

}

.director-toggle.selected {

    border-color: #e7c548;

    background: #fbf4d6;

    color: #917925;

}


/* REGRA */

.director-rule-box {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 16px 18px;

    margin-bottom: 18px;

    background: #fffdf3;

    border: 1px solid #eee4b9;

    border-left: 4px solid #e7c548;

}

.director-rule-icon {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #fbf2ca;

    color: #a28727;

}

.director-rule-box > div:nth-child(2) {

    flex: 1;

}

.director-rule-box strong {

    display: block;

    margin-bottom: 4px;

    color: #6e6542;

    font-size: 9px;

}

.director-rule-box p {

    margin: 0;

    max-width: 650px;

    color: #99916f;

    font-size: 7px;

    line-height: 1.5;

}

.director-rule-status {

    min-width: 170px;

    padding-left: 18px;

    border-left: 1px solid #eee4c3;

}

.director-rule-status span {

    display: block;

    margin-bottom: 4px;

    color: #a69d78;

    font-size: 6px;

    font-weight: 800;

    text-transform: uppercase;

}

.director-rule-status strong {

    color: #735a91;

    font-size: 8px;

}


/* RESUMO */

.assignment-summary {

    margin-bottom: 18px;

    background: #fff;

    border: 1px solid #dfe6dc;

}

.summary-header {

    padding: 17px 20px;

    border-bottom: 1px solid #e7ebe4;

}

.summary-header span {

    display: block;

    margin-bottom: 4px;

    color: #9aa198;

    font-size: 7px;

    font-weight: 800;

}

.summary-header h3 {

    margin: 0;

    color: #60695d;

    font-family: "Roboto Slab", serif;

    font-size: 14px;

}

.summary-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

}

.summary-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 17px;

    border-right: 1px solid #e8ece6;

}

.summary-item:last-child {

    border-right: none;

}

.summary-icon {

    width: 37px;
    height: 37px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

}

.summary-icon.green {

    background: #e8f0e5;

    color: #5f7658;

}

.summary-icon.yellow {

    background: #fbf3d0;

    color: #9d8428;

}

.summary-icon.purple {

    background: #eee8f4;

    color: #735a91;

}

.summary-icon.dark {

    background: #e8ece6;

    color: #52654d;

}

.summary-item strong {

    display: block;

    margin-bottom: 4px;

    color: #687265;

    font-size: 8px;

}

.summary-item span {

    display: block;

    color: #a0a69e;

    font-size: 6px;

    line-height: 1.4;

}


/* GUARDAR */

.assignment-save-area {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 15px 18px;

    background: #52654d;

}

.assignment-save-area > div:first-child {

    display: flex;

    align-items: center;

    gap: 9px;

    color: #dbe2d7;

    font-size: 7px;

}

.assignment-save-area > div:first-child i {

    color: #e7c548;

    font-size: 12px;

}

.assignment-save-buttons {

    display: flex;

    align-items: center;

    gap: 8px;

}

.assignment-cancel {

    display: flex;

    align-items: center;

    height: 37px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.25);

    color: #e0e6dd;

    text-decoration: none;

    font-size: 7px;

    font-weight: 700;

}

.assignment-save {

    height: 37px;

    padding: 0 15px;

    border: none;

    background: #e7c548;

    color: #4e6049;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    font-weight: 800;

    cursor: pointer;

}

.assignment-save i {

    margin-right: 5px;

}


/* RESPONSIVO */

@media (max-width: 1000px) {

    .assignment-grid {

        grid-template-columns: 1fr;

    }

    .summary-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .summary-item:nth-child(2) {

        border-right: none;

    }

    .summary-item:nth-child(-n+2) {

        border-bottom: 1px solid #e8ece6;

    }

}

@media (max-width: 700px) {

    .assignment-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .director-rule-box {

        align-items: flex-start;

        flex-wrap: wrap;

    }

    .director-rule-status {

        width: 100%;

        padding: 10px 0 0;

        border-left: none;

        border-top: 1px solid #eee4c3;

    }

    .summary-grid {

        grid-template-columns: 1fr;

    }

    .summary-item {

        border-right: none;

        border-bottom: 1px solid #e8ece6;

    }

    .summary-item:last-child {

        border-bottom: none;

    }

    .assignment-save-area {

        align-items: flex-start;

        flex-direction: column;

    }

    .assignment-save-buttons {

        width: 100%;

        justify-content: flex-end;

    }

}

@media (max-width: 500px) {

    .selected-teacher-card {

        align-items: flex-start;

        flex-wrap: wrap;

    }

    .selected-teacher-status {

        width: 100%;

        margin-left: 66px;

    }

    .class-filters {

        grid-template-columns: 1fr;

    }

    .class-selection-item {

        align-items: flex-start;

        flex-direction: column;

        padding: 10px 8px;

    }

    .director-toggle {

        margin-left: 28px;

    }

}


/* =========================================================
   GESTÃO DE TURMAS
========================================================= */

.classes-page-heading {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 22px;

}

.classes-page-heading span {

    display: block;

    margin-bottom: 6px;

    color: #8f988c;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .08em;

}

.classes-page-heading h2 {

    margin: 0 0 6px;

    color: #596354;

    font-family: "Roboto Slab", serif;

    font-size: 27px;

}

.classes-page-heading p {

    margin: 0;

    color: #929a90;

    font-size: 9px;

}


.class-primary-button {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    height: 42px;

    padding: 0 16px;

    border: none;

    background: #735a91;

    color: #fff;

    font-family: "Montserrat", sans-serif;

    font-size: 8px;

    font-weight: 800;

    cursor: pointer;

    box-shadow: 0 5px 14px rgba(115,90,145,.16);

}

.class-primary-button:hover {

    background: #624c7b;

}



/* =========================================================
   ESTATÍSTICAS
========================================================= */

.class-stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 14px;

    margin-bottom: 18px;

}

.class-stat-card {

    display: flex;

    align-items: center;

    gap: 12px;

    min-height: 90px;

    padding: 15px;

    box-sizing: border-box;

    background: #fff;

    border: 1px solid #dfe6dc;

}

.class-stat-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

}

.class-stat-icon.green {

    background: #e6efe3;

    color: #5e7758;

}

.class-stat-icon.yellow {

    background: #fbf1c8;

    color: #9b8021;

}

.class-stat-icon.purple {

    background: #eee7f4;

    color: #735a91;

}

.class-stat-icon.dark {

    background: #e7ece4;

    color: #52664e;

}

.class-stat-card span {

    display: block;

    margin-bottom: 3px;

    color: #9ba399;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .05em;

}

.class-stat-card strong {

    display: block;

    margin-bottom: 2px;

    color: #5d6759;

    font-family: "Roboto Slab", serif;

    font-size: 20px;

}

.class-stat-card small {

    color: #a1a89f;

    font-size: 6px;

}



/* =========================================================
   FILTROS
========================================================= */

.class-filter-panel {

    padding: 15px 18px;

    margin-bottom: 18px;

    background: #fff;

    border: 1px solid #dfe6dc;

}

.class-filter-title {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: #60695c;

    font-size: 8px;

}

.class-filter-title i {

    color: #735a91;

}

.class-filter-controls {

    display: grid;

    grid-template-columns:
        160px
        160px
        1fr
        auto;

    align-items: end;

    gap: 10px;

}

.class-filter-field label {

    display: block;

    margin-bottom: 5px;

    color: #8e978a;

    font-size: 6px;

    font-weight: 800;

}

.class-filter-field select {

    width: 100%;

    height: 37px;

    padding: 0 9px;

    border: 1px solid #dfe5dc;

    outline: none;

    background: #fff;

    color: #70796d;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

}

.class-filter-search > div {

    position: relative;

}

.class-filter-search i {

    position: absolute;

    top: 50%;

    left: 11px;

    transform: translateY(-50%);

    color: #9ba399;

    font-size: 9px;

}

.class-filter-search input {

    width: 100%;

    height: 37px;

    box-sizing: border-box;

    padding: 0 10px 0 30px;

    border: 1px solid #dfe5dc;

    outline: none;

    color: #6d7669;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

}

.class-filter-search input:focus,
.class-filter-field select:focus {

    border-color: #a3b19c;

}

.class-clear-filter {

    height: 37px;

    padding: 0 12px;

    border: 1px solid #dfe5dc;

    background: #f9faf8;

    color: #70796d;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    font-weight: 700;

    cursor: pointer;

}



/* =========================================================
   LISTA
========================================================= */

.classes-list-panel {

    background: #fff;

    border: 1px solid #dfe6dc;

}

.classes-list-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 20px;

    border-bottom: 1px solid #e7ebe4;

}

.classes-list-header span {

    display: block;

    margin-bottom: 4px;

    color: #9aa299;

    font-size: 6px;

    font-weight: 800;

}

.classes-list-header h3 {

    margin: 0;

    color: #60695c;

    font-family: "Roboto Slab", serif;

    font-size: 15px;

}

.classes-view-buttons {

    display: flex;

    gap: 4px;

}

.class-view-button {

    width: 31px;

    height: 31px;

    border: 1px solid #dfe5dc;

    background: #fff;

    color: #9ba299;

    cursor: pointer;

}

.class-view-button.active {

    border-color: #735a91;

    background: #735a91;

    color: #fff;

}



/* =========================================================
   GRELHA
========================================================= */

.classes-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    padding: 18px;

}

.class-card {

    min-width: 0;

    background: #fff;

    border: 1px solid #e1e7de;

    transition:
        transform .18s ease,
        box-shadow .18s ease;

}

.class-card:hover {

    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(70,85,65,.08);

}

.class-card-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 11px 12px 0;

}

.class-level {

    display: inline-block;

    padding: 4px 7px;

    background: #eef3eb;

    color: #607357;

    font-size: 6px;

    font-weight: 800;

}

.class-more-button {

    width: 25px;

    height: 25px;

    border: none;

    background: transparent;

    color: #a2aaa0;

    cursor: pointer;

}

.class-card h3 {

    margin: 12px 12px 10px;

    color: #5d6759;

    font-family: "Roboto Slab", serif;

    font-size: 19px;

}

.class-card-info {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 12px 12px;

}

.class-card-info span {

    color: #929b90;

    font-size: 6px;

}

.class-card-info i {

    margin-right: 3px;

    color: #735a91;

}

.class-director {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 12px;

    background: #fafbf9;

    border-top: 1px solid #edf0eb;

}

.class-director-avatar {

    width: 29px;

    height: 29px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    background: #eee8f4;

    color: #735a91;

    font-size: 6px;

    font-weight: 800;

}

.class-director small {

    display: block;

    margin-bottom: 3px;

    color: #a2a99f;

    font-size: 5px;

    font-weight: 800;

}

.class-director strong {

    display: block;

    color: #687266;

    font-size: 7px;

}

.class-card-footer {

    padding: 9px 12px;

    border-top: 1px solid #edf0eb;

}

.class-card-footer button {

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    border: none;

    background: transparent;

    color: #735a91;

    font-family: "Montserrat", sans-serif;

    font-size: 6px;

    font-weight: 800;

    cursor: pointer;

}



/* =========================================================
   SEM RESULTADOS
========================================================= */

.classes-empty {

    display: none;

    padding: 55px 20px;

    text-align: center;

}

.classes-empty.show {

    display: block;

}

.classes-empty i {

    color: #b4beb0;

    font-size: 25px;

}

.classes-empty h3 {

    margin: 12px 0 5px;

    color: #697367;

    font-family: "Roboto Slab", serif;

    font-size: 14px;

}

.classes-empty p {

    margin: 0;

    color: #9da59b;

    font-size: 7px;

}



/* =========================================================
   INFORMAÇÃO
========================================================= */

.classes-information-box {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-top: 18px;

    padding: 15px 17px;

    background: #f9f7fc;

    border: 1px solid #e5dced;

}

.classes-information-icon {

    color: #735a91;

    font-size: 15px;

}

.classes-information-box strong {

    display: block;

    margin-bottom: 4px;

    color: #675478;

    font-size: 8px;

}

.classes-information-box p {

    max-width: 850px;

    margin: 0;

    color: #91869b;

    font-size: 7px;

    line-height: 1.5;

}



/* =========================================================
   MODAL
========================================================= */

.class-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background: rgba(40,48,38,.45);

}

.class-modal-overlay.show {

    display: flex;

}

.class-modal {

    width: min(520px, 100%);

    background: #fff;

    box-shadow:
        0 20px 50px rgba(0,0,0,.15);

}

.class-modal-header {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    padding: 20px;

    border-bottom: 1px solid #e7ebe4;

}

.class-modal-header span {

    display: block;

    margin-bottom: 5px;

    color: #9ba399;

    font-size: 6px;

    font-weight: 800;

}

.class-modal-header h3 {

    margin: 0;

    color: #5d6759;

    font-family: "Roboto Slab", serif;

    font-size: 17px;

}

.class-modal-header button {

    width: 30px;

    height: 30px;

    border: none;

    background: #f3f5f2;

    color: #7e887a;

    cursor: pointer;

}

.class-modal-body {

    padding: 20px;

}

.class-form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

}

.class-form-group {

    margin-bottom: 14px;

}

.class-form-group label {

    display: block;

    margin-bottom: 6px;

    color: #707a6c;

    font-size: 7px;

    font-weight: 800;

}

.class-form-group input,
.class-form-group select {

    width: 100%;

    height: 39px;

    box-sizing: border-box;

    padding: 0 10px;

    border: 1px solid #dce4d9;

    outline: none;

    background: #fff;

    color: #687266;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

}

.class-form-group input:focus,
.class-form-group select:focus {

    border-color: #9baa94;

}

.class-form-note {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding: 11px;

    background: #fbf8df;

    border: 1px solid #eee4b5;

    color: #887d4c;

    font-size: 6px;

    line-height: 1.5;

}

.class-modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 8px;

    padding: 14px 20px;

    background: #fafbf9;

    border-top: 1px solid #e7ebe4;

}

.class-modal-cancel {

    height: 37px;

    padding: 0 14px;

    border: 1px solid #dce4d9;

    background: #fff;

    color: #70796d;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    font-weight: 700;

    cursor: pointer;

}

.class-modal-save {

    height: 37px;

    padding: 0 15px;

    border: none;

    background: #735a91;

    color: #fff;

    font-family: "Montserrat", sans-serif;

    font-size: 7px;

    font-weight: 800;

    cursor: pointer;

}

.class-modal-save i {

    margin-right: 5px;

}



/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1150px) {

    .class-stat-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .classes-grid {

        grid-template-columns:
            repeat(3, 1fr);

    }

    .class-filter-controls {

        grid-template-columns:
            1fr 1fr;

    }

}

@media (max-width: 850px) {

    .classes-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}

@media (max-width: 650px) {

    .classes-page-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .class-stat-grid {

        grid-template-columns: 1fr;

    }

    .class-filter-controls {

        grid-template-columns: 1fr;

    }

    .classes-grid {

        grid-template-columns: 1fr;

    }

    .class-form-row {

        grid-template-columns: 1fr;

        gap: 0;

    }

}


/* =========================================================
   LICEU ERNESTO MUTHEMBA
   TEMA: VERDE ALFACE + AMARELO + ROXO + ROSA
   ========================================================= */

:root {
  --verde: #9BE33C;
  --verde-dark: #72B82C;
  --verde-light: #ECF9D8;

  --amarelo: #FFD43B;
  --amarelo-light: #FFF6C7;

  --roxo: #7C3AED;
  --roxo-dark: #5B21B6;
  --roxo-light: #EDE9FE;

  --rosa: #F472B6;
  --rosa-dark: #DB2777;
  --rosa-light: #FCE7F3;

  --branco: #FFFFFF;
  --fundo: #F8FAF5;
  --fundo-soft: #F4F6F1;

  --texto: #242424;
  --texto-soft: #6B7280;
  --borda: #E5E7EB;

  --perigo: #EF4444;

  --sidebar-width: 260px;

  --shadow-sm:
    0 2px 8px rgba(0, 0, 0, 0.05);

  --shadow:
    0 8px 24px rgba(0, 0, 0, 0.07);

  --radius: 16px;
  --radius-sm: 10px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--fundo);
  color: var(--texto);
  min-height: 100vh;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
  border: none;
}

a {
  text-decoration: none;
  color: inherit;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.direction-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;

  background:
    linear-gradient(
      180deg,
      var(--roxo) 0%,
      var(--roxo-dark) 100%
    );

  color: var(--branco);
  padding: 24px 16px;

  z-index: 1000;

  box-shadow:
    5px 0 25px rgba(124, 58, 237, 0.15);

  overflow-y: auto;
}


/* =========================================================
   MARCA
   ========================================================= */

.direction-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 8px 8px 24px;

  border-bottom:
    1px solid rgba(255, 255, 255, 0.15);
}

.direction-brand-icon {
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--verde);
  color: var(--roxo-dark);

  border-radius: 13px;

  font-size: 20px;

  box-shadow:
    0 5px 15px rgba(155, 227, 60, 0.3);
}

.direction-brand strong {
  display: block;

  font-size: 18px;
  font-weight: 800;

  letter-spacing: 1px;
}

.direction-brand span {
  display: block;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 1px;

  opacity: 0.75;

  margin-top: 2px;
}


/* =========================================================
   UTILIZADOR DA SIDEBAR
   ========================================================= */

.direction-user {
  display: flex;
  align-items: center;
  gap: 11px;

  margin: 22px 4px;

  padding: 12px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 13px;
}

.direction-user-avatar {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--amarelo);

  color: #4A3B00;

  font-size: 12px;
  font-weight: 800;
}

.direction-user strong {
  display: block;

  font-size: 12px;
}

.direction-user span {
  display: block;

  margin-top: 3px;

  font-size: 10px;

  opacity: 0.65;
}


/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

.direction-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.direction-nav-title {
  display: block;

  margin: 15px 10px 8px;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.4px;

  color: rgba(255, 255, 255, 0.55);
}

.direction-nav-space {
  margin-top: 24px;
}

.direction-nav-link {
  position: relative;

  display: flex;
  align-items: center;

  gap: 12px;

  padding: 12px 13px;

  border-radius: 11px;

  color: rgba(255, 255, 255, 0.75);

  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.direction-nav-link i {
  width: 19px;

  text-align: center;

  font-size: 15px;
}

.direction-nav-link:hover {
  background: rgba(155, 227, 60, 0.14);
  color: var(--branco);

  transform: translateX(3px);
}

.direction-nav-link.active {
  background: var(--verde);

  color: var(--roxo-dark);

  font-weight: 800;

  box-shadow:
    0 6px 15px rgba(155, 227, 60, 0.2);
}

.direction-nav-link.active i {
  color: var(--roxo-dark);
}

.direction-logout {
  margin-top: 15px;

  color: #FFD1E6;
}

.direction-logout:hover {
  background: rgba(244, 114, 182, 0.15);
  color: var(--rosa);
}


/* =========================================================
   MAIN
   ========================================================= */

.direction-main {
  margin-left: var(--sidebar-width);

  min-height: 100vh;

  background: var(--fundo);
}


/* =========================================================
   TOPBAR
   ========================================================= */

.direction-topbar {
  height: 78px;

  background: var(--branco);

  border-bottom: 1px solid var(--borda);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 32px;

  position: sticky;
  top: 0;

  z-index: 100;
}

.direction-topbar-left {
  display: flex;
  align-items: center;

  gap: 14px;
}

.direction-menu-button {
  display: none;

  width: 40px;
  height: 40px;

  border-radius: 10px;

  background: var(--verde-light);

  color: var(--roxo);
}

.direction-topbar-left > div:last-child > span {
  display: block;

  color: var(--roxo);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.direction-topbar h1 {
  margin-top: 3px;

  font-size: 23px;
  font-weight: 800;
}

.direction-topbar-right {
  display: flex;
  align-items: center;

  gap: 16px;
}


/* =========================================================
   PESQUISA
   ========================================================= */

.direction-search {
  width: 230px;

  height: 40px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 0 13px;

  border: 1px solid var(--borda);

  border-radius: 10px;

  background: var(--fundo);
}

.direction-search i {
  color: var(--texto-soft);

  font-size: 13px;
}

.direction-search input {
  width: 100%;

  border: none;
  outline: none;

  background: transparent;

  font-size: 11px;

  color: var(--texto);
}


/* =========================================================
   NOTIFICAÇÕES
   ========================================================= */

.direction-notification {
  position: relative;

  width: 40px;
  height: 40px;

  background: var(--amarelo-light);

  color: #8A6900;

  border-radius: 10px;

  font-size: 16px;
}

.direction-notification span {
  position: absolute;

  top: -4px;
  right: -4px;

  min-width: 17px;
  height: 17px;

  padding: 0 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--rosa);

  color: white;

  font-size: 8px;
  font-weight: 800;

  border: 2px solid white;
}


/* =========================================================
   PERFIL
   ========================================================= */

.direction-profile {
  display: flex;
  align-items: center;

  gap: 9px;
}

.direction-profile-avatar {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--rosa-light);

  color: var(--rosa-dark);

  font-size: 11px;
  font-weight: 800;
}

.direction-profile strong {
  display: block;

  font-size: 11px;
}

.direction-profile span {
  display: block;

  margin-top: 2px;

  font-size: 9px;

  color: var(--texto-soft);
}


/* =========================================================
   CONTEÚDO
   ========================================================= */

.direction-content {
  padding: 30px;
  max-width: 1600px;
  margin: auto;
}


/* =========================================================
   CABEÇALHO DA PÁGINA
   ========================================================= */

.classes-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 25px;
}

.classes-page-heading > div > span {
  display: block;

  color: var(--rosa-dark);

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 1.4px;

  margin-bottom: 5px;
}

.classes-page-heading h2 {
  font-family: "Roboto Slab", serif;

  font-size: 28px;
  line-height: 1.2;

  color: var(--roxo-dark);
}

.classes-page-heading p {
  margin-top: 7px;

  color: var(--texto-soft);

  font-size: 12px;
}


/* =========================================================
   BOTÃO PRINCIPAL
   ========================================================= */

.class-primary-button {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 12px 18px;

  background: var(--roxo);

  color: white;

  border-radius: 11px;

  font-size: 11px;
  font-weight: 800;

  box-shadow:
    0 7px 18px rgba(124, 58, 237, 0.22);

  transition: 0.2s ease;
}

.class-primary-button:hover {
  background: var(--roxo-dark);

  transform: translateY(-2px);

  box-shadow:
    0 10px 22px rgba(124, 58, 237, 0.3);
}

.class-primary-button i {
  color: var(--verde);
}


/* =========================================================
   ESTATÍSTICAS
   ========================================================= */

.class-stat-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 16px;

  margin-bottom: 22px;
}

.class-stat-card {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 18px;

  background: white;

  border: 1px solid var(--borda);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);

  transition: 0.2s ease;
}

.class-stat-card:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow);
}

.class-stat-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  font-size: 18px;
}

.class-stat-icon.green {
  background: var(--verde-light);
  color: var(--verde-dark);
}

.class-stat-icon.yellow {
  background: var(--amarelo-light);
  color: #B28B00;
}

.class-stat-icon.purple {
  background: var(--roxo-light);
  color: var(--roxo);
}

.class-stat-icon.dark {
  background: var(--rosa-light);
  color: var(--rosa-dark);
}

.class-stat-card span {
  display: block;

  color: var(--texto-soft);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 1px;
}

.class-stat-card strong {
  display: block;

  margin-top: 3px;

  color: var(--texto);

  font-size: 23px;
  line-height: 1;
}

.class-stat-card small {
  display: block;

  margin-top: 5px;

  color: #9CA3AF;

  font-size: 9px;
}


/* =========================================================
   FILTROS
   ========================================================= */

.class-filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 20px;

  margin-bottom: 22px;

  background: white;

  border: 1px solid var(--borda);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.class-filter-title {
  display: flex;
  align-items: center;

  gap: 9px;

  white-space: nowrap;
}

.class-filter-title i {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--amarelo-light);

  color: #A47D00;

  border-radius: 9px;

  font-size: 13px;
}

.class-filter-title strong {
  font-size: 11px;
}

.class-filter-controls {
  flex: 1;

  display: flex;
  align-items: flex-end;

  justify-content: flex-end;

  gap: 12px;
}

.class-filter-field {
  min-width: 145px;
}

.class-filter-field label {
  display: block;

  margin-bottom: 5px;

  color: var(--texto-soft);

  font-size: 9px;
  font-weight: 700;
}

.class-filter-field select,
.class-filter-field input {
  width: 100%;

  height: 38px;

  padding: 0 11px;

  background: var(--fundo);

  border: 1px solid var(--borda);

  border-radius: 9px;

  outline: none;

  color: var(--texto);

  font-size: 10px;
}

.class-filter-field select:focus,
.class-filter-field input:focus {
  border-color: var(--roxo);

  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.08);
}

.class-filter-search {
  min-width: 190px;
}

.class-filter-search > div {
  position: relative;
}

.class-filter-search i {
  position: absolute;

  left: 11px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--texto-soft);

  font-size: 11px;
}

.class-filter-search input {
  padding-left: 31px;
}

.class-clear-filter {
  height: 38px;

  padding: 0 13px;

  border-radius: 9px;

  background: var(--rosa-light);

  color: var(--rosa-dark);

  font-size: 10px;
  font-weight: 700;

  transition: 0.2s ease;
}

.class-clear-filter:hover {
  background: var(--rosa);
  color: white;
}


/* =========================================================
   LISTA DE TURMAS
   ========================================================= */

.classes-list-panel {
  padding: 22px;

  background: white;

  border: 1px solid var(--borda);

  border-radius: var(--radius);

  box-shadow: var(--shadow-sm);
}

.classes-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 20px;
}

.classes-list-header span {
  display: block;

  color: var(--verde-dark);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.classes-list-header h3 {
  margin-top: 4px;

  font-size: 16px;

  color: var(--roxo-dark);
}


/* =========================================================
   BOTÕES DE VISUALIZAÇÃO
   ========================================================= */

.classes-view-buttons {
  display: flex;

  gap: 5px;

  padding: 4px;

  background: var(--fundo);

  border-radius: 10px;
}

.class-view-button {
  width: 35px;
  height: 32px;

  border-radius: 7px;

  background: transparent;

  color: var(--texto-soft);

  font-size: 12px;
}

.class-view-button.active {
  background: var(--roxo);

  color: white;

  box-shadow:
    0 3px 8px rgba(124, 58, 237, 0.2);
}


/* =========================================================
   GRID
   ========================================================= */

.classes-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 15px;
}


/* =========================================================
   CARD DA TURMA
   ========================================================= */

.class-card {
  position: relative;

  padding: 17px;

  border: 1px solid var(--borda);

  border-radius: 15px;

  background: white;

  overflow: hidden;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.class-card::before {
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(
    90deg,
    var(--verde),
    var(--amarelo),
    var(--rosa),
    var(--roxo)
  );
}

.class-card:hover {
  transform: translateY(-4px);

  border-color: rgba(124, 58, 237, 0.25);

  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.08);
}

.class-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 9px;
}

.class-level {
  display: inline-flex;

  padding: 5px 8px;

  background: var(--verde-light);

  color: var(--verde-dark);

  border-radius: 6px;

  font-size: 8px;
  font-weight: 800;
}

.class-card:nth-child(4n + 2) .class-level {
  background: var(--amarelo-light);
  color: #9A7600;
}

.class-card:nth-child(4n + 3) .class-level {
  background: var(--roxo-light);
  color: var(--roxo-dark);
}

.class-card:nth-child(4n + 4) .class-level {
  background: var(--rosa-light);
  color: var(--rosa-dark);
}

.class-more-button {
  width: 28px;
  height: 28px;

  border-radius: 7px;

  background: transparent;

  color: #9CA3AF;

  transition: 0.2s ease;
}

.class-more-button:hover {
  background: var(--roxo-light);

  color: var(--roxo);
}

.class-card h3 {
  font-size: 21px;

  color: var(--texto);

  margin-bottom: 12px;
}

.class-card-info {
  display: flex;
  flex-direction: column;

  gap: 6px;

  padding-bottom: 14px;

  border-bottom: 1px solid var(--borda);
}

.class-card-info span {
  display: flex;
  align-items: center;

  gap: 7px;

  color: var(--texto-soft);

  font-size: 9px;
}

.class-card-info i {
  width: 15px;

  color: var(--roxo);
}

.class-card-info span:nth-child(2) i {
  color: var(--rosa);
}


/* =========================================================
   DIRETOR DA TURMA
   ========================================================= */

.class-director {
  display: flex;
  align-items: center;

  gap: 9px;

  padding: 13px 0;
}

.class-director-avatar {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--amarelo-light);

  color: #8D6B00;

  font-size: 9px;
  font-weight: 800;
}

.class-card:nth-child(3n) .class-director-avatar {
  background: var(--rosa-light);

  color: var(--rosa-dark);
}

.class-card:nth-child(4n) .class-director-avatar {
  background: var(--roxo-light);

  color: var(--roxo);
}

.class-director small {
  display: block;

  color: #9CA3AF;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.5px;
}

.class-director strong {
  display: block;

  margin-top: 2px;

  font-size: 9px;
}


/* =========================================================
   RODAPÉ DO CARD
   ========================================================= */

.class-card-footer {
  padding-top: 11px;

  border-top: 1px solid var(--borda);
}

.class-card-footer button {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 0;

  background: transparent;

  color: var(--roxo);

  font-size: 9px;
  font-weight: 800;

  transition: 0.2s ease;
}

.class-card-footer button:hover {
  color: var(--rosa-dark);
}

.class-card-footer button i {
  transition: 0.2s ease;
}

.class-card-footer button:hover i {
  transform: translateX(4px);
}


/* =========================================================
   ESTADO VAZIO
   ========================================================= */

.classes-empty {
  display: none;

  padding: 55px 20px;

  text-align: center;

  color: var(--texto-soft);
}

.classes-empty.show {
  display: block;
}

.classes-empty i {
  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: auto;

  background: var(--rosa-light);

  color: var(--rosa);

  border-radius: 50%;

  font-size: 19px;
}

.classes-empty h3 {
  margin-top: 15px;

  color: var(--texto);

  font-size: 15px;
}

.classes-empty p {
  margin-top: 5px;

  font-size: 10px;
}


/* =========================================================
   CAIXA DE INFORMAÇÃO
   ========================================================= */

.classes-information-box {
  display: flex;
  align-items: flex-start;

  gap: 13px;

  margin-top: 20px;

  padding: 17px;

  background:
    linear-gradient(
      90deg,
      var(--verde-light),
      #FFFCEB
    );

  border: 1px solid rgba(155, 227, 60, 0.45);

  border-radius: var(--radius);
}

.classes-information-icon {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--verde);

  color: var(--roxo-dark);

  border-radius: 10px;
}

.classes-information-box strong {
  display: block;

  font-size: 11px;

  color: var(--roxo-dark);
}

.classes-information-box p {
  margin-top: 4px;

  color: var(--texto-soft);

  font-size: 9px;

  line-height: 1.6;
}


/* =========================================================
   FOOTER
   ========================================================= */

.direction-footer {
  display: flex;
  justify-content: space-between;

  padding: 25px 3px 5px;

  color: #9CA3AF;

  font-size: 9px;
}


/* =========================================================
   MODAL
   ========================================================= */

.class-modal-overlay {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(35, 20, 60, 0.55);

  backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;

  transition: 0.25s ease;
}

.class-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.class-modal {
  width: 100%;
  max-width: 500px;

  background: white;

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.2);

  transform: translateY(20px) scale(0.97);

  transition: 0.25s ease;
}

.class-modal-overlay.show .class-modal {
  transform: translateY(0) scale(1);
}


/* =========================================================
   CABEÇALHO DO MODAL
   ========================================================= */

.class-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 22px 24px;

  background:
    linear-gradient(
      135deg,
      var(--roxo),
      var(--roxo-dark)
    );

  color: white;
}

.class-modal-header span {
  display: block;

  color: var(--verde);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 1.2px;
}

.class-modal-header h3 {
  margin-top: 4px;

  font-size: 19px;
}

.class-modal-header button {
  width: 34px;
  height: 34px;

  border-radius: 9px;

  background: rgba(255, 255, 255, 0.12);

  color: white;

  transition: 0.2s ease;
}

.class-modal-header button:hover {
  background: var(--rosa);
}


/* =========================================================
   CORPO DO MODAL
   ========================================================= */

.class-modal-body {
  padding: 24px;
}

.class-form-row {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;
}

.class-form-group {
  margin-bottom: 17px;
}

.class-form-group label {
  display: block;

  margin-bottom: 6px;

  color: var(--texto);

  font-size: 10px;
  font-weight: 700;
}

.class-form-group input,
.class-form-group select {
  width: 100%;

  height: 42px;

  padding: 0 12px;

  border: 1px solid var(--borda);

  border-radius: 9px;

  background: var(--fundo);

  outline: none;

  font-size: 11px;

  color: var(--texto);

  transition: 0.2s ease;
}

.class-form-group input:focus,
.class-form-group select:focus {
  border-color: var(--roxo);

  background: white;

  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.08);
}

.class-form-note {
  display: flex;
  align-items: flex-start;

  gap: 9px;

  padding: 12px;

  background: var(--amarelo-light);

  border-radius: 10px;

  color: #735B00;

  font-size: 9px;

  line-height: 1.5;
}

.class-form-note i {
  margin-top: 2px;

  color: #B28B00;
}


/* =========================================================
   RODAPÉ DO MODAL
   ========================================================= */

.class-modal-footer {
  display: flex;
  justify-content: flex-end;

  gap: 9px;

  padding: 16px 24px;

  border-top: 1px solid var(--borda);

  background: #FCFCFC;
}

.class-modal-cancel,
.class-modal-save {
  height: 38px;

  padding: 0 16px;

  border-radius: 9px;

  font-size: 10px;
  font-weight: 800;
}

.class-modal-cancel {
  background: var(--rosa-light);

  color: var(--rosa-dark);
}

.class-modal-cancel:hover {
  background: var(--rosa);

  color: white;
}

.class-modal-save {
  display: flex;
  align-items: center;

  gap: 7px;

  background: var(--roxo);

  color: white;

  box-shadow:
    0 5px 12px rgba(124, 58, 237, 0.2);
}

.class-modal-save:hover {
  background: var(--roxo-dark);
}

.class-modal-save i {
  color: var(--verde);
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 7px;
}

::-webkit-scrollbar-track {
  background: var(--fundo);
}

::-webkit-scrollbar-thumb {
  background: var(--roxo);

  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rosa-dark);
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1200px) {

  .classes-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .class-stat-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .class-filter-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .class-filter-controls {
    width: 100%;
  }
}


@media (max-width: 900px) {

  :root {
    --sidebar-width: 220px;
  }

  .direction-content {
    padding: 22px;
  }

  .direction-search {
    width: 170px;
  }

  .classes-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .direction-profile > div:last-child {
    display: none;
  }
}


@media (max-width: 700px) {

  .direction-sidebar {
    width: 0;

    padding: 0;

    overflow: hidden;

    transform: translateX(-100%);

    transition: 0.3s ease;
  }

  .direction-main {
    margin-left: 0;
  }

  .direction-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .direction-topbar {
    padding: 0 18px;
  }

  .direction-topbar-right {
    gap: 7px;
  }

  .direction-search {
    display: none;
  }

  .direction-content {
    padding: 18px;
  }

  .classes-page-heading {
    align-items: flex-start;

    flex-direction: column;
  }

  .class-primary-button {
    width: 100%;

    justify-content: center;
  }

  .class-stat-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .class-filter-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .class-filter-field,
  .class-filter-search {
    width: 100%;
    min-width: 0;
  }

  .class-clear-filter {
    width: 100%;
  }
}


@media (max-width: 520px) {

  .direction-topbar {
    height: 68px;
  }

  .direction-topbar h1 {
    font-size: 18px;
  }

  .classes-page-heading h2 {
    font-size: 23px;
  }

  .class-stat-grid {
    grid-template-columns: 1fr;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .classes-list-panel {
    padding: 15px;
  }

  .classes-list-header {
    align-items: flex-start;
    gap: 10px;
  }

  .class-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .class-modal-body {
    padding: 18px;
  }

  .class-modal-footer {
    padding: 14px 18px;
  }

  .class-modal-footer button {
    flex: 1;
  }

  .direction-footer {
    flex-direction: column;
    gap: 5px;
  }
}


/* =========================================================
   ANIMAÇÕES
   ========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.class-card {
  animation: fadeUp 0.35s ease both;
}

.class-stat-card {
  animation: fadeUp 0.3s ease both;
}

.class-stat-card:nth-child(1) {
  animation-delay: 0.05s;
}

.class-stat-card:nth-child(2) {
  animation-delay: 0.1s;
}

.class-stat-card:nth-child(3) {
  animation-delay: 0.15s;
}

.class-stat-card:nth-child(4) {
  animation-delay: 0.2s;
}

/* =========================================================
   LICEU ERNESTO MUTHEMBA
   PORTAL ACADÉMICO — ESTILO.CSS
   Página: Gestão de Turmas
   ========================================================= */


/* =========================================================
   1. RESET / BASE
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #176b3a;
    --primary-dark: #0d4d29;
    --primary-light: #e9f6ee;

    --yellow: #f4c430;
    --yellow-light: #fff8df;

    --pink: #d94f87;
    --pink-light: #fff0f6;

    --purple: #7357c8;
    --purple-light: #f1edff;

    --dark: #17221c;
    --text: #27332c;
    --text-light: #68736c;

    --white: #ffffff;
    --background: #f5f7f6;
    --border: #e2e7e4;

    --danger: #d94a4a;
    --danger-light: #fff0f0;

    --shadow-sm: 0 2px 8px rgba(20, 45, 30, 0.06);
    --shadow: 0 8px 25px rgba(20, 45, 30, 0.08);
    --shadow-lg: 0 18px 45px rgba(20, 45, 30, 0.15);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --sidebar-width: 270px;
    --topbar-height: 78px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

button,
input,
select {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   2. SIDEBAR
   ========================================================= */

.direction-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;

    background: var(--white);
    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    z-index: 1000;

    overflow-y: auto;
    overflow-x: hidden;
}

.direction-sidebar::-webkit-scrollbar {
    width: 5px;
}

.direction-sidebar::-webkit-scrollbar-thumb {
    background: #d3dad5;
    border-radius: 10px;
}


/* =========================================================
   3. MARCA DO LICEU
   ========================================================= */

.direction-brand {
    min-height: 88px;
    padding: 20px 22px;

    display: flex;
    align-items: center;
    gap: 13px;

    border-bottom: 1px solid var(--border);
}

.direction-brand-icon {
    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;

    box-shadow: 0 5px 15px rgba(23, 107, 58, 0.22);
}

.direction-brand strong {
    display: block;

    font-family: "Roboto Slab", serif;
    font-size: 17px;
    font-weight: 700;

    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.direction-brand span {
    display: block;

    margin-top: 2px;

    color: var(--text-light);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.1px;
}


/* =========================================================
   4. UTILIZADOR DA SIDEBAR
   ========================================================= */

.direction-user {
    margin: 20px 16px;

    padding: 13px;

    background: #f7f9f8;

    border: 1px solid var(--border);
    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 11px;
}

.direction-user-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--primary);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 800;
}

.direction-user strong {
    display: block;

    font-size: 12px;
    font-weight: 700;

    color: var(--dark);
}

.direction-user span {
    display: block;

    margin-top: 2px;

    font-size: 10px;
    color: var(--text-light);
}


/* =========================================================
   5. NAVEGAÇÃO
   ========================================================= */

.direction-nav {
    padding: 0 13px 20px;
}

.direction-nav-title {
    display: block;

    padding: 12px 11px 7px;

    font-size: 9px;
    font-weight: 800;

    color: #9aa49e;

    letter-spacing: 1.3px;
}

.direction-nav-space {
    margin-top: 12px;
}

.direction-nav-link {
    position: relative;

    min-height: 45px;

    padding: 0 13px;
    margin: 3px 0;

    border-radius: 10px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #59645d;

    font-size: 12px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.direction-nav-link i {
    width: 20px;

    text-align: center;

    font-size: 15px;
}

.direction-nav-link:hover {
    background: var(--primary-light);
    color: var(--primary);

    transform: translateX(2px);
}

.direction-nav-link.active {
    background: var(--primary);
    color: white;

    box-shadow: 0 6px 15px rgba(23, 107, 58, 0.17);
}

.direction-nav-link.active:hover {
    background: var(--primary-dark);
    color: white;
}

.direction-nav-link.direction-logout {
    margin-top: 18px;

    color: var(--danger);
}

.direction-nav-link.direction-logout:hover {
    background: var(--danger-light);
    color: var(--danger);
}


/* =========================================================
   6. ÁREA PRINCIPAL
   ========================================================= */

.direction-main {
    margin-left: var(--sidebar-width);

    min-height: 100vh;

    width: calc(100% - var(--sidebar-width));
}


/* =========================================================
   7. TOPBAR
   ========================================================= */

.direction-topbar {
    height: var(--topbar-height);

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--border);

    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: sticky;
    top: 0;

    z-index: 900;

    backdrop-filter: blur(12px);
}

.direction-topbar-left,
.direction-topbar-right {
    display: flex;
    align-items: center;
}

.direction-topbar-left {
    gap: 15px;
}

.direction-topbar-left > div:last-child > span {
    display: block;

    color: var(--primary);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1.2px;
}

.direction-topbar-left h1 {
    margin-top: 2px;

    color: var(--dark);

    font-family: "Roboto Slab", serif;
    font-size: 22px;
    font-weight: 700;
}

.direction-menu-button {
    width: 40px;
    height: 40px;

    display: none;

    border-radius: 10px;

    background: #f4f7f5;
    color: var(--primary);

    font-size: 16px;
}

.direction-topbar-right {
    gap: 15px;
}


/* =========================================================
   8. PESQUISA DO TOPO
   ========================================================= */

.direction-search {
    width: 235px;
    height: 40px;

    padding: 0 13px;

    display: flex;
    align-items: center;
    gap: 9px;

    background: #f6f8f7;

    border: 1px solid transparent;
    border-radius: 9px;

    transition: 0.2s ease;
}

.direction-search:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 107, 58, 0.08);
}

.direction-search i {
    color: #8a948e;
    font-size: 13px;
}

.direction-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    color: var(--text);

    font-size: 11px;
}

.direction-search input::placeholder {
    color: #9ba39e;
}


/* =========================================================
   9. NOTIFICAÇÕES
   ========================================================= */

.direction-notification {
    position: relative;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: #f6f8f7;
    color: #59645d;

    font-size: 16px;

    transition: 0.2s ease;
}

.direction-notification:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.direction-notification span {
    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border-radius: 20px;

    background: var(--pink);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 8px;
    font-weight: 800;

    border: 2px solid white;
}


/* =========================================================
   10. PERFIL DO TOPO
   ========================================================= */

.direction-profile {
    display: flex;
    align-items: center;
    gap: 10px;

    padding-left: 14px;

    border-left: 1px solid var(--border);
}

.direction-profile-avatar {
    width: 37px;
    height: 37px;

    border-radius: 50%;

    background: var(--primary-light);
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 800;
}

.direction-profile strong {
    display: block;

    color: var(--dark);

    font-size: 11px;
    font-weight: 700;
}

.direction-profile span {
    display: block;

    color: var(--text-light);

    font-size: 9px;
}


/* =========================================================
   11. CONTEÚDO
   ========================================================= */

.direction-content {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    padding: 32px;
}


/* =========================================================
   12. CABEÇALHO DA PÁGINA
   ========================================================= */

.classes-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 26px;
}

.classes-page-heading > div > span {
    display: block;

    margin-bottom: 5px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.3px;
}

.classes-page-heading h2 {
    color: var(--dark);

    font-family: "Roboto Slab", serif;

    font-size: 27px;
    line-height: 1.2;
}

.classes-page-heading p {
    max-width: 650px;

    margin-top: 7px;

    color: var(--text-light);

    font-size: 11px;
}


/* =========================================================
   13. BOTÃO PRINCIPAL
   ========================================================= */

.class-primary-button {
    min-height: 43px;

    padding: 0 18px;

    border-radius: 10px;

    background: var(--primary);
    color: white;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-size: 11px;
    font-weight: 700;

    box-shadow: 0 6px 15px rgba(23, 107, 58, 0.18);

    transition: 0.2s ease;
}

.class-primary-button:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(23, 107, 58, 0.23);
}

.class-primary-button:active {
    transform: translateY(0);
}

.class-primary-button i {
    font-size: 12px;
}


/* =========================================================
   14. GRID DE INDICADORES
   ========================================================= */

.class-stat-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin-bottom: 22px;
}

.class-stat-card {
    min-height: 110px;

    padding: 19px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    display: flex;
    align-items: center;
    gap: 15px;

    box-shadow: var(--shadow-sm);

    transition: 0.25s ease;
}

.class-stat-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow);

    border-color: #d4ddd7;
}


/* =========================================================
   15. ÍCONES DOS INDICADORES
   ========================================================= */

.class-stat-icon {
    width: 49px;
    height: 49px;

    flex-shrink: 0;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.class-stat-icon.green {
    background: var(--primary-light);
    color: var(--primary);
}

.class-stat-icon.yellow {
    background: var(--yellow-light);
    color: #c49300;
}

.class-stat-icon.purple {
    background: var(--purple-light);
    color: var(--purple);
}

.class-stat-icon.dark {
    background: #edf0ef;
    color: #39453e;
}

.class-stat-card span {
    display: block;

    margin-bottom: 2px;

    color: #89938d;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.8px;
}

.class-stat-card strong {
    display: block;

    color: var(--dark);

    font-family: "Roboto Slab", serif;

    font-size: 25px;
    line-height: 1.1;
}

.class-stat-card small {
    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: 9px;
}


/* =========================================================
   16. PAINEL DE FILTROS
   ========================================================= */

.class-filter-panel {
    margin-bottom: 22px;

    padding: 19px 20px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}

.class-filter-title {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 15px;

    color: var(--dark);
}

.class-filter-title i {
    color: var(--primary);
    font-size: 13px;
}

.class-filter-title strong {
    font-size: 12px;
}


/* =========================================================
   17. CONTROLOS DOS FILTROS
   ========================================================= */

.class-filter-controls {
    display: grid;

    grid-template-columns: 1fr 1fr 1.5fr auto;

    align-items: end;

    gap: 13px;
}

.class-filter-field label {
    display: block;

    margin-bottom: 6px;

    color: #69746d;

    font-size: 9px;
    font-weight: 700;
}

.class-filter-field select,
.class-filter-field input {
    width: 100%;
    height: 40px;

    padding: 0 11px;

    outline: none;

    background: #fafbfa;

    border: 1px solid #dce2de;
    border-radius: 8px;

    color: var(--text);

    font-size: 10px;

    transition: 0.2s ease;
}

.class-filter-field select:focus,
.class-filter-field input:focus {
    background: white;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(23, 107, 58, 0.07);
}

.class-filter-search > div {
    position: relative;
}

.class-filter-search > div i {
    position: absolute;

    left: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: #9aa49e;

    font-size: 12px;
}

.class-filter-search input {
    padding-left: 34px;
}

.class-clear-filter {
    height: 40px;

    padding: 0 15px;

    border: 1px solid #dce2de;
    border-radius: 8px;

    background: white;

    color: #69746d;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: 10px;
    font-weight: 700;

    transition: 0.2s ease;
}

.class-clear-filter:hover {
    background: #f4f7f5;
    color: var(--primary);

    border-color: #c9d6ce;
}


/* =========================================================
   18. PAINEL DAS TURMAS
   ========================================================= */

.classes-list-panel {
    padding: 21px;

    background: white;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);
}

.classes-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.classes-list-header span {
    display: block;

    margin-bottom: 3px;

    color: var(--primary);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.classes-list-header h3 {
    color: var(--dark);

    font-family: "Roboto Slab", serif;

    font-size: 17px;
}


/* =========================================================
   19. BOTÕES DE VISUALIZAÇÃO
   ========================================================= */

.classes-view-buttons {
    display: flex;

    gap: 4px;

    padding: 4px;

    background: #f3f6f4;

    border-radius: 9px;
}

.class-view-button {
    width: 34px;
    height: 31px;

    border-radius: 6px;

    background: transparent;
    color: #8a948e;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.class-view-button:hover {
    color: var(--primary);
}

.class-view-button.active {
    background: white;
    color: var(--primary);

    box-shadow: 0 2px 7px rgba(20, 45, 30, 0.08);
}


/* =========================================================
   20. GRID DAS TURMAS
   ========================================================= */

.classes-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}


/* =========================================================
   21. CARD DA TURMA
   ========================================================= */

.class-card {
    position: relative;

    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 1px solid #e1e7e3;
    border-radius: 14px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.class-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--primary);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.25s ease;
}

.class-card:hover {
    transform: translateY(-4px);

    border-color: #cbd9d0;

    box-shadow: var(--shadow);
}

.class-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   22. TOPO DO CARD
   ========================================================= */

.class-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 10px;
}

.class-level {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 0 9px;

    background: var(--primary-light);
    color: var(--primary);

    border-radius: 20px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.class-more-button {
    width: 28px;
    height: 28px;

    border-radius: 7px;

    background: transparent;
    color: #929c96;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.class-more-button:hover {
    background: #f0f4f1;
    color: var(--primary);
}


/* =========================================================
   23. NOME DA TURMA
   ========================================================= */

.class-card h3 {
    margin-bottom: 11px;

    color: var(--dark);

    font-family: "Roboto Slab", serif;

    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   24. INFORMAÇÕES DA TURMA
   ========================================================= */

.class-card-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    padding-bottom: 14px;

    border-bottom: 1px solid #edf0ee;
}

.class-card-info span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #68736c;

    font-size: 9px;
    font-weight: 600;
}

.class-card-info i {
    color: var(--primary);

    font-size: 10px;
}


/* =========================================================
   25. DIRETOR DE TURMA
   ========================================================= */

.class-director {
    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.class-director-avatar {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #edf5ef;
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 9px;
    font-weight: 800;
}

.class-director small {
    display: block;

    color: #99a29c;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.7px;
}

.class-director strong {
    display: block;

    margin-top: 2px;

    color: #39453e;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================================
   26. RODAPÉ DO CARD
   ========================================================= */

.class-card-footer {
    padding-top: 11px;

    border-top: 1px solid #edf0ee;
}

.class-card-footer button {
    width: 100%;
    height: 34px;

    border-radius: 8px;

    background: #f5f8f6;

    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    font-size: 9px;
    font-weight: 700;

    transition: 0.2s ease;
}

.class-card-footer button:hover {
    background: var(--primary);
    color: white;
}

.class-card-footer button i {
    font-size: 9px;

    transition: transform 0.2s ease;
}

.class-card-footer button:hover i {
    transform: translateX(3px);
}


/* =========================================================
   27. ESTADO VAZIO
   ========================================================= */

.classes-empty {
    display: none;

    padding: 60px 20px;

    text-align: center;
}

.classes-empty.show {
    display: block;
}

.classes-empty i {
    width: 55px;
    height: 55px;

    margin-bottom: 14px;

    border-radius: 50%;

    background: #f1f4f2;
    color: #9aa49e;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}

.classes-empty h3 {
    color: var(--dark);

    font-size: 15px;
}

.classes-empty p {
    margin-top: 5px;

    color: var(--text-light);

    font-size: 10px;
}


/* =========================================================
   28. CAIXA DE INFORMAÇÃO
   ========================================================= */

.classes-information-box {
    margin-top: 20px;

    padding: 17px 19px;

    background: #f0f8f3;

    border: 1px solid #d8eadf;

    border-radius: 13px;

    display: flex;
    align-items: flex-start;

    gap: 12px;
}

.classes-information-icon {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 9px;

    background: white;
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.classes-information-box strong {
    display: block;

    color: var(--primary-dark);

    font-size: 11px;
}

.classes-information-box p {
    margin-top: 3px;

    color: #5d6d63;

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================================
   29. FOOTER
   ========================================================= */

.direction-footer {
    margin-top: 30px;
    padding: 20px 2px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: space-between;

    color: #89938d;

    font-size: 9px;
}


/* =========================================================
   30. MODAL
   ========================================================= */

.class-modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 2000;

    padding: 25px;

    background: rgba(12, 25, 18, 0.48);

    display: none;
    align-items: center;
    justify-content: center;

    backdrop-filter: blur(4px);
}

.class-modal-overlay.show {
    display: flex;

    animation: modalOverlay 0.2s ease;
}

.class-modal {
    width: min(520px, 100%);

    max-height: calc(100vh - 50px);

    overflow-y: auto;

    background: white;

    border-radius: 18px;

    box-shadow: var(--shadow-lg);

    animation: modalOpen 0.25s ease;
}

@keyframes modalOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =========================================================
   31. CABEÇALHO DO MODAL
   ========================================================= */

.class-modal-header {
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.class-modal-header span {
    display: block;

    margin-bottom: 3px;

    color: var(--primary);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}

.class-modal-header h3 {
    color: var(--dark);

    font-family: "Roboto Slab", serif;

    font-size: 18px;
}

.class-modal-header button {
    width: 34px;
    height: 34px;

    border-radius: 8px;

    background: #f3f5f4;
    color: #758079;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.2s ease;
}

.class-modal-header button:hover {
    background: var(--danger-light);
    color: var(--danger);
}


/* =========================================================
   32. CORPO DO MODAL
   ========================================================= */

.class-modal-body {
    padding: 22px;
}

.class-form-group {
    margin-bottom: 17px;
}

.class-form-group label {
    display: block;

    margin-bottom: 6px;

    color: #556159;

    font-size: 10px;
    font-weight: 700;
}

.class-form-group input,
.class-form-group select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    outline: none;

    background: #fafbfa;

    border: 1px solid #dce3de;
    border-radius: 8px;

    color: var(--text);

    font-size: 10px;

    transition: 0.2s ease;
}

.class-form-group input:focus,
.class-form-group select:focus {
    background: white;

    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(23, 107, 58, 0.07);
}

.class-form-group input::placeholder {
    color: #a1aaa5;
}


/* =========================================================
   33. LINHA DO FORMULÁRIO
   ========================================================= */

.class-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 13px;
}


/* =========================================================
   34. NOTA DO MODAL
   ========================================================= */

.class-form-note {
    padding: 13px;

    border-radius: 9px;

    background: var(--yellow-light);

    border: 1px solid #f4e7b4;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: #75652b;

    font-size: 9px;

    line-height: 1.55;
}

.class-form-note i {
    margin-top: 2px;

    flex-shrink: 0;

    color: #bd9400;
}


/* =========================================================
   35. RODAPÉ DO MODAL
   ========================================================= */

.class-modal-footer {
    padding: 17px 22px;

    border-top: 1px solid var(--border);

    display: flex;
    justify-content: flex-end;

    gap: 9px;
}

.class-modal-cancel,
.class-modal-save {
    height: 39px;

    padding: 0 16px;

    border-radius: 8px;

    font-size: 10px;
    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    transition: 0.2s ease;
}

.class-modal-cancel {
    background: #f3f5f4;

    color: #657069;
}

.class-modal-cancel:hover {
    background: #e7ebe8;
}

.class-modal-save {
    background: var(--primary);
    color: white;

    box-shadow: 0 5px 13px rgba(23, 107, 58, 0.18);
}

.class-modal-save:hover {
    background: var(--primary-dark);

    transform: translateY(-1px);
}


/* =========================================================
   36. RESPONSIVIDADE — GRANDES ECRÃS
   ========================================================= */

@media (min-width: 1500px) {

    .direction-content {
        padding: 38px 45px;
    }

    .classes-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* =========================================================
   37. RESPONSIVIDADE — TABLETS
   ========================================================= */

@media (max-width: 1200px) {

    :root {
        --sidebar-width: 240px;
    }

    .direction-content {
        padding: 25px;
    }

    .direction-topbar {
        padding: 0 25px;
    }

    .class-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .classes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .class-filter-controls {
        grid-template-columns: 1fr 1fr;
    }

    .class-filter-search {
        grid-column: span 2;
    }

    .class-clear-filter {
        width: 100%;
    }
}


/* =========================================================
   38. RESPONSIVIDADE — TABLET PEQUENO
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --sidebar-width: 230px;
    }

    .direction-sidebar {
        width: var(--sidebar-width);
    }

    .direction-main {
        margin-left: var(--sidebar-width);

        width: calc(100% - var(--sidebar-width));
    }

    .direction-search {
        width: 170px;
    }

    .direction-profile > div:last-child {
        display: none;
    }

    .direction-profile {
        padding-left: 0;
        border-left: none;
    }

    .classes-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .class-primary-button {
        align-self: flex-start;
    }
}


/* =========================================================
   39. RESPONSIVIDADE — TELEMÓVEL
   ========================================================= */

@media (max-width: 700px) {

    :root {
        --sidebar-width: 0px;
        --topbar-height: 70px;
    }

    body {
        overflow-x: hidden;
    }

    .direction-sidebar {
        width: 270px;

        transform: translateX(-100%);

        transition: transform 0.3s ease;

        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.12);
    }

    .direction-sidebar.open {
        transform: translateX(0);
    }

    .direction-main {
        margin-left: 0;

        width: 100%;
    }

    .direction-topbar {
        padding: 0 16px;
    }

    .direction-menu-button {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    .direction-search {
        display: none;
    }

    .direction-notification {
        width: 36px;
        height: 36px;
    }

    .direction-profile {
        display: none;
    }

    .direction-content {
        padding: 20px 15px;
    }

    .classes-page-heading h2 {
        font-size: 23px;
    }

    .classes-page-heading p {
        font-size: 10px;
    }

    .class-primary-button {
        width: 100%;
    }

    .class-stat-grid {
        grid-template-columns: 1fr;
    }

    .class-filter-controls {
        grid-template-columns: 1fr;
    }

    .class-filter-search {
        grid-column: auto;
    }

    .classes-list-panel {
        padding: 15px;
    }

    .classes-list-header {
        align-items: flex-start;
        gap: 12px;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .direction-footer {
        flex-direction: column;

        gap: 6px;

        text-align: center;
    }
}


/* =========================================================
   40. RESPONSIVIDADE — TELEMÓVEL PEQUENO
   ========================================================= */

@media (max-width: 450px) {

    .direction-topbar-left h1 {
        font-size: 18px;
    }

    .direction-topbar-left > div:last-child > span {
        font-size: 7px;
    }

    .classes-page-heading h2 {
        font-size: 21px;
    }

    .class-stat-card {
        min-height: 95px;

        padding: 15px;
    }

    .class-stat-icon {
        width: 43px;
        height: 43px;
    }

    .class-stat-card strong {
        font-size: 22px;
    }

    .classes-list-header h3 {
        font-size: 15px;
    }

    .class-view-button {
        width: 31px;
        height: 29px;
    }

    .class-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .class-modal-overlay {
        padding: 12px;
    }

    .class-modal-header,
    .class-modal-body,
    .class-modal-footer {
        padding-left: 17px;
        padding-right: 17px;
    }

    .class-modal-footer {
        flex-direction: column-reverse;
    }

    .class-modal-cancel,
    .class-modal-save {
        width: 100%;
    }
}


/* =========================================================
   41. SCROLLBAR PRINCIPAL
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f4f2;
}

::-webkit-scrollbar-thumb {
    background: #cbd4ce;

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aebbb2;
}


/* =========================================================
   42. SELEÇÃO DE TEXTO
   ========================================================= */

::selection {
    background: var(--primary);
    color: white;
}


/* =========================================================
   43. ACESSIBILIDADE / FOCUS
   ========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(23, 107, 58, 0.25);
    outline-offset: 2px;
}


/* =========================================================
   44. REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

/* Abrangência real do sistema académico */
.school-scope { padding: 22px 0; background: #f7faf4; border-bottom: 1px solid rgba(0,0,0,.06); }
.school-scope .container { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; text-align:center; }
.school-scope strong { font-size:1.05rem; color:#4c9a2a; }
.school-scope span { color:#555; font-size:.95rem; }


/* =========================================================
   CORRECÇÃO FINAL — LAYOUT RESPONSIVO E ECRÃS LARGOS
   ========================================================= */
html, body { max-width: 100%; }
body { overflow-x: clip; }
img, video, canvas, iframe { max-width: 100%; }
main, section, article, aside, .direction-main, .student-main,
.direction-content, .student-content, .content, .wrap, .container,
.page-content, .dashboard-content, .main-content { min-width: 0; }
.wrap { width: min(100% - 48px, 1680px); max-width: 1680px; margin-inline: auto; }
.container { width: min(94%, 1680px); max-width: 1680px; margin-inline: auto; }
.direction-main { min-width: 0; max-width: none; }
.direction-content, .student-content, .content, .dashboard-content, .main-content {
  width: 100%; max-width: none; margin-inline: auto;
}
.direction-topbar, .student-topbar, .dashboard-topbar { min-width: 0; }
.direction-topbar > *, .student-topbar > *, .dashboard-topbar > * { min-width: 0; }
.table-responsive, .table-container, .table-wrapper, .data-table-wrapper,
.table-scroll, .overflow-table { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { max-width: 100%; }
input, select, textarea { max-width: 100%; }
@media (min-width: 1600px) {
  .wrap { width: min(100% - 64px, 1760px); max-width: 1760px; }
  .container { width: min(96%, 1760px); max-width: 1760px; }
  .direction-content, .student-content, .content, .dashboard-content, .main-content { padding-inline: clamp(24px, 2.4vw, 48px); }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 32px); }
  .container { width: calc(100% - 32px); }
  .direction-main { margin-left: 0; width: 100%; }
  .direction-content, .student-content, .content, .dashboard-content, .main-content { padding-inline: 16px; }
  .direction-topbar { gap: 10px; padding-inline: 16px; }
  .direction-topbar-left, .direction-topbar-right { min-width: 0; }
}
@media (max-width: 600px) {
  .wrap, .container { width: calc(100% - 24px); }
  .direction-content, .student-content, .content, .dashboard-content, .main-content { padding-inline: 12px; }
  .direction-topbar { padding-inline: 12px; }
  .direction-sidebar { z-index: 12000; }
  .direction-topbar { position: sticky; }
  .form-grid, .filters-grid, .stats-grid, .cards-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .page-heading, .section-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading > *, .section-heading > * { min-width: 0; max-width: 100%; }
  table { font-size: 13px; }
}


/* CORRECCAO INSTITUCIONAL V8: alinhamento, identidade e responsividade */
:root { --lem-font: "Montserrat", "Segoe UI", Arial, sans-serif; }
html, body { width:100%; max-width:100%; margin:0; overflow-x:hidden; font-family:var(--lem-font); }
body { font-family:var(--lem-font); }
h1,h2,h3,h4,h5,h6,.nav-link,.btn,.hero-small-title { font-family:var(--lem-font); }
.container { width: min(96%, 1760px) !important; max-width:1760px !important; margin-left:auto !important; margin-right:auto !important; }
.hero-section { width:100%; }
.hero-content { width:min(96%,1760px) !important; max-width:1760px !important; margin-left:auto !important; margin-right:auto !important; padding-left:0 !important; padding-right:0 !important; }
.hero-text { margin-left:0 !important; padding-left:0 !important; max-width:760px; }
.hero-arrow, .hero-dots { display:none !important; }
.slogan-flutuante { position:absolute; z-index:5; top:22px; right:clamp(18px,4vw,70px); max-width:80%; color:#fff; font-family:"Segoe Script","Brush Script MT","URW Chancery L",cursive; font-size:clamp(15px,1.5vw,23px); font-style:italic; letter-spacing:.04em; text-shadow:0 2px 8px rgba(0,0,0,.65); pointer-events:none; }
.lem-institutional-signature { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; box-sizing:border-box; margin:0; padding:22px 16px; border-top:1px solid rgba(0,0,0,.12); background:#fff; color:#25452b; }
.lem-institutional-signature img { width:48px; height:48px; object-fit:contain; }
.lem-signature-text { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.lem-signature-text strong { font-family:var(--lem-font); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.lem-signature-text span { font-family:"Segoe Script","Brush Script MT","URW Chancery L",cursive; font-size:17px; font-style:italic; }
@media (max-width:700px) { .container,.hero-content { width:calc(100% - 32px) !important; } .hero-text { padding:74px 0 48px !important; } .slogan-flutuante { top:12px; right:16px; font-size:14px; } .lem-institutional-signature { padding:16px 10px; } }


/* CORRECCAO V9 — alinhamento da página inicial e slogan institucional */
@media (min-width: 721px) {
  /* O hero ocupa a largura disponível; o texto começa perto da margem esquerda. */
  .hero-content.container, .hero-section > .hero-content {
    width: 100% !important; max-width: none !important;
    margin-left: 0 !important; margin-right: 0 !important;
    padding-left: clamp(24px, 3vw, 52px) !important;
    padding-right: clamp(24px, 3vw, 52px) !important;
  }
  .hero-text { margin-left: 0 !important; padding-left: 0 !important; }
  /* Alinhar o logótipo mais perto da margem, sem empurrar o menu para fora. */
  .main-header .header-content {
    width: 100% !important; max-width: none !important;
    padding-left: clamp(18px, 2vw, 34px) !important;
    padding-right: clamp(18px, 2vw, 34px) !important;
    margin-left: 0 !important; margin-right: 0 !important;
  }
}
/* O slogan usa uma assinatura cursiva; não converter para a fonte geral do portal. */
.slogan-flutuante {
  font-family: "Segoe Script", "Brush Script MT", "URW Chancery L", cursive !important;
  font-style: italic !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: .015em !important;
  font-size: clamp(18px, 1.65vw, 27px) !important;
  top: 18px !important; right: clamp(20px, 3vw, 54px) !important;
  max-width: 70%;
}
.lem-institutional-signature .lem-signature-text span {
  font-family: "Segoe Script", "Brush Script MT", "URW Chancery L", cursive !important;
  font-size: clamp(16px, 1.4vw, 21px) !important;
  font-style: italic !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: .01em !important; color: #4d7b36 !important;
}
.slogan-assinatura {
  font-family: "Segoe Script", "Brush Script MT", "URW Chancery L", cursive !important;
  font-size: 10px !important; font-style: italic !important;
  font-weight: 500 !important; letter-spacing: .02em !important; text-transform: none !important;
}
@media (max-width: 720px) {
  .hero-content.container, .hero-section > .hero-content { width: 100% !important; padding-left: 20px !important; padding-right: 20px !important; }
  .main-header .header-content { width: 100% !important; padding-left: 14px !important; padding-right: 14px !important; }
  .slogan-flutuante { top: 12px !important; right: 14px !important; max-width: 82%; font-size: 15px !important; }
}

/* v10: alinhar texto do banner à esquerda e reduzir recuo excessivo */
.hero-section{width:100%; max-width:none; margin-left:0; margin-right:0; overflow:hidden}
.hero-section > .container.hero-content{width:min(96%,1500px)!important; max-width:1500px!important; margin-left:auto!important; margin-right:auto!important}
.hero-content{padding-left:0!important; padding-right:0!important}
.hero-text{margin-left:0!important; padding-left:0!important; max-width:min(650px,100%)}
@media(min-width:1200px){.hero-section > .container.hero-content{width:calc(100% - 64px)!important; max-width:none!important; margin-left:32px!important; margin-right:32px!important}}
@media(min-width:1600px){.hero-section > .container.hero-content{width:calc(100% - 80px)!important; margin-left:40px!important; margin-right:40px!important}}


/* IDENTIDADE INSTITUCIONAL — o emblema nunca deve receber fundo,
   moldura ou efeito decorativo que altere a sua apresentação. */
.student-logo-icon:has(> img[src*="liceu-logo"]),
.student-logo-icon:has(> img.emblema-institucional),
.brand-icon:has(> img[src*="liceu-logo"]),
.logo-symbol:has(> img[src*="liceu-logo"]),
.login-logo-icon:has(> img[src*="liceu-logo"]),
.school-logo-icon:has(> img[src*="liceu-logo"]) {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  color: inherit !important;
}
.student-logo-icon:has(> img[src*="liceu-logo"])::before,
.student-logo-icon:has(> img[src*="liceu-logo"])::after,
.brand-icon:has(> img[src*="liceu-logo"])::before,
.brand-icon:has(> img[src*="liceu-logo"])::after,
.logo-symbol:has(> img[src*="liceu-logo"])::before,
.logo-symbol:has(> img[src*="liceu-logo"])::after,
.login-logo-icon:has(> img[src*="liceu-logo"])::before,
.login-logo-icon:has(> img[src*="liceu-logo"])::after,
.school-logo-icon:has(> img[src*="liceu-logo"])::before,
.school-logo-icon:has(> img[src*="liceu-logo"])::after {
  content: none !important;
  display: none !important;
}
.student-logo-icon > img[src*="liceu-logo"],
.brand-icon > img[src*="liceu-logo"],
.logo-symbol > img[src*="liceu-logo"],
.login-logo-icon > img[src*="liceu-logo"],
.school-logo-icon > img[src*="liceu-logo"] {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* LEM • acabamento transversal para páginas públicas e módulos internos */
:root{--lem-ink:#18352b;--lem-green:#0b5945;--lem-green-2:#14785b;--lem-gold:#d8b65c;--lem-paper:#f5f8f5;--lem-line:#e2eae3;--lem-radius:16px}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{color:var(--lem-ink);-webkit-font-smoothing:antialiased}
img{max-width:100%}
button,input,select,textarea{font:inherit}
:where(button,[type=button],[type=submit],.btn,.button,a.button){transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease}
:where(button,[type=button],[type=submit],.btn,.button):hover{transform:translateY(-1px)}
:where(input,select,textarea):focus-visible{outline:3px solid rgba(20,120,91,.22);outline-offset:1px;border-color:var(--lem-green-2)!important}
:where(.card,.panel,.stat-card,.content-card,.form-card,.section-card){border-radius:var(--lem-radius);border-color:var(--lem-line)}
:where(table){border-collapse:separate;border-spacing:0;width:100%}
:where(th){font-weight:700}
:where(td,th){vertical-align:middle}
:where(.table-responsive,.table-wrapper,.table-container){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
:where(.alert,.message,.notice){border-radius:12px}
:where(a):focus-visible{outline:3px solid rgba(20,120,91,.3);outline-offset:3px;border-radius:4px}
@media(max-width:900px){:where(.container,.wrap,.page-container,.content){max-width:100%;width:100%;padding-left:16px;padding-right:16px}:where(.stats,.stats-grid,.cards-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){:where(.stats,.stats-grid,.cards-grid){grid-template-columns:minmax(0,1fr)!important}:where(.page-header,.top,.header,.section-header){flex-wrap:wrap;gap:12px}:where(table){min-width:620px}:where(.table-responsive,.table-wrapper,.table-container){display:block}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
