/* ═══════════════════════════════════════════════════════════════
   Guarda Mirim de Nossa Senhora de Nazaré — Tema Visual
   Paleta: Azul celeste, Dourado, Branco marfim
   ═══════════════════════════════════════════════════════════════ */

:root {
  --azul-primario:   #1a5f8a;
  --azul-claro:      #2e87bf;
  --azul-suave:      #d6eaf8;
  --azul-fundo:      #eaf4fb;
  --dourado:         #c8a84b;
  --dourado-claro:   #f5e6b0;
  --dourado-escuro:  #9e7b2e;
  --branco:          #ffffff;
  --marfim:          #fdfaf4;
  --cinza-borda:     #dee2e6;
  --cinza-texto:     #6c757d;
  --verde:           #198754;
  --vermelho:        #dc3545;
  --sidebar-width:   260px;
  --topbar-height:   60px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--azul-fundo);
  color: #212529;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--azul-primario) 0%, #0f3a57 100%);
  color: var(--branco);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 3px 0 12px rgba(0,0,0,0.15);
}

.sidebar-brand {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}

.sidebar-brand img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--dourado);
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.sidebar-brand h5 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dourado-claro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.3;
}

.sidebar-brand small {
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
}

.sidebar-section {
  padding: 0.75rem 1rem 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dourado);
  opacity: 0.85;
}

.sidebar-nav { padding: 0.5rem 0; flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--branco);
  border-left-color: var(--dourado);
}

.sidebar-nav a .icon {
  width: 18px;
  text-align: center;
  opacity: 0.9;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

.sidebar-footer a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-top: .35rem;
}

.sidebar-footer a:hover { color: var(--branco); }

/* ── Upload de arquivo customizado ── */
.custom-file-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.custom-file-wrap input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.custom-file-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border: 1px solid var(--cinza-borda);
  border-radius: 6px;
  background: var(--branco);
  color: var(--azul-primario);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.custom-file-btn:hover {
  background: var(--azul-claro);
  border-color: var(--azul-primario);
}
.custom-file-name {
  font-size: .82rem;
  color: var(--cinza-texto);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Layout principal ── */
.main-wrapper {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background: var(--branco);
  border-bottom: 1px solid var(--cinza-borda);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--azul-primario);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--cinza-texto);
}

.role-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
}

.role-admin      { background: #fff3cd; color: #856404; }
.role-diretor    { background: #f8d7da; color: #842029; }
.role-supervisor { background: #cfe2ff; color: #084298; }
.role-aspirante  { background: #e2d9f3; color: #432874; }
.role-guarda     { background: #d1e7dd; color: #0a3622; }
.role-participant { background: #e9ecef; color: #495057; }

.page-content {
  padding: 1.75rem;
  flex: 1;
}

/* ── Cards ── */
.card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.card-header {
  padding: 1rem 1.25rem;
  background: var(--marfim);
  border-bottom: 1px solid var(--cinza-borda);
  font-weight: 600;
  color: var(--azul-primario);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-body { padding: 1.25rem; }

/* ── Stat Cards ── */
.stat-card {
  background: var(--branco);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--cinza-borda);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon.blue  { background: var(--azul-suave);   color: var(--azul-primario); }
.stat-icon.gold  { background: var(--dourado-claro); color: var(--dourado-escuro); }
.stat-icon.green { background: #d1e7dd; color: #0a3622; }
.stat-icon.purple{ background: #e8d5f5; color: #6a1b9a; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--azul-primario);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--cinza-texto);
  margin-top: 0.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.5;
  font-family: inherit;   /* <button class="btn"> herda a fonte do tema */
}

/* Formulário usado apenas como wrapper de um botão de ação em tabela */
form.inline-action { display: inline; margin: 0; }

/* Select compacto em tabela — no celular volta a 16px pela regra de mobile,
   evitando o zoom automático do Safari. */
.select-compacto { font-size: 0.8rem; }

/* ── Banner de status da lista de frequência ── */
.status-banner.status-pendente { border-left: 4px solid var(--dourado); }
.status-banner.status-aprovada { border-left: 4px solid #198754; }

.btn-primary {
  background: var(--azul-primario);
  color: var(--branco);
  border-color: var(--azul-primario);
}
.btn-primary:hover { background: #14486e; border-color: #14486e; color: var(--branco); }

.btn-gold {
  background: var(--dourado);
  color: var(--branco);
  border-color: var(--dourado);
}
.btn-gold:hover { background: var(--dourado-escuro); border-color: var(--dourado-escuro); color: var(--branco); }

.btn-outline {
  background: transparent;
  color: var(--azul-primario);
  border-color: var(--azul-primario);
}
.btn-outline:hover { background: var(--azul-suave); }

.btn-danger {
  background: var(--vermelho);
  color: var(--branco);
  border-color: var(--vermelho);
}
.btn-danger:hover { background: #b02a37; }

.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #495057;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--cinza-borda);
  border-radius: 6px;
  font-size: 0.9rem;
  color: #212529;
  background: var(--branco);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 3px rgba(46,135,191,0.15);
}

.form-control.is-invalid { border-color: var(--vermelho); }
.invalid-feedback { color: var(--vermelho); font-size: 0.8rem; margin-top: 0.25rem; }

.form-check { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.form-check-input { width: 16px; height: 16px; cursor: pointer; }

/* ── Tables ── */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table th {
  background: var(--azul-fundo);
  color: var(--azul-primario);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--azul-suave);
  white-space: nowrap;
}

table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

table tbody tr:hover { background: var(--marfim); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-success { background: #d1e7dd; color: #0a3622; }
.badge-danger  { background: #f8d7da; color: #842029; }
.badge-info    { background: var(--azul-suave); color: var(--azul-primario); }
.badge-warning { background: var(--dourado-claro); color: var(--dourado-escuro); }
.badge-secondary { background: #e9ecef; color: #6c757d; }

/* ── Alerts / Messages ── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.alert-danger  { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }
.alert-info    { background: var(--azul-suave); color: var(--azul-primario); border: 1px solid #b6d4fe; }
.alert-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 380px;
  width: calc(100vw - 2.5rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  animation: toast-in 0.3s ease;
  overflow: hidden;
  position: relative;
}

.toast.hiding {
  animation: toast-out 0.35s ease forwards;
}

.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; line-height: 1.4; }
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.55;
  padding: 0 0 0 0.5rem;
  flex-shrink: 0;
  color: inherit;
}
.toast-close:hover { opacity: 1; }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  animation: toast-progress 10s linear forwards;
}

.toast-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.toast-success .toast-progress { background: #198754; }

.toast-danger  { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }
.toast-danger  .toast-progress { background: #dc3545; }

.toast-info    { background: var(--azul-suave); color: var(--azul-primario); border: 1px solid #b6d4fe; }
.toast-info    .toast-progress { background: var(--azul-primario); }

.toast-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; }
.toast-warning .toast-progress { background: #ffc107; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(60px); max-height: 0; padding: 0; margin-bottom: 0; }
}
@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ── Progress bars ── */
.progress {
  height: 10px;
  background: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--azul-claro), var(--azul-primario));
  transition: width 0.5s ease;
}

.progress-bar.done {
  background: linear-gradient(90deg, #28a745, #198754);
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--azul-primario);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--cinza-texto);
  margin-top: 0.2rem;
}

.breadcrumb a { color: var(--azul-claro); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Grid utilities ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* Sem isto o min-width:auto padrão do item de grid faz uma tabela larga
   esticar a coluna e estourar a largura da tela no celular. */
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* ── Hamburger button (mobile only) ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--azul-primario);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger:hover { background: var(--azul-suave); }

/* Overlay escuro atrás da sidebar no mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
}

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

@media (max-width: 768px) {
  /* Sidebar oculta por padrão */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }
  /* Sidebar aberta quando body tem a classe */
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  body.sidebar-open .sidebar-overlay {
    display: block;
  }

  .main-wrapper { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hamburger { display: flex; }

  /* Topbar no mobile: mostrar hamburger à esquerda */
  .topbar {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .topbar-title { font-size: 0.95rem; }

  /* Conteúdo com menos padding lateral */
  .page-content { padding: 1rem; }

  /* O Safari do iOS dá zoom no campo focado sempre que a fonte é menor que
     16px — e não desfaz o zoom ao sair do campo. Subir os controles para 16px
     no celular evita isso sem afetar o layout de desktop. */
  .form-control,
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select,
  textarea {
    font-size: 16px;
  }
}


/* ── Section dividers ── */
.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cinza-texto);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cinza-borda);
}

/* ── Color dot ── */
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Checkbox list for bulk attendance ── */
.participant-checkbox-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid var(--cinza-borda);
  border-radius: 8px;
  background: var(--marfim);
}

.participant-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.85rem;
}

.participant-check-item:hover { background: var(--azul-suave); }
.participant-check-item.present { background: #d1e7dd; }

/* ── Map embed ── */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--azul-claro);
  text-decoration: none;
}
.map-link:hover { text-decoration: underline; }

/* ── Login page ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul-primario) 0%, #0f3a57 60%, #07273d 100%);
}

.login-card {
  background: var(--branco);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid var(--dourado);
  object-fit: cover;
}

.login-logo h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--azul-primario);
  margin-top: 0.75rem;
}

.login-logo p {
  font-size: 0.8rem;
  color: var(--cinza-texto);
}

/* ── Utils ── */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.text-muted { color: var(--cinza-texto); }
.text-small { font-size: 0.8rem; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.w-100 { width: 100%; }

/* ── Print / PDF ──────────────────────────────────────────────── */
.print-header { display: none; }

@media print {
  /* Tamanho de página e margens */
  @page { size: A4 landscape; margin: 12mm 10mm; }

  /* Reset total — sem barras de rolagem no PDF */
  html, body,
  .sidebar, .main-wrapper, .page-content,
  .table-wrapper, .card, .card-body,
  .grid-2, .grid-4, .d-flex {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  html, body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Ocultar elementos de navegação */
  .sidebar,
  .topbar,
  .btn-export-pdf,
  .card-body form,
  .no-print,
  .rule-hidden { display: none !important; }

  /* Layout sem sidebar */
  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .page-content {
    padding: 0 !important;
    width: 100% !important;
  }

  /* Wrappers de tabela — sem scroll */
  .table-wrapper {
    overflow: visible !important;
    width: 100% !important;
  }

  /* Fonte global menor para caber mais em cada página */
  body { font-size: 9pt !important; }

  /* Tabelas ocupam 100% da largura e quebram em múltiplas páginas */
  table {
    width: 100% !important;
    table-layout: fixed !important;
    page-break-inside: auto !important;
    font-size: 8pt !important;
    border-collapse: collapse !important;
    overflow: visible !important;
  }
  th, td {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    padding: 3px 5px !important;
    font-size: 8pt !important;
  }
  tr { page-break-inside: avoid !important; }
  thead { display: table-header-group !important; }

  /* Cabeçalho do relatório */
  .print-header {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    padding: .5rem 0 .75rem;
    border-bottom: 2px solid #1a5f8a;
    margin-bottom: 1rem;
  }
  .print-header img { width: 60px; height: auto; }
  .print-header-text h2 { margin: 0 0 .1rem; font-size: 11pt; color: #1a5f8a; }
  .print-header-text p  { margin: 0; font-size: 8pt; color: #555; }

  /* Cards */
  .card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    margin-bottom: .5rem !important;
    page-break-inside: avoid;
    width: 100% !important;
    overflow: visible !important;
  }
  .card-header {
    font-size: 9pt !important;
    background: #1a5f8a !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .card-body { padding: 4px 8px !important; overflow: visible !important; }

  /* Progress bars */
  .progress { border: 1px solid #ccc; }
  .progress-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Badges e roles mantêm cores */
  [class*="role-"], .badge {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 7pt !important;
  }

  /* Ocultar coluna de atribuição de perfil (última coluna) */
  th:last-child, td:last-child { display: none !important; }

  /* Títulos menores */
  h1 { font-size: 12pt !important; }
  h2 { font-size: 11pt !important; }
  h3 { font-size: 10pt !important; }
  .page-header { margin-bottom: .5rem !important; }
}
