body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  margin: 0;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  color: #1a73e8;
  margin-bottom: 20px;
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

input[type="text"], input[type="number"], select {
  padding: 6px 10px;
  width: calc(100% - 22px);
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

button {
  padding: 6px 12px;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 5px;
  font-size: 14px;
}

button:hover {
  background-color: #1558b0;
}

.lista, .listaPedido {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #eef2f7;
  padding: 10px;
  border-radius: 8px;
  min-height: 50px;
}

.itemProduto {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 120px;
}

.itemProduto input[type="number"] {
  width: 60px;
  margin-left: 5px;
}

#resumoPedido {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#resumoPedido th, #resumoPedido td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
}

#resumoPedido th {
  background: #1a73e8;
  color: #fff;
}

.alerta {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

#grafico {
  margin-top: 10px;
}

.barraContainer {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.barraFundo {
  flex: 1;
  height: 20px;
  background: #ddd;
  border-radius: 10px;
  margin-left: 10px;
  overflow: hidden;
}

.barra {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.3s;
}

.ok { background: #e0f7e0; }
.sobra { background: #fff3cd; }
.faltando { background: #f8d7da; }