@media (max-width: 700px) {
  #relatorio-mes {
    max-width: 98vw !important;
    padding: 1.2rem 0.5rem 1.7rem 0.5rem !important;
  }
  .print-table th, .print-table td {
    font-size: 0.98rem !important;
    padding: 0.35rem 0.3rem !important;
  }
  .print-section-title {
    font-size: 1.05rem !important;
  }
  .print-saldo {
    font-size: 1.05rem !important;
  }
}
@media print {
  body {
    background: #fff !important;
  }
  .no-print, .no-print * {
    display: none !important;
  }
  .container, .section {
    box-shadow: none !important;
    background: #fff !important;
    color: #222 !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }
  .header, .container h2 {
    color: #1976d2 !important;
    text-align: center !important;
    background: #fff !important;
    text-shadow: none !important;
    font-size: 2.2rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: 1px !important;
  }
  #relatorio-mes {
    max-width: 800px !important;
    margin: 0 auto !important;
    font-size: 1.15rem !important;
    color: #222 !important;
    border: 1.5px solid #1976d2 !important;
    border-radius: 10px !important;
    padding: 2.5rem 2.5rem 2rem 2.5rem !important;
    box-sizing: border-box !important;
  }
  .print-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.2rem !important;
  }
  .print-table th, .print-table td {
    border: 1px solid #b3c6e0 !important;
    padding: 0.5rem 0.7rem !important;
    text-align: left !important;
    font-size: 1.08rem !important;
  }
  .print-table th {
    background: #e3f0fc !important;
    color: #1976d2 !important;
    font-weight: 700 !important;
  }
  .print-table tfoot td {
    font-weight: 700 !important;
    color: #1976d2 !important;
    background: #f7fbff !important;
  }
    .print-section-title {
      color: #fff !important;
      background: linear-gradient(90deg, #1976d2 0%, #6dd5ed 100%) !important;
      font-size: 1.18rem !important;
      font-weight: 700 !important;
      margin: 1.2rem 0 0.7rem 0 !important;
      text-align: left !important;
      padding: 0.5rem 1rem !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 8px #1976d220 !important;
      letter-spacing: 1px !important;
      border-left: 6px solid #1976d2 !important;
      display: inline-block !important;
    }
@media print {
  .print-section-title {
    color: #1976d2 !important;
    background: #e3f0fc !important;
    border-left: 6px solid #1976d2 !important;
    box-shadow: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0 !important;
    display: block !important;
  }
}
  .print-total {
    font-weight: 700 !important;
    color: #1976d2 !important;
    font-size: 1.13rem !important;
    margin-top: 0.7rem !important;
  }
  .print-saldo {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    color: #1976d2 !important;
    text-align: right !important;
  }
}
.home-btn {
  background: linear-gradient(90deg, #1976d2 0%, #6dd5ed 100%);
  color: #fff;
  border: none;
  padding: 1.1rem 1.7rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.13);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  border-bottom: 3px solid #1976d2;
  letter-spacing: 0.5px;
}
.home-btn:hover {
  background: linear-gradient(90deg, #16305a 0%, #1976d2 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.18);
}
.sair-btn {
  background: linear-gradient(90deg, #e53935 0%, #ffb199 100%);
  color: #fff;
  border-bottom: 3px solid #b71c1c;
}
.sair-btn:hover {
  background: linear-gradient(90deg, #b71c1c 0%, #e53935 100%);
}
.page-title {
  color: #1976d2;
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
}

.section {
  background: #f7fbff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #1976d220;
  padding: 1.2rem 1rem;
  margin-bottom: 1.2rem;
}

.summary-label {
  color: #1976d2;
  font-weight: 500;
}

.summary-value {
  color: #222;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.input-group {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.8;
}

.input-label {
  position: absolute;
  left: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  background: transparent;
  pointer-events: none;
  transition: 0.2s;
}

.input:focus + .input-label,
.input:not(:placeholder-shown) + .input-label {
  top: -0.7rem;
  left: 2rem;
  font-size: 0.85rem;
  color: #1976d2;
  background: #fff;
  padding: 0 0.2rem;
}

body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #1e3c72 0%, #2a5298 50%, #6dd5ed 100%);
  background-size: 200% 200%;
  animation: gradientMove 8s ease-in-out infinite;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

@keyframes gradientMove {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header {
  background: rgba(255,255,255,0.18);
  color: #1e3c72;
  padding: 2.2rem 1rem 1.2rem 1rem;
  text-align: center;
  font-size: 2.7rem;
  font-weight: bold;
  letter-spacing: 2px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.12);
  backdrop-filter: blur(6px);
  text-shadow: 0 2px 8px #fff8;
}

.container {
  max-width: 420px;
  width: 100%;
  margin: 0 auto 2.5rem auto;
  background: rgba(255,255,255,0.22);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.18);
  padding: 2.5rem 2rem 2.7rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  backdrop-filter: blur(8px);
}

.container h2 {
  color: #1e3c72;
  margin-bottom: 1.5rem;
  font-size: 1.7rem;
  font-weight: 600;
}

.button {
  background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  border: none;
  padding: 1rem 1.7rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.13);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  outline: none;
  border-bottom: 3px solid #16305a;
}

.button:hover {
  background: linear-gradient(90deg, #16305a 0%, #1e3c72 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(30, 60, 114, 0.18);
}

.input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.3rem;
  border: 1.7px solid #b3c6e0;
  border-radius: 8px;
  font-size: 1.13rem;
  background: rgba(255,255,255,0.7);
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #1e3c7210;
}

.input:focus {
  border: 1.7px solid #1e3c72;
  outline: none;
  box-shadow: 0 4px 16px #1e3c7220;
}

.link {
  color: #1e3c72;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.link:hover {
  color: #2a5298;
  text-decoration: underline;
}

.input-group {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.8;
}

.input-label {
  position: absolute;
  left: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  background: transparent;
  pointer-events: none;
  transition: 0.2s;
}

.input:focus + .input-label,
.input:not(:placeholder-shown) + .input-label {
  top: -0.7rem;
  left: 2rem;
  font-size: 0.85rem;
  color: #1e3c72;
  background: #fff;
  padding: 0 0.2rem;
}

.page-title {
  color: #1e3c72;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px #fff8;
}

.section {
  background: rgba(255,255,255,0.55);
  border-radius: 14px;
  box-shadow: 0 2px 12px #1e3c7212;
  padding: 1.3rem 1.1rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(4px);
}

.summary-label {
  color: #1e3c72;
  font-weight: 600;
}

.summary-value {
  color: #222;
  font-size: 1.15rem;
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

@media (max-width: 500px) {
  .container {
    max-width: 98vw;
    padding: 1.2rem 0.5rem 1.7rem 0.5rem;
  }
  .header {
    font-size: 1.3rem;
    padding: 1.2rem 0.5rem 0.7rem 0.5rem;
  }
}
