body {
  padding: 10px;
}

.title {
  color: #5C6AC4;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
}

main {
  padding-bottom: 70px;
}

.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

#campanhaTitle {
  font-size: 24px;
  color: #2f4858;
  margin-top: 25px;
  margin-bottom: 0;
  /* Ajustado para remover espaço extra abaixo do título */
  text-align: center;
}

.subtitle {
  text-align: center !important;
  /* Garante centralização em todas as resoluções */
  margin-top: 20px;
  /* Distância fixa de 20px abaixo do título */
  margin-bottom: 20px;
}

.legend {
  color: #2f4858;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 5px;
  margin-bottom: 20px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #2f4858;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.campaign-select {
  position: relative;
  width: 250px;
}

.campaign-select select {
  width: 100%;
  padding: 10px 30px 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  color: #2f4858;
  appearance: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.campaign-select select:hover,
.campaign-select select:focus {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  outline: none;
}

.campaign-select::after {
  content: '\f078';
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #2f4858;
  pointer-events: none;
}

.date-container {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
  background: #f4f4f4;
  padding: 10px;
  border-top: 1px solid #dde3ec;
}

.date-container input[type="date"] {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #2f4858;
  border-radius: 6px;
  background: #fff;
  color: #2f4858;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
  display: inline-block;
}

.global-progress-box {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 10px;
}

.global-progress-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-progress-label {
  font-size: 14px;
  font-weight: bold;
  color: #2f4858;
}

.global-progress-bar {
  flex: 1;
  background-color: #e0e0e0;
  height: 10px;
  overflow: hidden;
}

.global-progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ff3f34, #0be881);
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.global-progress-percentage {
  font-size: 14px;
  font-weight: bold;
  color: #009432;
}

.items-table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
  margin-bottom: 0;
}

.items-table th,
.items-table td {
  border: 1px solid #dde3ec;
  padding: 5px;
  text-align: center;
  font-size: 14px;
}

.items-table th {
  background: #009432;
  color: #ffffff;
}

.items-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.faltam {
  color: #EA2027;
  font-weight: bold;
}

.ok {
  color: #009432;
  font-weight: bold;
}

.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.card {
  flex: 1;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  padding: 15px 13px 0 13px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card>*:last-child {
  margin-bottom: 0;
}

.card .item-header {
  background-color: #f4f4f4;
  padding: 8px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-align: center;
  border: 1px solid #dde3ec;
}

.card .item-header span {
  display: inline-block;
}

.card .item-header span strong {
  font-weight: bold;
}

.item-summary {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  align-items: stretch;
  margin-bottom: 10px;
  line-height: 1;
  overflow: hidden;
}

.item-summary span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  overflow-wrap: break-word;
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 5px;
  border-top: 1px solid #dde3ec;
  padding: 9px 0;
  line-height: 1;
}

.progress-bar {
  flex: 1;
  background-color: #e0e0e0;
  height: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #ff3f34, #0be881);
  width: 0%;
  transition: width 0.5s ease-in-out;
}

.progress-percentage {
  font-size: 14px;
  font-weight: bold;
  color: #009432;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.box-falta {
  background-color: #EA2027;
  color: #fff;
  padding: 4px 3px;
  border-radius: 3px;
  width: 100%;
}

.box-estoque {
  border: 1px solid #ffd32a;
  background-color: #ffd32a;
  color: #000;
  padding: 4px 3px;
  border-radius: 3px;
  width: 100%;
}

.box-meta {
  background-color: #009432;
  color: #fff;
  padding: 4px 3px;
  border-radius: 3px;
  width: 100%;
}

.report-table {
  width: 100%;
  background: #ffffff;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.report-table th,
.report-table td {
  border: 1px solid #dde3ec;
  padding: 10px;
  font-size: 14px;
  text-align: left;
}

.report-table th {
  background: #009432;
  color: #ffffff;
}

.report-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

@media (max-width: 600px) {
  .summary-cards {
    flex-direction: column;
  }

  .report-table th,
  .report-table td {
    font-size: 12px;
  }

  .campaign-select {
    width: 100%;
  }
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.maps-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* Proporção 16:9 */
  margin-top: 15px;
}

.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #1e272e;
  border-top: 1px solid #dde3ec;
  z-index: 1000;
  overflow-x: hidden;
}

.menu-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px;
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.menu-bar a {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: normal;
  padding: 10px 15px;
  background: #2e3842;
  border: 1px solid #fff3;
  border-radius: 5px;
  transition: background 0.3s, border 0.3s;
  min-width: 80px;
}

.menu-bar a:hover,
.menu-bar a.active {
  background: #ffd32a;
  color: #1e272e;
  border: 1px solid #1e272e;
}

.menu-bar::-webkit-scrollbar {
  display: none;
}

.menu-bar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.donor-container {
  width: 100%;
  background: #ffffff;
  padding: 10px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.donor-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.donor-col {
  flex: 1;
  min-width: 120px;
}

.donor-col label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #536387;
}

.donor-col input[type="text"],
.donor-col input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  font-size: 14px;
}

.add-donor {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #000;
  margin-top: 10px;
}

.add-donor svg {
  margin-right: 5px;
  fill: #000;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.button-row button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.save-button {
  background-color: #2E3842;
  color: #fff;
}

.add-campanha-btn,
#salvarCampanhaBtn {
  background-color: #2E3842;
  color: #fff;
}

.logout-btn {
  background-color: #EA2027;
  color: #fff;
}

.login-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #fff;
  text-align: center;
}

.login-container .login-logo {
  margin-bottom: 20px;
}

.login-container .login-logo img {
  width: 250px;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  font-size: 16px;
}

.login-container button {
  background-color: #3c40c6;
  color: #fff;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.campanha-form {
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  background: #ffffff;
}

.campanha-form input[type="text"] {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  font-size: 16px;
}

.campanha-form button {
  background-color: #ffd32a;
  color: #1e272e;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.campanha-list {
  margin-top: 15px;
}

.campanha-list button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  text-align: left;
  background: #f4f4f4;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  cursor: pointer;
}

/* Estilo para <hr /> */
hr {
  border: 0;
  border-top: 1px solid #dde3ec;
  margin: 20px 0;
}

/* Estilo para marcadores de listas */
ul.marker-custom li {
  margin-bottom: 10px;
}

ul.marker-custom li::marker {
  color: #009432;
  /* Cor consistente com outros elementos do projeto */
}

/* Estilo para títulos fora de parágrafos */
.section-title {
  font-size: 24px;
  color: #2f4858;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  margin-top: 25px;
  /* Adicionado para padronizar o espaçamento no topo */
}

/* Estilo para quebra de palavras */
.break-words {
  word-break: break-word;
}

/* Ajuste específico para a seção #informacoes */
#informacoes .legend {
  font-size: 16px;
}

/* Linha verde quando estiver OK */
.linha-ok {
  background-color: #c8f7c5 !important;
}