/* =========================
   BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  margin: 32px;
  background: #f7f8fa;
  color: #222;
}

/* =========================
   TÍTULO
========================= */
h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* =========================
   BOTÃO VOLTAR
========================= */
.btn-voltar {
  position: absolute;
  top: 24px;
  right: 24px;
  text-decoration: none;
  background: #1f2937;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-voltar:hover {
  background: #111827;
}

/* =========================
   FORMULÁRIO
========================= */
.form {
  display: grid;
  grid-template-columns: 2fr 2fr auto;
  gap: 12px;
  margin-bottom: 16px;
}

.form input,
.form select {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: #2563eb;
}

/* BOTÃO ADICIONAR */
.form button {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.form button:hover {
  background: #1d4ed8;
}

/* =========================
   BOTÕES DE AÇÃO
========================= */
.acoes {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.acoes button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}

.acoes button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

/* =========================
   TABELA
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

thead {
  background: #e5e7eb;
}

th {
  padding: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

td {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

/* LINHAS ALTERNADAS */
tbody tr:nth-child(even) {
  background: #f9fafb;
}

/* =========================
   IMPRESSÃO
========================= */
@media print {

  body {
    background: #fff;
    margin: 12mm;
  }

  .form,
  .acoes,
  .btn-voltar {
    display: none !important;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  table {
    box-shadow: none;
    border-radius: 0;
  }

  th, td {
    border: 1px solid #000;
    font-size: 12px;
  }

  thead {
    background: #f0f0f0;
  }
}
/* =========================
   HEADER / LOGO
========================= */
.header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;

  padding: 24px 30px;
  margin-bottom: 25px;

  border-bottom: 2px solid #000;
}

/* LOGO */
.logo {
  height: 60px;          /* logo maior */
  margin-right: 10px;
}

/* TEXTO DO CABEÇALHO */
.header-text {
  text-align: center;
}

.header-text h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.header-text span {
  font-size: 14px;
  opacity: 0.85;
}


/* =========================
   IMPRESSÃO – LOGO
========================= */
@media print {
  .logo {
    height: 65px;
  }

  .header {
    border-bottom: 1px solid #000;
    margin-bottom: 12px;
  }

  .header-text span {
    color: #000;
  }
}

/* =========================
   BOTÃO REMOVER
========================= */
.col-remover {
  width: 40px;
  text-align: center;
}

.btn-remover {
  background: transparent;
  border: none;
  color: #dc2626;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.btn-remover:hover {
  color: #991b1b;
}

/* Não imprimir botão remover */
@media print {
  .btn-remover,
  .col-remover {
    display: none;
  }
}
@media print {

  /* esconder a coluna APAGAR (3ª coluna) */
  table th:nth-child(3),
  table td:nth-child(3) {
    display: none !important;
  }

}
