:root {
  font-family: Arial, sans-serif;
  color: #1b1b1b;
}

body {
  margin: 0;
  background: #f4f6f8;
}

header,
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-btn {
  border: 1px solid #c3c3c3;
  background: white;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border-radius: 8px;
}

.tab-btn.active {
  background: #003d7a;
  color: #fff;
  border-color: #003d7a;
}

.tab-panel {
  display: none;
}

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

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  gap: 0.25rem;
}

input,
button,
textarea {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid #c3c3c3;
  border-radius: 8px;
}

button {
  cursor: pointer;
}

button.primary {
  background: #0f6d2f;
  color: white;
  border-color: #0f6d2f;
}

.sub-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid #ddd;
}

.row-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  background: white;
}

th,
td {
  border: 1px solid #cfd4d9;
  padding: 0.45rem;
  text-align: left;
  font-size: 0.9rem;
}

.print-sheet {
  background: white;
  margin-top: 1rem;
  border: 1px solid #ddd;
  padding: 1rem;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.logo-wrap img {
  width: 120px;
  height: auto;
}

.notes-box {
  border: 1px dashed #777;
  min-height: 80px;
}

.lacre {
  margin-top: 1.5rem;
  font-weight: bold;
}

@media print {
  @page {
    size: A4 landscape;
    margin: 12mm;
  }

  body {
    background: white;
  }

  header,
  .tabs,
  #relatorio .sub-card,
  #zles002,
  #produtos-estrela {
    display: none !important;
  }

  #relatorio {
    display: block !important;
  }

  .print-sheet {
    border: none;
    margin: 0;
    padding: 0;
  }
}

.hint {
  color: #555;
  font-size: 0.85rem;
}

.resumo-cabecalho {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #eef5ff;
  border: 1px solid #c7dbff;
  border-radius: 8px;
}
