body {
  font-family: 'Inter', sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  padding: 20px;
  margin: 0;
  font-size: 18px;
}

.tabela-container {
  max-width: 960px;
  margin: 0 auto;
}

.informacoes-equipamento {
  text-align: center;
  margin-top: 260px;
  margin-bottom: 40px;
}

.informacoes-equipamento p {
  font-size: 1.6em;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: block;
  max-width: 100%;
  margin: 6px 0;
  line-height: 1.4;
}

.itens-reposicao {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 60px;
}

.logo {
  position: fixed;
  top: 25px;
  left: 20px;
  width: 420px;
  max-width: 90%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.15) rotate(1deg);
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

.botao-imprimir {
  position: fixed;
  top: 35px;
  right: 25px;
  background: linear-gradient(135deg, #28a745, #218838);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

.botao-imprimir:hover {
  background: linear-gradient(135deg, #218838, #1e7e34);
  transform: scale(1.05);
}

.botao-imprimir svg {
  width: 24px;
  height: 24px;
  fill: white;
}

h2 {
  font-size: 2.7rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: default;
}

h2:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.4));
}

p {
  font-size: 28px !important;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  display: inline-block;
  max-width: 100%;
}

.wrapper-tabela {
  overflow-x: auto;
  width: 100%;
  margin-bottom: 32px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  background-color: #161b29;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
  width: 100%;
  min-width: 500px;
}

thead tr {
  background-color: #212936;
}

th, td {
  padding: 16px 22px;
  text-align: center;
  font-size: 28px;
  color: #c9d1d9;
  border-bottom: 1px solid #2c3444;
  white-space: nowrap;
}

th {
  font-weight: 600;
  color: #f0f6fc;
}

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

.data-acesso, .contador-acessos {
  text-align: center;
  margin-top: 40px;
  font-size: 22px;
  color: #c9d1d9;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  white-space: normal;
}

.tabela-quebra td {
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  .logo {
    width: 140px;
  }

  .botao-imprimir {
    top: 90px;
    right: 10px;
    font-size: 18px;
    padding: 10px 14px;
  }

  h2 {
    font-size: 1.6em;
  }

  th, td {
    font-size: 16px;
    padding: 12px 16px;
  }

  table {
    min-width: 100%;
  }
}

@media print {
  .botao-imprimir,
  .contador-acessos {
    display: none;
  }

  body {
    background: none !important;
    color: #000 !important;
    margin: 0;
    padding: 0;
    font-size: 12pt;
  }

  .logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 150px !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 80px !important;
    filter: none !important;
    margin: 0;
    padding: 0;
    transform: none !important;
  }

  .tabela-container {
    max-width: 100% !important;
    margin: 120px auto 0 auto !important;
  }

  .informacoes-equipamento {
    margin-top: 100px !important;
    margin-bottom: 40px;
    text-align: center;
  }

  .itens-reposicao {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    text-align: center;
  }

  .informacoes-equipamento p {
    font-size: 14pt !important;
  }

  table {
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  thead tr {
    background-color: #eaeaea !important;
  }

  th, td {
    color: #000 !important;
    font-size: 12pt !important;
    padding: 8px 10px !important;
    border: 1px solid #ccc !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  .data-acesso {
    font-size: 14px !important;
    margin-top: 20px !important;
    color: #333 !important;
    text-align: center;
  }
}
