* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }

:root {
  --primary: #0B192C;
  --primary-light: #1E293B;
  --accent: #D4AF37;
  --accent-hover: #B59227;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
}

body { color: var(--text-main); background-color: var(--bg-light); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Cabeçalho e Hero */
.journal-hero {
  padding-top: 130px;
  padding-bottom: 2.5rem;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  max-width: 240px;
  height: auto;
  margin-bottom: 1.25rem;
}

.journal-subtitle {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.journal-main-title { font-size: 2.25rem; color: var(--primary); margin-bottom: 0.5rem; font-weight: 700; }
.journal-description { max-width: 760px; margin: 0 auto 1.5rem; color: var(--text-muted); font-size: 1rem; padding: 0 1rem; }

.btn-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  border: 1px solid var(--primary);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-custom:hover { 
  background: var(--accent); 
  border-color: var(--accent); 
  color: var(--primary); 
  transform: translateY(-2px); 
}

.section-padding { padding: 2.5rem 1.5rem 4rem; max-width: 1280px; margin: 0 auto; }

/* Card da Tabela */
.table-container-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

/* ESTILOS DA TABELA */
.dataTables_wrapper, 
table.dataTable {
  width: 100% !important;
  margin: 0 auto !important;
}

table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
}

table.dataTable thead th {
  background-color: #F8FAFC !important;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-color) !important;
  border-bottom: 2px solid var(--border-color) !important;
  border-left: none !important;
  border-right: none !important;
  padding: 12px 16px !important;
  vertical-align: middle;
  font-size: 0.75rem;
}

table.dataTable tbody tr {
  background-color: var(--white);
  transition: all 0.15s ease-in-out;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #F8FAFC !important;
}

table.dataTable tbody tr:hover {
  background-color: #F1F5F9 !important;
}

table.dataTable tbody td {
  border-bottom: 1px solid var(--border-color);
  border-top: none !important;
  padding: 14px 16px !important;
  color: var(--text-main);
  vertical-align: middle !important;
  font-size: 13px !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Componente de Ícone de Empresa */
.empresa-info-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.empresa-icon-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #EFF6FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid #DBEAFE;
}

.empresa-name {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.88rem;
  line-height: 1.3;
}

/* ESTILOS DE CONTATO (TELEFONE E WHATSAPP) */
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 2px;
  margin-bottom: 2px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-item.contact-phone i {
  color: #0284C7;
  font-size: 11px;
}

/* Destaque para WhatsApp + Telefone Celular */
.contact-item.contact-whatsapp {
  color: #0F5132;
  border-color: #A3E635;
  background-color: #ECFDF5;
  font-weight: 500;
}

.contact-item.contact-whatsapp:hover {
  background-color: #D1FAE5;
  border-color: #10B981;
  color: #064E3B;
  transform: translateY(-1px);
}

.contact-item.contact-whatsapp i.fa-whatsapp {
  color: #25D366;
  font-size: 14px;
}

.contact-item.contact-whatsapp i.fa-phone-alt {
  color: #059669;
  font-size: 10px;
  margin-right: 2px;
}

.contact-item small {
  font-size: 10px;
  opacity: 0.8;
  margin-left: 2px;
}

.email-text {
  color: var(--text-muted);
  font-size: 12px;
  display: block;
  margin-top: 4px;
  word-break: break-all;
}

.email-text i {
  color: var(--accent-hover);
  margin-right: 5px;
}

/* FILTROS E PESQUISA DATATABLES */
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1.25rem;
  text-align: right;
}
.dataTables_wrapper .dataTables_filter label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  outline: none;
  background-color: #FFFFFF;
  min-width: 220px;
}
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* CORREÇÃO DO RODAPÉ E PAGINAÇÃO */
.dataTables_wrapper .row:last-child {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 1rem !important;
}

.dataTables_wrapper .dataTables_info {
  font-size: 13px !important;
  color: var(--text-muted) !important;
  padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 0 !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 4px !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination li.page-item {
  display: inline-block !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination li.page-item a.page-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
  border: 1px solid var(--border-color) !important;
  background-color: var(--white) !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination li.page-item.active a.page-link {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--white) !important;
}

.dataTables_wrapper .dataTables_paginate ul.pagination li.page-item.disabled a.page-link {
  color: var(--text-muted) !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Scroll to Top */
.scroll-btn {
  position: fixed; bottom: 25px; right: 25px; background-color: var(--primary);
  color: var(--white); width: 42px; height: 42px; border: none; border-radius: 50%;
  display: none; justify-content: center; align-items: center; cursor: pointer;
  font-size: 16px; z-index: 1000; box-shadow: var(--shadow-md); transition: all 0.2s ease;
}
.scroll-btn:hover { background-color: var(--accent); color: var(--primary); transform: scale(1.05); }

/* Footer */
footer { background-color: #03294c; color: #94A3B8; padding: 3.5rem 2rem 2rem; margin-top: 4rem; }
.footer-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr repeat(2, 1fr); gap: 3rem; }
.footer-brand .logo { color: var(--white); font-size: 1.4rem; font-weight: bold; text-decoration: none; }
.footer-brand span { color: var(--accent); }
.footer-column h4 { color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer-column ul { list-style: none; }
.footer-column a { color: #94A3B8; text-decoration: none; font-size: 0.88rem; }
.footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.08); text-align: center; font-size: 0.82rem; }

@media (max-width: 768px) {
  .footer-container { grid-template-columns: 1fr; }
  .table-container-card { padding: 1rem; }
  .dataTables_wrapper .row:last-child {
    flex-direction: column !important;
    gap: 12px;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate ul.pagination {
    justify-content: center !important;
    text-align: center !important;
  }
  .dataTables_wrapper .dataTables_filter {
    text-align: center;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
  }
}