/* UNIMED ITAJUBA | CONSULTA DE PROTOCOLO - LAYOUT RECONSTRUIDO */
.consulta-page {
  background: #f4f7f6 !important;
  color: #263b35;
  font-family: "Source Sans Pro", Arial, sans-serif;
  min-height: 100vh;
}
.consulta-page .consulta-container {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 26px 34px 30px;
}
/* CABEÇALHO */
.consulta-page .consulta-header {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 28px;
  background: transparent !important;
  border: 0 !important;
  padding: 8px 8px 22px !important;
  margin: 0 0 18px !important;
  min-height: 90px;
  position: relative;
}

.consulta-page .consulta-logo {
  position: static !important;
  left: auto !important;
  flex: 0 0 155px;
  margin: 0 !important;
}

.consulta-page .consulta-logo img {
  display: block;
  width: 100%;
  max-width: 155px;
  height: auto;
}

.consulta-page .consulta-heading {
  position: static !important;
  left: auto !important;
  flex: 1;
  min-width: 0;
  text-align: left !important;
  border: 0 !important;
  padding: 0 !important;
}

.consulta-page .consulta-heading h1 {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 700;
  color: #174c3b;
  margin: 0 0 5px;
}

.consulta-page .consulta-heading p {
  font-size: 15px;
  color: #667a70;
  margin: 0;
}

.consulta-page .consulta-card {
  box-sizing: border-box;
  background: #fff;
  max-width: 620px;
  margin: 12px auto 28px;
  padding: 34px 40px;
  border: 1px solid #e2ebe6;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(25, 75, 55, 0.07);
  text-align: center;
}
.consulta-card-icon {
  width: 58px;
  height: 58px;
  background: #e8f5ef;
  color: #009b63;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 25px;
}
.consulta-card h2 {
  color: #174c3b;
  font-size: 23px;
  font-weight: 700;
  margin: 0 0 10px;
}
.consulta-description {
  color: #71817b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 25px;
}
.consulta-form {
  text-align: left;
}
.consulta-input-group {
  margin-bottom: 18px;
}
.consulta-input-group label {
  display: block;
  color: #29483b;
  font-size: 14px !important;
  font-weight: 700;
  margin-bottom: 8px;
}
.consulta-input-wrapper {
  position: relative;
}
.consulta-input-wrapper > i {
  position: absolute;
  left: 16px;
  top: 17px;
  color: #8da49a;
  font-size: 16px;
  z-index: 2;
}
.consulta-input-wrapper input {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  padding: 10px 15px 10px 45px;
  border: 1px solid #cbded3;
  border-radius: 9px;
  font-size: 16px;
  box-shadow: none;
}
.consulta-input-wrapper input:focus {
  border-color: #009b63;
  box-shadow: 0 0 0 3px rgba(0, 155, 99, 0.1);
  outline: 0;
}
.consulta-button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 9px;
  background: #009b63;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.consulta-button:hover,
.consulta-button:focus {
  background: #008454;
  color: #fff;
}
.consulta-help {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  text-align: left;
  background: #f1f8f4;
  border-radius: 10px;
  padding: 16px;
  margin-top: 26px;
}
.consulta-help > i {
  color: #009b63;
  font-size: 20px;
  margin-top: 2px;
}
.consulta-help strong {
  display: block;
  color: #345346;
  font-size: 14px !important;
  margin-bottom: 5px;
}
.consulta-help p {
  color: #71817b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 5px;
}
.consulta-help a {
  color: #008d59;
  font-size: 15px;
  font-weight: 700;
}
.consulta-help span {
  color: #8a9891;
  font-size: 12px;
  margin-left: 7px;
}
/* Resultado da consulta: painel único, com conteúdo condicional */
#protocol-check-info.protocol-check-info {
  box-sizing: border-box;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0 0 18px;
  box-shadow: none;
  color: #263b35;
}
#protocol-check-info .protocol-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}
#protocol-check-info .protocol-back-wrap {
  float: none !important;
  margin-left: auto;
}
#protocol-check-info .protocol-back-wrap .btn {
  border: 1px solid #009b63;
  background: #fff;
  color: #087c50;
  border-radius: 8px;
  padding: 8px 19px;
  font-weight: 700;
  box-shadow: none;
}
#protocol-check-info .protocol-summary-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2ebe6;
  border-radius: 15px;
  padding: 24px 28px 20px;
  margin: 0 0 22px;
  box-shadow: 0 5px 18px rgba(25, 75, 55, 0.06);
}
#protocol-check-info #first-line {
  padding: 0 180px 14px 0;
  border-bottom: 1px solid #e8efeb;
  margin: 0 0 10px;
  position: relative;
}
#protocol-check-info #first-line h3 {
  font-size: 24px;
  line-height: 1.3;
  color: #173f32;
  font-weight: 700;
  margin: 0;
}
#protocol-check-info .protocol-status-badge {
  position: absolute;
  right: 0;
  top: 0;
  background: #fff0c9;
  color: #956000;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
#protocol-check-info #password-line,
#protocol-check-info #second-line,
#protocol-check-info #beneficiary-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0;
}
#protocol-check-info #password-line > div,
#protocol-check-info #second-line > div,
#protocol-check-info #beneficiary-line > div {
  width: 50%;
  padding: 0 12px 0 0;
}
#protocol-check-info h5 {
  font-size: 17px !important;
  color: #6c7e75;
  line-height: 1.55;
  margin: 9px 0;
}
#protocol-check-info h5 strong {
  color: #203d31;
  font-weight: 700;
}
#protocol-check-info .orange-color {
  display: inline-block;
  background: #fff0c9;
  color: #956000;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}
#protocol-check-info #sector-guide {
  margin: 0 0 22px;
}
#protocol-check-info .protocol-section-title {
  font-size: 21px;
  color: #174c3b;
  font-weight: 700;
  margin: 0 0 12px;
  padding-left: 3px;
}
#protocol-check-info .protocol-section-title i {
  color: #009b63;
  margin-right: 8px;
}
#protocol-check-info [id^="guide-line-"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2ebe6;
  border-radius: 10px;
  margin: 8px 0;
  padding: 9px 16px;
  box-shadow: 0 3px 10px rgba(25, 75, 55, 0.035);
}
#protocol-check-info [id^="guide-line-"] > div {
  padding: 0 13px;
  border-right: 1px solid #e8efeb;
  min-height: 40px;
  display: flex;
  align-items: center;
}
#protocol-check-info [id^="guide-line-"] > div:last-child {
  border-right: 0;
}
#protocol-check-info [id^="guide-line-"] h5 {
  margin: 4px 0;
  font-size: 13px;
  color: #66776f;
}
#protocol-check-info [id^="guide-line-"] h5 strong {
  color: #203d31;
}
#protocol-check-info #person-communication {
  display: flex;
  flex-wrap: wrap;
  margin: 20px -7px 14px;
}
#protocol-check-info #person-communication .communication-action {
  padding: 0 7px;
  margin: 0 0 12px;
}
#protocol-check-info #person-communication .communication-action a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  background: #eaf6f0;
  border: 1px solid #cce9d9;
  border-radius: 12px;
  padding: 15px 22px;
  color: #087c50;
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(25, 75, 55, 0.04);
}
#protocol-check-info #person-communication .communication-action a:hover {
  background: #def1e7;
  text-decoration: none;
}
#protocol-check-info #person-communication .communication-action a > i {
  font-size: 29px;
  width: 42px;
  text-align: center;
}
#protocol-check-info #person-communication .communication-action a span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#protocol-check-info #person-communication .communication-action strong {
  font-size: 17px;
  color: #174c3b;
}
#protocol-check-info #person-communication .communication-action small {
  font-size: 12px;
  color: #557267;
}
#protocol-check-info > hr {
  display: none;
}
#protocol-check-info #attachement {
  width: 100%;
  float: none;
  /* padding: 0; */
  margin: 0 0 16px;
}
#protocol-check-info #attachement h4 {
  font-size: 0;
  margin: 0 0 10px;
}
#protocol-check-info #attachement h4:before {
  content: "Arquivos para download";
  font-size: 18px;
  color: #174c3b;
  font-weight: 700;
}
#protocol-check-info #attachement ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
#protocol-check-info #attachement li {
  margin: 7px 0;
}
#protocol-check-info #attachement li.list-group-item-info {
  display: block;
  background: #e5f4fc;
  border: 1px solid #c6e5f6;
  border-radius: 8px;
  color: #174d78;
  padding: 12px 15px;
  font-size: 13px;
}
#protocol-check-info #attachement li a {
  white-space: normal;
  text-align: left;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #dce9e2;
  color: #087c50;
  padding: 9px 13px;
}
#protocol-check-info #person-observation {
  margin: 18px 0 8px;
}
#protocol-check-info #person-observation:before {
  content: "Histórico de mensagens";
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: #174c3b;
  margin: 0 0 12px;
}
#protocol-check-info .article-obs-person-check {
  box-sizing: border-box;
  background: #f1f9f5;
  border: 1px solid #cfe8da;
  border-left: 5px solid #009b63;
  border-radius: 11px;
  margin: 12px 0;
  padding: 19px 22px;
  box-shadow: 0 3px 12px rgba(25, 75, 55, 0.04);
}
#protocol-check-info .article-obs-person-check .body-article-obs {
  color: #29483b;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#protocol-check-info .article-obs-person-check .blockquote-reverse {
  border: 0;
  border-top: 1px solid #dcece3;
  margin: 14px 0 0;
  padding: 10px 0 0;
  text-align: right;
}
#protocol-check-info .article-obs-person-check .blockquote-reverse footer {
  color: #71817b;
  font-size: 12px;
}
.article-obs-person-check .blockquote-reverse cite {
  color: #087c50;
  font-style: normal;
  font-weight: 700;
}
#protocol-check-info .article-obs-person-check .obs-title {
  color: #174c3b;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
#message-footer {
  color: #71817b;
  font-size: 16px;
  line-height: 1.7;
  margin: 18px 0;
}
#message-footer p {
  padding: 8px 12px !important;
  text-align: left !important;
}
.consulta-page #footer {
  color: #87958e;
  font-size: 12px;
  margin-top: 24px;
}
@media (max-width: 767px) {
  .consulta-page .consulta-container {
    padding: 18px 30px;
  }

  .consulta-page .consulta-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 0;
    padding: 8px 0 17px !important;
    margin-bottom: 18px !important;
  }

  .consulta-page .consulta-logo {
    position: static !important;
    left: auto !important;
    flex: 0 0 90px !important;
    width: 90px;
    margin: 0 !important;
  }

  .consulta-page .consulta-logo img {
    width: 90px;
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  .consulta-page .consulta-heading {
    position: static !important;
    left: auto !important;
    flex: 1;
    min-width: 0;
    text-align: left !important;
  }

  .consulta-page .consulta-heading h1 {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 4px;
  }

  .consulta-page .consulta-heading p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* Mantenha aqui as demais regras mobile que você já possui */
}

/* ==================================================
   CABEÇALHO CENTRALIZADO ACIMA DA CONSULTA
   ================================================== */

.consulta-page .consulta-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 22px !important;
  width: 100% !important;
  min-height: auto !important;
  margin: 0 auto 18px !important;
  padding: 8px 0 10px !important;
  position: relative !important;
}

.consulta-page .consulta-logo {
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.consulta-page .consulta-logo img {
  display: block;
  width: 171px;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.consulta-page .consulta-heading {
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  text-align: left !important;
  margin: 0 !important;
}

/* MOBILE */
@media (max-width: 767px) {
  .consulta-page .consulta-header {
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 8px 0 12px !important;
  }

  .consulta-page .consulta-logo img {
    width: 85px;
  }

  .consulta-page .consulta-heading h1 {
    font-size: 15px !important;
  }

  .consulta-page .consulta-heading p {
    font-size: 11px !important;
    line-height: 1.4;
  }
}

/* Status das guias */
/* Status da guia */
#protocol-check-info [id^="guide-line-"] > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#protocol-check-info [id^="guide-line-"] > div:last-child h5 {
  display: block;
  width: 100%;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.5;
}

#protocol-check-info [id^="guide-line-"] > div:last-child h5 strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  margin-top: 5px;
  border-radius: 20px;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  vertical-align: middle;
  box-sizing: border-box;
}

/* EM ANÁLISE - LARANJA */
#protocol-check-info .protocol-status-badge.status-em-analise {
  background: #fff0c9;
  color: #956000;
}

/* FINALIZADO - VERDE */
#protocol-check-info .protocol-status-badge.status-finalizado {
  background: #d9f3e5;
  color: #087c50;
}

/* CANCELADO - VERMELHO */
#protocol-check-info .protocol-status-badge.status-cancelado {
  background: #fde2e2;
  color: #c62828;
}

/* ESTILO BASE DAS ETIQUETAS DE STATUS DAS GUIAS */
#protocol-check-info [id^="guide-line-"] > div:last-child h5 strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 12px;
  margin-top: 5px;
  border-radius: 20px;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  box-sizing: border-box;
}

/* LARANJA */
#protocol-check-info [id^="guide-line-"] strong.orange-color {
  background: #fff0e5;
  color: #f27c22 !important;
}

/* VERDE */
#protocol-check-info [id^="guide-line-"] strong.green-color {
  background: #d9f3e5;
  color: #03802e !important;
}

/* VERMELHO */
#protocol-check-info [id^="guide-line-"] strong.red-color {
  background: #fde2e2;
  color: #c90000 !important;
}

/* CINZA */
#protocol-check-info [id^="guide-line-"] strong.grey-color {
  background: #eeeeee;
  color: #7a7a7a !important;
}

/* AMARELO */
#protocol-check-info [id^="guide-line-"] strong.yellow-color {
  background: #fff4cc;
  color: #dda20d !important;
}

/* Organização das mensagens do histórico */
#protocol-check-info .body-article-obs p {
  margin: 0 0 9px;
  line-height: 1.7;
}

#protocol-check-info .body-article-obs .obs-message-main {
  color: #263f35;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
}

#protocol-check-info .body-article-obs .obs-message-detail {
  color: #29483b;
  font-size: 14px;
  line-height: 1.65;
}

#protocol-check-info .body-article-obs .obs-message-detail strong {
  font-weight: 700;
}

#protocol-check-info .body-article-obs p:last-child {
  margin-bottom: 0;
}
#protocol-check-info .body-article-obs .obs-message-detail em {
  font-style: italic;
  font-weight: 400;
}

.consulta-page .consulta-container {
  padding-top: 80px !important;
}

/* ==================================================
   ONDAS ORGÂNICAS - CONSULTA DE PROTOCOLO
   ================================================== */

.consulta-page {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  /* min-height: 100vh; */
  min-height: calc(100vh / 0.7);
  box-sizing: border-box;
}

/* Ondas */
.consulta-page::before,
.consulta-page::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 105px;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Onda superior */
.consulta-page::before {
  top: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%239ce5b2'/%3E%3Cstop offset='.5' stop-color='%23d8f5df'/%3E%3Cstop offset='1' stop-color='%2376cfa0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H1440V35C1240 65 1120 20 940 38C740 58 650 95 440 65C250 38 130 58 0 35Z'/%3E%3Cpath fill='%23b9edc9' opacity='.65' d='M0 0H1440V18C1200 48 1080 8 880 25C650 48 540 68 340 42C180 22 90 38 0 20Z'/%3E%3C/svg%3E");
}

/* Onda inferior */
.consulta-page::after {
  bottom: 0;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%239ce5b2'/%3E%3Cstop offset='.5' stop-color='%23d8f5df'/%3E%3Cstop offset='1' stop-color='%2376cfa0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 85C180 55 300 100 500 82C720 60 820 25 1020 55C1210 82 1320 62 1440 82V120H0Z'/%3E%3Cpath fill='%23b9edc9' opacity='.65' d='M0 100C180 70 300 112 500 95C720 75 820 45 1020 72C1210 98 1320 80 1440 95V120H0Z'/%3E%3C/svg%3E");
}

/* Conteúdo sempre acima das ondas */
.consulta-page .consulta-container {
  position: relative;
  z-index: 1;
}

/* Mantém a rolagem da página */
html,
body {
  overflow-y: auto !important;
}

/* Ajuste de escala para desktop */
@media (min-width: 768px) {
  .consulta-page {
    zoom: 0.8;
  }
}

/* Formatação do conteúdo das mensagens */
#protocol-check-info .body-article-obs .obs-message-main,
#protocol-check-info .body-article-obs .obs-message-detail {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#protocol-check-info .body-article-obs br {
  display: block;
  content: "";
  margin-bottom: 5px;
}

#protocol-check-info .body-article-obs strong,
#protocol-check-info .body-article-obs b {
  font-weight: 700;
}

#protocol-check-info .body-article-obs em,
#protocol-check-info .body-article-obs i {
  font-style: italic;
}

#protocol-check-info .body-article-obs .obs-message-detail {
  margin-top: 8px;
}

/* MOBILE: BENEFICIÁRIO E CARTEIRINHA EM LINHAS SEPARADAS */
@media (max-width: 767px) {
  #protocol-check-info #beneficiary-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #protocol-check-info #beneficiary-line > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-right: 0 !important;
  }
}
