/* Only loaded on portal pages using the clean layout. Keep WordPress plugin hooks intact. */
body.imcrm-portal-shell {
  margin: 0; padding: 0; min-width: 0; min-height: 100vh;
  background: #f3f6fa; color: #1d2939;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.imcrm-portal-shell *, .imcrm-portal-shell *::before, .imcrm-portal-shell *::after { box-sizing: border-box; }
.imcrm-portal-shell .imcrm-shell-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px; width: 100%; margin: 0; padding: 24px max(24px, calc((100% - 1120px) / 2));
  background: #fff; border-bottom: 1px solid #dbe3ed; color: #1d2939;
}
.imcrm-portal-shell .imcrm-shell-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.imcrm-portal-shell .imcrm-shell-logo { display: block; width: auto; max-width: 180px; max-height: 64px; object-fit: contain; }
.imcrm-portal-shell .imcrm-shell-firm { margin: 0 0 2px; color: #475467; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.imcrm-portal-shell .imcrm-shell-header h1 { margin: 0; color: #142b49; font: 700 26px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.imcrm-portal-shell .imcrm-shell-tagline { margin: 0; color: #5b697b; font-size: 14px; }
.imcrm-portal-shell .imcrm-shell-main { display: block; width: 100%; max-width: 1168px; margin: 0 auto; padding: 28px 24px 48px; }
.imcrm-portal-shell .imcrm-portal {
  --ink: #1d2939; --mut: #5b697b; --line: #dbe3ed; --brand: #1d4e89; --soft: #f5f7fa;
  display: block; width: 100%; max-width: none; padding: 0; margin: 0; font-size: 16px; line-height: 1.6;
}
.imcrm-portal-shell .imcrm-portal h2 { margin: 0 0 18px; color: #142b49; font-size: 24px; line-height: 1.35; }
.imcrm-portal-shell .imcrm-portal h2 small { display: inline-block; font-size: 14px; font-weight: 400; }
.imcrm-portal-shell .imcrm-portal h3 { color: #1d2939; font-size: 18px; line-height: 1.4; }
.imcrm-portal-shell .imcrm-portal h4 { color: #1d2939; font-size: 16px; line-height: 1.4; }
.imcrm-portal-shell .imcrm-portal p { margin: 0 0 16px; }
.imcrm-portal-shell .imcrm-card { min-width: 0; padding: 24px; margin: 0 0 20px; border-radius: 10px; overflow-wrap: anywhere; }
.imcrm-portal-shell .imcrm-card > :last-child { margin-bottom: 0; }
.imcrm-portal-shell .imcrm-portal-account { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.imcrm-portal-shell .imcrm-portal-account p { margin: 0; }
.imcrm-portal-shell .imcrm-portal-account nav { display: block; margin: 0; padding: 0; font-size: 14px; }
.imcrm-portal-shell .imcrm-portal a { color: #1d4e89; text-decoration: underline; text-underline-offset: 3px; }
.imcrm-portal-shell .imcrm-portal a:hover { color: #123660; }
.imcrm-portal-shell .imcrm-portal a:focus-visible,
.imcrm-portal-shell .imcrm-portal button:focus-visible,
.imcrm-portal-shell .imcrm-portal input:focus-visible,
.imcrm-portal-shell .imcrm-portal select:focus-visible,
.imcrm-portal-shell .imcrm-portal textarea:focus-visible { outline: 3px solid #7cb1ef; outline-offset: 3px; }
.imcrm-portal-shell .imcrm-portal input,
.imcrm-portal-shell .imcrm-portal textarea,
.imcrm-portal-shell .imcrm-portal select,
.imcrm-portal-shell .imcrm-portal button { font-family: inherit; font-size: 16px; line-height: 1.5; }
.imcrm-portal-shell .imcrm-portal input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]),
.imcrm-portal-shell .imcrm-portal textarea,
.imcrm-portal-shell .imcrm-portal select {
  color: #1d2939; background: #fff; border: 1px solid #98a6b8; border-radius: 6px;
  padding: 10px 12px; max-width: 100%; min-height: 44px;
}
.imcrm-portal-shell .imcrm-portal input[type=file] { padding: 8px; }
.imcrm-portal-shell .imcrm-portal input[type=checkbox],
.imcrm-portal-shell .imcrm-portal input[type=radio] { width: auto; min-height: 0; accent-color: #1d4e89; }
.imcrm-portal-shell .imcrm-portal textarea { resize: vertical; }
.imcrm-portal-shell .imcrm-portal .imcrm-btn,
.imcrm-portal-shell .imcrm-portal input[type=submit] {
  display: inline-block; width: auto; min-height: 44px; margin: 0; padding: 10px 18px;
  border: 1px solid #1d4e89; border-radius: 6px; background: #1d4e89; color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: none;
}
.imcrm-portal-shell .imcrm-portal .imcrm-btn.alt { color: #1d4e89; background: #fff; }
.imcrm-portal-shell .imcrm-portal .imcrm-btn:hover,
.imcrm-portal-shell .imcrm-portal input[type=submit]:hover { background: #163d6b; color: #fff; }
.imcrm-portal-shell .imcrm-portal table.imcrm-t { margin: 0; border: 0; border-collapse: collapse; }
.imcrm-portal-shell .imcrm-portal table.imcrm-t th,
.imcrm-portal-shell .imcrm-portal table.imcrm-t td { padding: 12px; line-height: 1.5; }
.imcrm-portal-shell .imcrm-portal .imcrm-login-card { width: 100%; max-width: 480px; margin: 24px auto; padding: 32px; }
.imcrm-portal-shell .imcrm-login-card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.imcrm-portal-shell .imcrm-login-card input[type=text],
.imcrm-portal-shell .imcrm-login-card input[type=password],
.imcrm-portal-shell .imcrm-login-card input[type=submit] { width: 100%; }
.imcrm-portal-shell .imcrm-skip-link { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100000; padding: 10px 16px; background: #fff; color: #1d4e89; border: 2px solid #1d4e89; }
.imcrm-portal-shell .imcrm-skip-link:focus { top: 12px; }
@media (max-width: 700px) {
  .imcrm-portal-shell .imcrm-shell-header { padding: 20px 16px; }
  .imcrm-portal-shell .imcrm-shell-brand { gap: 12px; }
  .imcrm-portal-shell .imcrm-shell-logo { max-width: 100px; max-height: 48px; }
  .imcrm-portal-shell .imcrm-shell-header h1 { font-size: 23px; }
  .imcrm-portal-shell .imcrm-shell-tagline { display: none; }
  .imcrm-portal-shell .imcrm-shell-main { padding: 20px 12px 32px; }
  .imcrm-portal-shell .imcrm-card { padding: 16px; }
  .imcrm-portal-shell .imcrm-portal .imcrm-login-card { margin: 12px auto; padding: 24px; }
  .imcrm-portal-shell .imcrm-portal h2 { font-size: 21px; }
  .imcrm-portal-shell .imcrm-grid, .imcrm-portal-shell .imcrm-pay { grid-template-columns: minmax(0, 1fr); }
  .imcrm-portal-shell .imcrm-portal table.imcrm-t { display: block; max-width: 100%; overflow-x: auto; }
}
@media print {
  body.imcrm-portal-shell { background: #fff; }
  .imcrm-portal-shell .imcrm-shell-main { padding: 16px 0; }
  .imcrm-portal-shell .imcrm-portal-account, .imcrm-portal-shell .imcrm-skip-link { display: none; }
}
