/* ==========================================================================
   CARÔMETRO DIGITAL - COLÉGIO CATÓLICA MACHADO DE ASSIS
   Estilos CSS Modernos, Responsivos e Otimizados para Impressão
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  --surface: #ffffff;
  --surface-hover: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   TELA DE LOGIN
   ========================================================================== */

@keyframes loginFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  15%  { transform: translateX(-12px); }
  30%  { transform: translateX(10px); }
  45%  { transform: translateX(-8px); }
  60%  { transform: translateX(6px); }
  75%  { transform: translateX(-3px); }
}

@keyframes loginGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.3); }
  50%      { box-shadow: 0 0 50px rgba(59, 130, 246, 0.5); }
}

@keyframes bgPatternMove {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0c1929 0%, #132847 40%, #1a3a6a 70%, #0f2544 100%);
  padding: 20px;
  overflow: hidden;
}

.login-screen.hidden {
  display: none;
}

.login-bg-pattern {
  position: absolute;
  inset: -60px;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
  animation: bgPatternMove 20s linear infinite;
  pointer-events: none;
}

.login-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 48px 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: loginFadeIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-card.shake {
  animation: loginShake 0.5s ease-in-out;
}

.login-logo {
  position: relative;
  display: inline-block;
  margin-bottom: 24px;
}

.login-logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: white;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  animation: loginGlow 3s ease-in-out infinite;
}

.login-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 18px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  z-index: 1;
  transition: color 0.25s ease;
}

.login-input-group input {
  width: 100%;
  padding: 16px 50px 16px 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.login-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.login-input-group input:focus {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.login-input-group input:focus ~ .login-input-icon,
.login-input-group input:focus + .login-toggle-password + .login-input-icon {
  color: rgba(59, 130, 246, 0.8);
}

.login-input-group.error input {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.08);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.login-toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 1;
}

.login-toggle-password:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.login-error {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 10px;
}

.login-error.visible {
  display: flex;
}

.login-btn {
  position: relative;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  font-family: inherit;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn-loading {
  display: none;
}

.login-btn.loading .login-btn-text {
  display: none;
}

.login-btn.loading .login-btn-loading {
  display: inline-block;
}

.login-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.login-footer {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

/* Botão de Logout */
.btn-logout {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  transform: translateY(-2px);
}

/* Responsive login */
@media (max-width: 480px) {
  .login-card {
    padding: 36px 24px 28px;
    border-radius: 20px;
  }
  
  .login-title {
    font-size: 22px;
  }
  
  .login-logo-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
    border-radius: 18px;
  }
}

.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================================================
   HEADER DA APLICAÇÃO
   ========================================================================== */

.app-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-title h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.brand-title p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* ==========================================================================
   MÉTRICAS E PAINEL DE BUSCA
   ========================================================================== */

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.metric-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
}

.metric-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   CONTROLES DE FILTRO E BUSCA
   ========================================================================== */

.controls-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}

.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box i.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
}

.search-box input {
  width: 100%;
  padding: 14px 44px 14px 48px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: #f8fafc;
}

.search-box input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  display: none;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}

.ano-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ano-tab {
  padding: 8px 18px;
  border-radius: 20px;
  background: var(--surface-hover);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.ano-tab:hover {
  background: #e2e8f0;
}

.ano-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.turma-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.turma-pill {
  padding: 6px 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.turma-pill:hover {
  background: #e2e8f0;
}

.turma-pill.active {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

/* ==========================================================================
   GRADE DE ALUNOS (STUDENTS GRID)
   ========================================================================== */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
}

.results-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.per-page-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.per-page-select {
  padding: 8px 32px 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.per-page-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Load More */
.load-more-container {
  text-align: center;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-load-more {
  padding: 12px 32px;
  font-size: 15px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--border-color);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-load-more:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.load-more-info {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}

.student-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.photo-container {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  max-width: 100%;
  max-height: 100%;
}

.student-card:hover .photo-container img {
  transform: scale(1.05);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.avatar-initials {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
}

.avatar-label {
  font-size: 11px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chamada-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.turma-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.student-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.student-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.student-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.ra-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  font-family: monospace;
}

.status-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}

.status-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #16a34a;
  border-radius: 50%;
}

/* ==========================================================================
   ESTADO VAZIO / SEM RESULTADOS
   ========================================================================== */

.no-results {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--border-color);
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 48px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.no-results h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.no-results p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   MODAL DE DETALHES DO ALUNO
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-photo {
  width: 100%;
  height: 320px;
  background: #f1f5f9;
}

.modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.modal-details {
  padding: 24px;
}

.modal-student-name {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.modal-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-item {
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.info-item label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  text-transform: uppercase;
}

.info-item span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   ESTILOS DE IMPRESSÃO (A4 PRINT / EXPORTAÇÃO PDF)
   ========================================================================== */

#print-container {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  
  .app-container, .modal-backdrop {
    display: none !important;
  }

  #print-container, #print-container * {
    visibility: visible;
  }

  #print-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
    padding: 0;
    margin: 0;
  }

  .print-page {
    page-break-after: always;
    padding: 12mm 15mm;
    box-sizing: border-box;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 10px;
    margin-bottom: 15px;
  }

  .print-header h2 {
    font-size: 18pt;
    font-family: 'Outfit', sans-serif;
    color: #1e3a8a;
    margin-bottom: 2px;
  }

  .print-header p {
    font-size: 10pt;
    color: #475569;
  }

  .print-meta-bar {
    display: flex;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 10pt;
    font-weight: bold;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
  }

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

  .print-card {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px;
    text-align: center;
    page-break-inside: avoid;
    background: white;
  }

  .print-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 4px;
    margin-bottom: 6px;
    background: #e2e8f0;
  }

  .print-avatar-fallback {
    width: 100%;
    height: 120px;
    background: #1e3a8a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24pt;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 6px;
  }

  .print-chamada {
    font-size: 9pt;
    font-weight: bold;
    color: #2563eb;
  }

  .print-name {
    font-size: 9.5pt;
    font-weight: bold;
    color: #0f172a;
    line-height: 1.15;
    height: 24pt;
    overflow: hidden;
    margin: 2px 0;
  }

  .print-ra {
    font-size: 8pt;
    color: #64748b;
    font-family: monospace;
  }

  .print-footer {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 8pt;
    color: #94a3b8;
  }
}
