/*
 * CRM Construere — R0099
 * Camada responsiva comum das páginas que não usam o shell autenticado.
 * Escopada para não alterar o layout operacional nem a folha de impressão.
 */

body.public-auth-r0099,
body.public-confirm-r0099 {
  min-width: 0;
  overflow-x: hidden;
  padding: 16px;
}

body.public-auth-r0099 .login-card,
body.public-confirm-r0099 .login-card {
  width: min(100%, 430px);
  max-width: 430px;
  margin: 0;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid rgba(73, 86, 78, .14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(45, 55, 49, .10);
}

body.public-auth-r0099 .login-card .logo {
  display: block;
  width: min(100%, 250px);
  height: auto;
  margin: 0 auto 22px;
  object-fit: contain;
}

body.public-auth-r0099 .login-title,
body.public-confirm-r0099 .login-card h2 {
  margin: 0 0 18px;
  line-height: 1.2;
  text-wrap: balance;
}

body.public-auth-r0099 .form-group,
body.public-confirm-r0099 .form-group {
  min-width: 0;
}

body.public-auth-r0099 input,
body.public-confirm-r0099 input,
body.public-auth-r0099 select,
body.public-confirm-r0099 select,
body.public-auth-r0099 textarea,
body.public-confirm-r0099 textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.public-auth-r0099 .btn,
body.public-confirm-r0099 .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

body.public-terms-r0099 {
  min-width: 0;
  overflow-x: hidden;
}

body.public-terms-r0099 .terms-wrap {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: clamp(14px, 4vw, 32px);
}

body.public-terms-r0099 .terms-card {
  width: min(100%, 920px);
  max-width: 920px;
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(73, 86, 78, .14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(45, 55, 49, .10);
}

body.public-terms-r0099 .terms-card h1,
body.public-terms-r0099 .terms-card h2,
body.public-terms-r0099 .terms-card p,
body.public-terms-r0099 .terms-card .term-box {
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.public-terms-r0099 .terms-card .term-box {
  max-height: 34vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.public-terms-r0099 .terms-card form {
  min-width: 0;
}

body.public-terms-r0099 .terms-card .btn {
  max-width: 100%;
  white-space: normal;
}

body.simulation-report-r0099 {
  min-width: 0;
  overflow-x: hidden;
}

body.simulation-report-r0099 .actions {
  width: min(930px, calc(100% - 30px));
  max-width: 100%;
  margin-inline: auto;
  flex-wrap: wrap;
}

body.simulation-report-r0099 .actions button,
body.simulation-report-r0099 .actions a {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

body.simulation-report-r0099 .sheet {
  min-width: 0;
  max-width: calc(100% - 30px);
  overflow: hidden;
}

body.simulation-report-r0099 header,
body.simulation-report-r0099 .customer,
body.simulation-report-r0099 .option-head,
body.simulation-report-r0099 .projection,
body.simulation-report-r0099 .signature {
  min-width: 0;
}

body.simulation-report-r0099 header img {
  max-width: 100%;
  height: auto;
}

body.simulation-report-r0099 .installment-detail {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.simulation-report-r0099 .installment-detail table {
  max-width: none;
}

@media (max-width: 600px) {
  body.public-auth-r0099,
  body.public-confirm-r0099 {
    padding: 10px;
  }

  body.public-auth-r0099 .login-card,
  body.public-confirm-r0099 .login-card {
    border-radius: 10px;
  }

  body.public-auth-r0099 .login-card .logo {
    width: min(100%, 210px);
    margin-bottom: 18px;
  }

  body.public-terms-r0099 .terms-wrap {
    padding: 10px;
  }

  body.public-terms-r0099 .terms-card {
    border-radius: 10px;
  }

  body.public-terms-r0099 .terms-card .logo {
    width: min(100%, 220px) !important;
    height: auto;
  }

  body.public-terms-r0099 .terms-card h1 {
    font-size: clamp(22px, 7vw, 30px);
  }

  body.public-terms-r0099 .terms-card h2 {
    font-size: 17px;
  }

  body.simulation-report-r0099 .actions {
    width: calc(100% - 20px);
    margin: 10px auto 14px;
    flex-direction: column;
    align-items: stretch;
  }

  body.simulation-report-r0099 .actions button,
  body.simulation-report-r0099 .actions a {
    width: 100%;
  }

  body.simulation-report-r0099 .sheet {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    padding: 18px;
  }

  body.simulation-report-r0099 header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  body.simulation-report-r0099 header div,
  body.simulation-report-r0099 .customer > div:last-child,
  body.simulation-report-r0099 .option-code {
    text-align: left;
  }

  body.simulation-report-r0099 header img {
    width: min(100%, 190px);
  }

  body.simulation-report-r0099 .metrics {
    grid-template-columns: 1fr 1fr;
  }

  body.simulation-report-r0099 .projection {
    display: block;
  }

  body.simulation-report-r0099 .projection > div {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 380px) {
  body.simulation-report-r0099 .metrics {
    grid-template-columns: 1fr;
  }

  body.simulation-report-r0099 .sheet {
    padding: 14px;
  }
}
