Lancamentos de compras

by thvinic

HTML

<!DOCTYPE html>
<html lang="pt-BR">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>Lançamentos de Compras por Mês</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
      max-width: 900px;
      background: #fafaf5;
    }
    h1 {
      text-align: center;
      color: #2c3e50;
    }
    form {
      margin-bottom: 20px;
      background: #ecf0f1;
      padding: 15px;
      border-radius: 8px;
    }
    label {
      display: block;
      margin-top: 10px;
      font-weight: bold;
    }
    input[type="text"],
    input[type="number"],
    input[type="month"] {
      width: 100%;
      padding: 8px;
      margin-top: 5px;
      box-sizing: border-box;
      border-radius: 4px;
      border: 1px solid #bdc3c7;
    }
    input[type="checkbox"] {
      margin-left: 5px;
      transform: scale(1.2);
    }
    button {
      margin-top: 15px;
      background-color: #2980b9;
      color: white;
      border: none;
      padding: 10px 15px;
      font-size: 16px;
      border-radius: 5px;
      cursor: pointer;
    }
    button:hover {
      background-color: #1c5980;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 15px;
    }
    th, td {
      border: 1px solid #bdc3c7;
      padding: 10px;
      text-align: left;
      vertical-align: middle;
    }
    th {
      background-color: #34495e;
      color: white;
    }
    .paga-sim {
      color: green;
      font-weight: bold;
    }
    .paga-nao {
      color: red;
      font-weight: bold;
    }
    tr.paga {
      background-color: rgba(39, 174, 96, 0.15);
    }
    tr.nao-paga {
      background-color: rgba(192, 57, 43, 0.15);
    }
    #balancoCompra {
      margin-top: 20px;
      font-size: 18px;
      font-weight: bold;
      text-align: right;
      color: #2c3e50;
    }
    /*...