html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

.top-bar {
  background-color: #4da7ec;
  padding: 10px;
  font-size: 28px;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
}

.clinic-header {
  border: 3px solid #4da7ec;
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  box-sizing: border-box;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin-left: 30px;
  margin-right: 30px;
}

.sub-clinic-header,
.sub-clinic-header-2 {
  box-sizing: border-box;
  padding: 10px;
}

.sub-clinic-header {
  width: 48%;
  text-align: left;
  font-family: "Regular";
  font-size: 20px;
}

.sub-clinic-header-2 {
  width: 48%;
  text-align: right;
  font-family: "Regular";
  font-size: 16px;
}

.petshop-name {
  font-size: 24px;
  font-family: "SemiBold";
}

.certificate-title {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
  font-family: "Regular";
  font-size: 12px;
}

.info-grid {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: left;
  border-radius: 15px;
  box-sizing: border-box;
  margin-left: 30px;
  margin-right: 30px;
  flex-grow: 1;
}

.info-grid table {
  width: 100%;
  border-collapse: collapse;
}

.info-grid table td {
  border-bottom: 1px solid #e6e6e6;
  padding-top: 12px;
}

.info-grid table td:nth-child(2) {
  width: 50%;
}

.vaccines-table {
  padding: 10px;
  text-align: left;
  border-radius: 12px;
  box-sizing: border-box;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 24px;
  flex-grow: 1;
  overflow: hidden;
}

.vaccines-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
}

.vaccines-table h3 {
  margin-left: 15px;
}

.vaccines-table table thead {
  background-color: #f4f4f4;
}

.vaccines-table table th {
  padding: 10px;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

.vaccines-table table td {
  border-bottom: 1px solid #e6e6e6;
  padding: 10px;
}

.vaccines-table table tr:first-child th:first-child {
  border-top-left-radius: 12px;
}

.vaccines-table table tr:first-child th:last-child {
  border-top-right-radius: 12px;
}

.vaccines-table table tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

.vaccines-table table tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

.observations {
  background-color: #f4f4f4;
  padding: 10px;
  text-align: left;
  border-radius: 12px;
  box-sizing: border-box;
  margin-left: 30px;
  margin-right: 30px;
  margin-top: 14px;
  flex-grow: 1;
  overflow: hidden;
}

.observations h3 {
  margin-left: 15px;
}

.observation-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.page-break-control {
  flex-grow: 1;
  page-break-inside: avoid;
}

/* Container principal */
.main-content {
  padding-bottom: 20px;
  flex-grow: 1; /* Ocupa o espaço disponível */
  page-break-inside: avoid; /* Evita que o conteúdo seja dividido entre páginas */
}

/* Assinatura e Verificação */
.verification {
  page-break-inside: avoid; /* Evita que sejam divididos entre páginas */
}

.verification {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 8pt;
  page-break-after: avoid;
  page-break-inside: avoid;
}
