/* Frequência Styles */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.turma-card {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.turma-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-color: #007bff;
}

.turma-card-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

.turma-card-body {
  padding: 1.25rem;
}

.turma-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.stat-item {
  text-align: center;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #007bff;
}

.stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.filters-row {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.filter-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #495057;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  transition: all 0.2s ease;
  font-weight: 500;
}

.filter-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.filter-group select:hover {
  border-color: #007bff;
}

.table-container {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: white;
  /* Melhorar visualização da barra de rolagem */
  scrollbar-width: thin;
  scrollbar-color: #007bff #f1f3f4;
}

/* Customizar barra de rolagem para navegadores WebKit */
.table-container::-webkit-scrollbar {
  height: 12px;
}

.table-container::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 6px;
}

.table-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 6px;
  border: 2px solid #f1f3f4;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Wrapper específico para tabela de dias */
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid #e0e4e7;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: white;
  /* Melhorar visualização da barra de rolagem */
  scrollbar-width: thin;
  scrollbar-color: #007bff #f1f3f4;
}

/* Customizar barra de rolagem para navegadores WebKit no table-wrapper */
.table-wrapper::-webkit-scrollbar {
  height: 12px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f3f4;
  border-radius: 6px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-radius: 6px;
  border: 2px solid #f1f3f4;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.data-table {
  width: 100%;
  min-width: 1500px; /* Garantir largura bem grande para forçar rolagem horizontal */
  border-collapse: collapse;
  font-size: 0.875rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap; /* Evitar quebra de texto nas células */
}

.data-table th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #495057;
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 50px; /* Largura mínima para cada coluna de dia */
}

.data-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f1f3f4;
  text-align: center;
  transition: background-color 0.2s ease;
  min-width: 50px; /* Largura mínima para cada célula de dia */
}

.data-table tr:hover td {
  background-color: #f8f9fa;
}

.data-table td:first-child,
.data-table td:nth-child(2) {
  text-align: left;
  position: sticky;
  left: 0;
  background: white;
  border-right: 2px solid #dee2e6;
  font-weight: 500;
  z-index: 5;
}

.data-table tr:hover td:first-child,
.data-table tr:hover td:nth-child(2) {
  background-color: #f8f9fa;
}

.data-table th:first-child,
.data-table th:nth-child(2) {
  position: sticky;
  left: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-right: 2px solid #dee2e6;
  z-index: 11;
}

.data-table th:first-child {
  border-top-left-radius: 12px;
}

.data-table th:last-child {
  border-top-right-radius: 12px;
}

/* Status da frequência */
.freq-P { 
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%); 
  color: #155724; 
  font-weight: 600; 
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #c3e6cb;
  font-size: 0.8rem;
}

.freq-F { 
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%); 
  color: #721c24; 
  font-weight: 600; 
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #f5c6cb;
  font-size: 0.8rem;
}

.freq-A { 
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); 
  color: #856404; 
  font-weight: 600; 
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #ffeaa7;
  font-size: 0.8rem;
}

.freq-FC { 
  background: linear-gradient(135deg, #fde2e4 0%, #f8d7da 100%); 
  color: #8b1a1a; 
  font-weight: 600; 
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #f8d7da;
  font-size: 0.8rem;
}

.container {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.container h2 {
  margin: 0 0 1.5rem 0;
  color: #212529;
  border-bottom: 3px solid #007bff;
  padding-bottom: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-text {
  color: #6c757d;
  font-style: italic;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #007bff;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Botões melhorados */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

/* Sistema de Lançamento de Frequência */
.alunos-frequencia-lista {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  background: white;
}

.aluno-frequencia-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s ease;
}

.aluno-frequencia-item:hover {
  background-color: #f8f9fa;
}

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

.aluno-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.aluno-codigo {
  font-weight: 700;
  color: #007bff;
  min-width: 80px;
  font-size: 0.9rem;
}

.aluno-nome {
  font-weight: 500;
  color: #333;
  flex: 1;
}

.frequencia-controles {
  display: flex;
  gap: 0.5rem;
}

.frequencia-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.frequencia-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.radio-label {
  padding: 0.5rem 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  min-width: 35px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.frequencia-radio input[type="radio"]:checked + .radio-label {
  border-color: transparent;
  color: white;
  transform: scale(1.05);
}

.frequencia-radio input[type="radio"]:checked + .radio-label.freq-P {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.frequencia-radio input[type="radio"]:checked + .radio-label.freq-F {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.frequencia-radio input[type="radio"]:checked + .radio-label.freq-A {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.frequencia-radio input[type="radio"]:checked + .radio-label.freq-FC {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
  box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

.frequencia-radio:hover .radio-label {
  border-color: #007bff;
  transform: translateY(-1px);
}

.success-message {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #28a745;
  font-weight: 500;
}

.error-message {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #dc3545;
  font-weight: 500;
}

/* Sistema de Alertas de Frequência */
.alertas-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.alertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.alerta-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.alerta-item:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-color: #007bff;
}

.alerta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f3f4;
}

.alerta-aluno {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.alerta-codigo {
  color: #007bff;
  font-size: 0.9rem;
  font-weight: 500;
}

.alerta-stats {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.stat-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.stat-badge.danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.stat-badge.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border: 1px solid #ffeaa7;
}

.stat-badge.info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.providencias-container {
  margin-top: 1rem;
}

.providencias-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: block;
}

.ficai-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ficai-status-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ficai-status-group select {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.9rem;
}

.ficai-prazo {
  display: none;
  background: #fff3cd;
  padding: 0.5rem;
  border-radius: 4px;
  border-left: 3px solid #ffc107;
  font-size: 0.85rem;
  color: #856404;
}

.ficai-prazo.show {
  display: block;
}

.ficai-data-group {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.ficai-data-group .form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #495057;
  font-size: 0.9rem;
}

.ficai-data-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.ficai-data-input:focus {
  outline: none;
  border-color: #6f42c1;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

.providencias-textarea {
  width: 100%;
  min-height: 60px;
  padding: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.providencias-textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

.btn-salvar-providencias {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-salvar-providencias:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  transform: translateY(-1px);
}

.alerta-resolvido {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #c3e6cb;
}

.alerta-resolvido .alerta-header::after {
  content: '✅';
  font-size: 1.2rem;
  margin-left: 0.5rem;
}

.loading-alertas {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.no-alertas {
  text-align: center;
  padding: 3rem 2rem;
  color: #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #007bff;
  margin: 1rem 0;
}

.no-alertas strong {
  color: #495057;
  font-size: 1.1rem;
}

.no-alertas small {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.4;
  color: #6c757d;
}

/* Animações para quick-stats */
.stat-number {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
}

.stat-number.loading {
  opacity: 0.3;
  transform: scale(0.9);
}

.stat-card {
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

/* 🎨 Cores dos cards por status FICAI */

/* Status: Sem status - Branco */
.alerta-item {
  background: white;
  border: 1px solid #e9ecef;
}

/* Status: Resolvido - Verde */
.alerta-item.status-resolvido {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  border-left: 4px solid #28a745;
}

/* Status: Aguardando prazo - Azul */
.alerta-item.status-aguardando {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-color: #007bff;
  border-left: 4px solid #007bff;
}

/* Status: Conselho Tutelar - Amarelo */
.alerta-item.status-conselho {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107;
  border-left: 4px solid #ffc107;
}

/* Status: Cancelado - Roxo */
.alerta-item.status-cancelado {
  background: linear-gradient(135deg, #e2d9f3 0%, #d1c4e9 100%);
  border-color: #8e2de2;
  border-left: 4px solid #8e2de2;
}

/* Efeito hover mantendo as cores */
.alerta-item.status-resolvido:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
  border-color: #28a745;
}

.alerta-item.status-aguardando:hover {
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  border-color: #007bff;
}

.alerta-item.status-conselho:hover {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
  border-color: #ffc107;
}

.alerta-item.status-cancelado:hover {
  box-shadow: 0 4px 12px rgba(142, 45, 226, 0.2);
  border-color: #8e2de2;
}

/* ====================================== */
/* ABAS DE FREQUÊNCIA (DIÁRIA / SEMANAL) */
/* ====================================== */

.frequencia-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  background: #f1f3f4;
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
}

.frequencia-tabs .tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.frequencia-tabs .tab-btn:hover {
  background: rgba(0, 137, 123, 0.1);  /* Verde Teal */
  color: #00897B;
}

.frequencia-tabs .tab-btn.active {
  background: linear-gradient(135deg, #1D357F 0%, #00897B 100%);  /* Azul SEDUC → Verde Teal */
  color: white;
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.3);
}

.tab-content {
  display: block;
}

.tab-content[style*="display: none"] {
  display: none !important;
}

/* ====================================== */
/* GRADE SEMANAL DE FREQUÊNCIA */
/* ====================================== */

.semana-header {
  display: grid;
  grid-template-columns: 100px 1fr repeat(5, 80px);
  gap: 8px;
  background: linear-gradient(135deg, #1D357F 0%, #00897B 100%);  /* Azul SEDUC → Verde Teal */
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.semana-header .header-codigo {
  text-align: left;
}

.semana-header .header-nome {
  text-align: left;
}

.semana-header .header-dia {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.semana-header .header-dia .dia-semana {
  font-size: 0.75rem;
  opacity: 0.9;
}

.semana-header .header-dia .dia-numero {
  font-size: 0.9rem;
  font-weight: 700;
}

.alunos-frequencia-semanal {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: white;
}

.aluno-semanal-item {
  display: grid;
  grid-template-columns: 100px 1fr repeat(5, 80px);
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  align-items: center;
  transition: background-color 0.2s ease;
}

.aluno-semanal-item:hover {
  background-color: #f8f9fa;
}

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

.aluno-semanal-item .aluno-codigo {
  font-weight: 700;
  color: #1D357F;  /* Azul SEDUC */
  font-size: 0.85rem;
}

.aluno-semanal-item .aluno-nome {
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dia-frequencia {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dia-frequencia select {
  width: 100%;
  padding: 6px 4px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  appearance: none;
  -webkit-appearance: none;
}

.dia-frequencia select:focus {
  outline: none;
  border-color: #00897B;  /* Verde Teal */
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.15);
}

.dia-frequencia select:hover {
  border-color: #00897B;  /* Verde Teal */
}

/* Cores do select baseado no valor selecionado */
.dia-frequencia select.status-P {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  color: #155724;
}

.dia-frequencia select.status-F {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-color: #dc3545;
  color: #721c24;
}

.dia-frequencia select.status-A {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-color: #ffc107;
  color: #856404;
}

.dia-frequencia select.status-FC {
  background: linear-gradient(135deg, #fde2e4 0%, #f8d7da 100%);
  border-color: #fd7e14;
  color: #8b1a1a;
}

/* Dia não letivo (fim de semana ou feriado) */
.dia-frequencia.dia-nao-letivo {
  opacity: 0.5;
}

.dia-frequencia.dia-nao-letivo select {
  background: #f1f3f4;
  cursor: not-allowed;
}

/* ====================================== */
/* RESPONSIVIDADE SEMANAL */
/* ====================================== */

@media (max-width: 900px) {
  .semana-header {
    grid-template-columns: 80px 1fr repeat(5, 60px);
    font-size: 0.75rem;
    padding: 10px 12px;
  }

  .aluno-semanal-item {
    grid-template-columns: 80px 1fr repeat(5, 60px);
    padding: 10px 12px;
  }

  .dia-frequencia select {
    padding: 4px 2px;
    font-size: 0.75rem;
  }
}

@media (max-width: 700px) {
  .semana-header {
    grid-template-columns: 1fr repeat(5, 50px);
    font-size: 0.7rem;
  }

  .semana-header .header-codigo {
    display: none;
  }

  .aluno-semanal-item {
    grid-template-columns: 1fr repeat(5, 50px);
  }

  .aluno-semanal-item .aluno-codigo {
    display: none;
  }

  .dia-frequencia select {
    padding: 3px 1px;
    font-size: 0.7rem;
  }

  .frequencia-tabs .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}