body {
  font-family: Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.light {
  background: #f8fafc;
  color: #0f172a;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #334155;
  color: white;
}

body.light button {
  background: #e2e8f0;
  color: #0f172a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

/* Correção dos dropdowns e inputs */
input,
select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: transparent;
  color: inherit;
}

body.dark select,
body.dark input,
body.dark select option {
  background-color: #1e293b;
  color: #e5e7eb;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #475569;
  text-align: center;
}

.total {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
}

#listaOfertas {
    position: fixed; /* Ou sticky */
    left: 0;
    top: 0;
    width: 300px;
    height: 100vh;
    overflow-y: auto;
    /* Isso garante que ela fique "colada" e não empurre o resto de forma errada */
}
