@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');




input, select, textarea, button {
  font-size: 16px !important; /* evita zoom ao focar no iOS */
}

/* ===== Reset e Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f4f4f4;
  color: #002244;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Animações ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popUp {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-pop {
  animation: popUp 0.4s ease-in-out;
}

/* ===== LOGIN ===== */
.login-body {
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
  animation: popUp 0.4s ease-in-out;
  transition: all 0.3s ease;
}

.login-container h2 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #0073b1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

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

.login-container input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
    font-size: 16px; /* evita zoom em dispositivos iOS */
  width: 100%;
  transition: border 0.2s ease-in-out;
}


.login-container input:focus {
  border-color: #007cc0;
  outline: none;
}

.login-container button {
  background: linear-gradient(145deg, #007cc0, #009cde);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-container button:hover {
  background: linear-gradient(145deg, #005f91, #0073b1);
  transform: translateY(-1px);
}

/* Responsivo login */
@media (max-width: 480px) {
  .login-container {
    padding: 20px 15px;
    margin: 20px;
    width: calc(100% - 40px);
  }
}

/* ===== Header ===== */
header {
  background-color: white;
  border-bottom: 5px solid #009cde;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  height: 48px;
}

.logo-area h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0073b1;
}

/* ===== Navegação Principal (Desktop) ===== */
nav.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

nav.navbar button {
  background: linear-gradient(145deg, #005b9e, #007cc0);
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 6px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 6px #00000020;
  transition: all 0.2s ease-in-out;
}

nav.navbar button:hover {
  background: linear-gradient(145deg, #007cc0, #009cde);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px #00000030;
}

nav.navbar button.active {
  background: #002f5d;
  box-shadow: inset 0 0 8px #00000050;
}

/* ===== Conteúdo Principal ===== */
main {
  padding: 30px;
  flex: 1 0 auto;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

.loader {
  font-size: 1rem;
  color: #444;
  margin: 10px 0;
}

/* ===== Tabela (Desktop) ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e5e5;
}

th {
  background-color: #009cde;
  color: white;
  font-weight: bold;
}

tr:hover {
  background-color: #e9f5ff;
  transition: background-color 0.2s ease-in-out;
}

/* ===== Status Colorido ===== */
.status-vermelho {
  background-color: #ffe6e6;
  color: #d10000;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
}

.status-verde {
  background-color: #e6fff0;
  color: #00a04e;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
}

.status-laranja {
  background-color: #fff3e6;
  color: #e67300;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 5px;
}

/* ===== Ações ===== */
.acoes-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.acoes-buttons button {
  background-color: #0073b1;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.acoes-buttons button:hover {
  background-color: #005f91;
}

/* ===== Logs ===== */
details {
  width: 100%;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

details summary {
  font-weight: bold;
  cursor: pointer;
  color: #0073b1;
}

pre {
  width: 100%;
  padding: 10px;
  background: #f8f8f8;
  font-size: 0.9rem;
  color: #222;
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  max-height: 400px;
}

/* ===== Footer ===== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.75rem;
  text-align: center;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .logo-area {
    flex-direction: column;
    align-items: center;
  }

  .logo-area h1 {
    font-size: 1.1rem;
    max-width: 90%;
  }

  nav.navbar {
    display: none !important;
  }

  main {
    padding: 20px;
    padding-bottom: 90px;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    background-color: white;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9rem;
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }

  td:last-child {
    border-bottom: none;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #0073b1;
  }

  .nota-card {
    background-color: white;
    margin: 10px 0;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
  }

  .nota-card strong {
    color: #0073b1;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 2px;
  }

   .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    justify-content: space-around;
    align-items: center;
    padding: 6px 0;
padding-bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 9999;
  }

  .mobile-bottom-nav .tab-button {
    flex: 1;
    text-align: center;
    background: none;
    border: none;
    padding: 8px 0;
    font-size: 12px;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    transition: color 0.2s;
  }

  .mobile-bottom-nav .tab-button span {
    font-size: 0.75rem;
    margin-top: 2px;
  }

  .mobile-bottom-nav .tab-button.active,
  .mobile-bottom-nav .tab-button:hover {
    color: #007cc0;
  }
  .mobile-bottom-nav a {
    text-decoration: none;
  }

  /* Ajuste do botão "Sair" no menu mobile */
.mobile-bottom-nav .tab-button span {
  margin-top: 3px;
}

.mobile-bottom-nav .tab-button#logout-tab {
  color: #444;
}

.mobile-bottom-nav .tab-button#logout-tab.active {
  color: #007cc0;
}


  footer {
    padding-bottom: 100px;
  }

  td button {
    margin: 2px;
    padding: 4px 6px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #007cc0;
    color: white;
    transition: background-color 0.3s;
  }

  td button:hover {
    background-color: #005f91;
  }
}



/*  */

/* ===== Login Moderno Profissional ===== */
.login-body {
  background: linear-gradient(135deg, #e9f3f9, #fafdff);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Inter', sans-serif;
}

.login-container {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.07);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: floatIn 0.6s ease-out;
  border: 1px solid #e0eaf2;
  position: relative;
}

.login-container::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 6px;
  background: #009cde;
  border-radius: 50px;
}

.login-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #002f5d;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

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

.login-container .input-group {
  position: relative;
}

.login-container .input-group input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  font-size: 0.95rem;
  background-color: #fdfdfd;
  transition: all 0.3s ease;
}

.login-container .input-group input:focus {
  border-color: #0073b1;
  box-shadow: 0 0 0 3px rgba(0, 115, 177, 0.15);
  outline: none;
}

.login-container .input-group i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #0073b1;
  font-size: 1rem;
}

.login-container button {
  background: linear-gradient(to right, #0073b1, #00a8e8);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.login-container button:hover {
  background: linear-gradient(to right, #0067a3, #0090cf);
  transform: translateY(-1px);
}

.login-container button i {
  font-size: 1rem;
}

/* Responsivo */
@media (max-width: 480px) {
  .login-container {
    margin: 20px;
    padding: 30px 20px;
  }
}

/* Animação */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/*  */

.filtro-categorias {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.95rem;
  align-items: center;
}
.filtro-categorias label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.modal {
  display: none; /* ← isso é importante */
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}


.modal-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  max-width: 500px;
  width: 90%;
  animation: zoomIn 0.3s ease;
  position: relative;
  font-size: 1rem;
}

.modal-content h3 {
  font-size: 1.2rem;
  color: #002f5d;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-content h3::before {
  content: "📄";
}

.modal-content p {
  margin: 6px 0;
  font-weight: 500;
  color: #1a1a1a;
}

.modal-content .close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.modal-content .close:hover {
  color: #000;
  transform: scale(1.1);
}

/* Animações suaves */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.logout-button {
  background: linear-gradient(145deg, #ff0000, #980606);
  color: white;
  border: none;
  padding: 10px 20px;
  margin-left: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 6px #00000020;
  transition: all 0.2s ease-in-out;
}

.logout-button:hover {
  background: linear-gradient(145deg, #ff0000, #980606);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px #00000030;
}



.filtro-categorias.animada {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: flex-start;
}

.filtro-categorias .filtro-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 40px;
  background-color: #e8f4fb;
  border: 2px solid #007cc0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 124, 192, 0.1);
  cursor: pointer;
  user-select: none;
}

.filtro-categorias .filtro-item:hover {
  background-color: #d4ecfb;
  box-shadow: 0 2px 6px rgba(0, 124, 192, 0.2);
}

.filtro-categorias .filtro-item input[type="checkbox"] {
  display: none;
}

.filtro-categorias .filtro-item span {
  font-weight: 600;
  color: #007cc0;
  padding: 8px 16px;
  border-radius: 30px;
  transition: all 0.2s ease-in-out;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filtro-categorias .filtro-item input[type="checkbox"]:checked + span {
  background-color: #007cc0;
  color: #fff;
  transform: scale(1.03);
  box-shadow: inset 0 1px 4px rgba(255,255,255,0.2);
}

/*  */


.filtros-pesquisa-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.autocomplete-wrapper input {
  padding: 10px 16px;
  font-size: 0.95rem;
  border: 2px solid #009cde;
  border-radius: 25px;
  outline: none;
  width: 260px;
  transition: all 0.3s ease;
  background: #fff;
}

.autocomplete-wrapper input:focus {
  box-shadow: 0 0 0 4px rgba(0, 156, 222, 0.2);
}

/* Mobile: barra abaixo dos filtros */
@media (max-width: 768px) {
  .filtros-pesquisa-container {
    flex-direction: column;
    align-items: stretch;
  }

  .barra-pesquisa input {
    width: 100%;
    max-width: 100%;
  }
}

/*  */

.autocomplete-wrapper {
  position: relative;
  max-width: 350px;
  width: 100%;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #007cc0;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.autocomplete-list li {
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-list li:hover {
  background: #f0f8ff;
}


/*  */


.botao-imprimir {
  background: linear-gradient(to right, #0073b1, #00a8e8);
  color: white;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 156, 222, 0.3);
  transition: background 0.3s, transform 0.2s ease;
  margin: 12px 0;
}

.botao-imprimir:hover {
  background: linear-gradient(to right, #00609e, #0090cf);
  transform: translateY(-1px);
}

/*  *//*  *//*  *//*  */


.btn-imprimir {
  background-color: #007cc0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}
.btn-imprimir:hover {
  background-color: #005f91;
  transform: translateY(-1px);
}

.botao-pdf {
  background-color: #007cc0;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.botao-pdf:hover {
  background-color: #005f91;
}

/* Estilo da barra de paginação */
#paginacao {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: center;
}

#paginacao button {
  border: 1px solid #007cc0;
  background-color: white;
  color: #007cc0;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

#paginacao button:hover {
  background-color: #007cc0;
  color: white;
}

#paginacao button.active {
  background-color: #007cc0;
  color: white;
  box-shadow: 0 0 5px rgba(0, 124, 192, 0.5);
}

.seletor-pagina {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
}

.seletor-pagina select {
  padding: 6px 10px;
  border: 2px solid #007cc0;
  border-radius: 8px;
  background-color: #f9f9f9;
  color: #007cc0;
  font-weight: bold;
  font-size: 15px;
  outline: none;
  transition: 0.2s ease;
}

.seletor-pagina select:hover {
  background-color: #e6f4ff;
  cursor: pointer;
}


.titulo-secao {
  font-size: 24px;
  font-weight: 800;
  color: #002b4d;
  margin-top: 20px;
  margin-bottom: 10px;
  border-bottom: 3px solid #00aaff;
  display: inline-block;
  padding-bottom: 5px;
  letter-spacing: 0.5px;
}
