/* =========================
   RESET
========================= */
html,
body {
  height: 100%;
  margin: 0;
}

/* =========================
   LAYOUT PRINCIPAL
========================= */
.app-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 🔥 CORRIGIDO (ANTES ERA height:100vh) */
.conteudo {
  flex: 1;
  width: 99%;
  background: #F1F5F9;
  display: flex;
  flex-direction: column;
}

/* 🔥 REMOVIDO height:90vh */
.conteudo-principal {
  width: calc(100% - 10px);
  margin: 10px;
  padding-bottom: 30px;
}

/* Footer sempre correto */
footer {
  margin-top: auto;
}

/* =========================
   CONTAINERS
========================= */
.container {
  background-color: #fff !important;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #cccccc;
}

.container.matricula {
  max-width: 45%;
}

.container.divnome {
  padding: 20px;
  font-size: 20px;
  border: 0 !important;
  box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.1);
}

.container.divnome a.nome-edicao {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

/* =========================
   MENU / ESTRUTURA
========================= */
.menu {
  background: #fff !important;
}

.main {
  justify-content: center;
  margin: 20px;
}

.home {
  display: flex;
  flex-wrap: wrap;
}

.lista-matricula {
  display: flex;
}

.calendario,
.aniversario {
  flex: 1;
  padding: 10px;
}

/* =========================
   DADOS PESSOA
========================= */
.nome-dados {
  font-size: 14px;
  margin: 0;
}

.nome-dados span {
  text-transform: uppercase;
}

.nome-dados.pessoa {
  font-size: 20px;
}

.grupo-dados {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.grupo-dados-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}

/* =========================
   IMAGENS / LOGO
========================= */
.col-sm-4.imglogo {
  max-width: 200px;
  margin: 10px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* =========================
   FORMULÁRIOS
========================= */
label {
  display: flex;
  justify-content: flex-start;
}

.btn_add {
  width: 100%;
  border: 1px solid #333 !important;
  background-color: #333 !important;
}

.btn_add:hover {
  opacity: 0.8;
}

.btn-success {
  border: 1px solid #278d4b !important;
  background-color: #278d4b !important;
}

/* =========================
   TABELAS
========================= */
thead tr th,
tr td {
  text-align: start !important;
}

.tabela-social {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #cccccc;
}

/* =========================
   CHECKBOX GRID
========================= */
.form-check {
  margin-bottom: 0.5rem;
}

@media (min-width: 576px) {
  .checkbox-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .checkbox-grid .form-check {
    width: 50%;
  }
}

@media (min-width: 768px) {
  .checkbox-grid .form-check {
    width: 33.333%;
  }
}

@media (min-width: 992px) {
  .checkbox-grid .form-check {
    width: 25%;
  }
}

@media (min-width: 1200px) {
  .checkbox-grid .form-check {
    width: 20%;
  }
}

/* =========================
   RELAÇÃO TURMA
========================= */
.relacao_turma {
  background: #fff;
  margin: 30px auto 0;
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.information {
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
}

/* =========================
   IMPRESSÃO
========================= */
#impressao {
  min-height: 100vh;
  background: #000;
}

.cabecalho-impressao {
  height: 100px;
}

.impressao img {
  float: left;
}

.nomeUnidade {
  padding: 10px 10px 0 10px;
  max-width: 60%;
  height: 60px;
  margin-bottom: 40px;
  float: left;
}

.nomeUnidade span {
  font-weight: 800;
}

.nomeUnidade p {
  margin-top: 2px;
}

.dados-turma {
  margin-bottom: 20px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 5px 0;
}

/* =========================
   HEADER FIXO
========================= */
.topo {
  width: 100%;
  display: block;
}

main {
  margin-top: 70px;
}

.disciplina-limit {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.page-scroll {
  max-height: 85vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.page-scroll::-webkit-scrollbar {
  width: 8px;
}

.page-scroll::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 10px;
}

.page-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}


.conteudo {
  flex: 1;
}

footer {
  margin-top: auto;
}