/* HDI read-only portal — styles intentionally scoped so other forms are unaffected. */
body.hdi-private-portal-page {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0;
  color: #293330;
  background: #f7fbf9;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
html:has(body.hdi-private-portal-page) { min-width: 0; }
body.hdi-private-portal-page #hdi-private-portal-main {
  display: block !important;
  float: none !important;
  clear: both;
  position: static;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
body.hdi-private-portal-page #hdi-private-portal-main > .hdi-portal {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}
body.hdi-private-portal-page { overflow-x: hidden; }
.hdi-portal-warning, .hdi-portal-inline-warning { color: #854822; }
.hdi-portal-warning { padding: 20px; border: 1px solid #efc99d; background: #fff9f0; border-radius: 12px; }
.hdi-portal-inline-warning { font-weight: 500; }
.hdi-portal, .hdi-portal * { box-sizing: border-box; }
.hdi-portal { width: 100%; max-width: 1360px; margin: 0 auto; padding: 46px 28px 24px; }
.hdi-portal a { color: #24a97e; text-decoration: none; }
.hdi-portal a:hover { color: #188c69; text-decoration: underline; }
.hdi-portal h1, .hdi-portal h2, .hdi-portal h3 { font-family: inherit; color: #26342f; margin: 0; line-height: 1.25; }
.hdi-portal h1 { font-size: clamp(29px, 3vw, 40px); font-weight: 750; letter-spacing: -0.035em; }
.hdi-portal h2 { font-size: 23px; font-weight: 700; }
.hdi-portal p { line-height: 1.7; }
.hdi-portal-eyebrow { color: #24af85; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin-bottom: 12px; }
.hdi-portal-header { border: 1px solid #cfeee2; background: #dcf7ec; border-radius: 22px; padding: 36px 40px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.hdi-portal-header p { color: #66776f; margin: 12px 0 0; }
.hdi-portal-account { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13px; overflow-wrap: anywhere; }
.hdi-portal-account span { font-weight: 600; }
.hdi-portal-account a { font-weight: 600; }
.hdi-portal-panel { margin-top: 24px; background: #fff; padding: 30px 32px; border: 1px solid #e6eee9; border-radius: 18px; box-shadow: 0 10px 24px rgba(30, 70, 50, .045); }
.hdi-portal-filters { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, .85fr) auto; gap: 14px; align-items: end; width: 100%; }
.hdi-portal-filters > label { min-width: 0; }
.hdi-portal-filters > button { min-width: 110px; }
.hdi-portal-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; }
.hdi-portal input[type='search'], .hdi-portal input[type='text'], .hdi-portal input[type='password'], .hdi-portal select {
  font: inherit; color: #26332e; height: 45px; width: 100%; background: #fff; border: 1px solid #d5e0da; border-radius: 9px; padding: 9px 13px; outline: 0;
}
.hdi-portal input:focus, .hdi-portal select:focus { border-color: #31c997; box-shadow: 0 0 0 3px rgba(49, 201, 151, .15); }
.hdi-portal-btn, .hdi-portal input[type='submit'] { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 10px 21px; border: 0; border-radius: 10px; color: white !important; background: #37c896; text-decoration: none !important; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hdi-portal-btn:hover, .hdi-portal input[type='submit']:hover { background: #1fa779; color: white; }
.hdi-portal-toolbar { margin: 28px 0 14px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.hdi-portal-toolbar p { color: #68756f; margin: 0; }
.hdi-portal-toolbar strong { color: #26342f; font-size: 22px; }
.hdi-portal-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e2ece6; border-radius: 10px; }
.hdi-portal-table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 13px; }
.hdi-portal-table thead { background: #e6f8ef; }
.hdi-portal-table th { text-align: left; padding: 15px 13px; font-size: 12px; color: #315645; }
.hdi-portal-table td { border-top: 1px solid #eaf0ec; padding: 15px 13px; color: #41534a; max-width: 250px; overflow-wrap: anywhere; }
.hdi-portal-table tbody tr:hover { background: #f9fcfa; }
.hdi-portal-table a { font-weight: 700; }
.hdi-portal-status { display: inline-flex; background: #edf7f2; color: #277b5d; padding: 5px 10px; border-radius: 99px; font-weight: 600; white-space: nowrap; font-size: 12px; }
.hdi-portal-empty { text-align: center; padding: 32px !important; }
.hdi-portal-pagination { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.hdi-portal-pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid #d6e8df; border-radius: 8px; background: white; }
.hdi-portal-pagination a[aria-current='page'] { background: #37c896; color: white; border-color: #37c896; }
.hdi-portal-foot { text-align: center; color: #7d8b83; font-size: 12px; padding: 26px 8px 0; }
.hdi-portal-back { display: inline-flex; font-weight: 650; margin-bottom: 26px; }
.hdi-portal-detail-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid #e4ede7; padding-bottom: 20px; }
.hdi-portal-detail-head p { color: #708077; margin: 8px 0 0; }
.hdi-portal-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.hdi-portal-section-title { grid-column: 1/-1; margin: 28px 0 8px !important; padding-bottom: 9px; border-bottom: 1px solid #e5eee8; font-size: 17px; }
.hdi-portal-answer { display: block; padding: 17px 0; border-bottom: 1px solid #eaf0ec; }
.hdi-portal-answer dt { font-weight: 700; font-size: 12px; color: #566a5d; margin: 0 0 9px; }
.hdi-portal-answer dd { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.hdi-portal-answer em { color: #9aa8a0; }
.hdi-portal-login { max-width: 490px; margin: min(10vh, 90px) auto; border-radius: 20px; border: 1px solid #dbece2; padding: 45px; background: white; box-shadow: 0 12px 42px rgba(27, 88, 59, .08); }
.hdi-portal-login p { color: #65756a; }
.hdi-portal-login form { margin-top: 30px; }
.hdi-portal-login .login-username, .hdi-portal-login .login-password { margin: 18px 0; }
.hdi-portal-login form label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.hdi-portal-login .login-submit { margin-top: 22px; }
.hdi-portal-login input[type='submit'] { width: 100%; }
.hdi-portal-reset { font-size: 13px; text-align: center; margin-top: 18px; }
@media (max-width: 1050px) {
  .hdi-portal-header { flex-direction: column; padding: 28px; }
  .hdi-portal-account { align-items: flex-start; }
  .hdi-portal-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdi-portal-filters button { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .hdi-portal { padding: 18px 12px; }
  .hdi-portal-header { padding: 25px 20px; border-radius: 16px; }
  .hdi-portal-panel { padding: 22px 18px; }
  .hdi-portal-filters { grid-template-columns: 1fr; }
  .hdi-portal-filters button { grid-column: auto; }
  .hdi-portal-download { width: 100%; white-space: normal; }
  .hdi-portal-answers { grid-template-columns: 1fr; }
  .hdi-portal-detail-head { align-items: flex-start; flex-direction: column; }
  .hdi-portal-login { padding: 30px 23px; margin: 50px auto; }
}

/* Avoid Elementor/theme form and main-content rules on the standalone page. */
body.hdi-private-portal-page .hdi-portal-panel,
body.hdi-private-portal-page .hdi-portal-header,
body.hdi-private-portal-page .hdi-portal-table-wrap { width: 100%; min-width: 0; }
body.hdi-private-portal-page .hdi-portal-filters label,
body.hdi-private-portal-page .hdi-portal-filters input,
body.hdi-private-portal-page .hdi-portal-filters select { max-width: 100%; min-width: 0; }
body.hdi-private-portal-page .hdi-portal-account { min-width: 0; max-width: 100%; }
body.hdi-private-portal-page .hdi-portal-account span { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  body.hdi-private-portal-page .hdi-portal-filters > button { width: 100%; }
  body.hdi-private-portal-page .hdi-portal-header { gap: 14px; }
  body.hdi-private-portal-page .hdi-portal-toolbar { align-items: stretch; }
}
