h1, h2, h3, h4, h5, h6 {
    color: #2c3e50; /* your color */
}

h1 {
    font-size: 2.0rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.05rem;
}

h5 {
    font-size: 0.95rem;
}

h6 {
    font-size: 0.85rem;
}




body.portal-modern {
  --bs-font-sans-serif: Roboto, "Segoe UI", Arial, sans-serif;
  --bs-body-font-family: Roboto, "Segoe UI", Arial, sans-serif;
  --bs-primary: #188f9e;
  --bs-primary-rgb: 24, 143, 158;
  --portal-header-bg: rgba(24, 143, 158, 0.16);
  --portal-header-border: rgba(24, 143, 158, 0.28);
  --bs-link-color: #c9796b;
  --bs-link-hover-color: #bb5746;
  background: #f4f7f9;
  color: #1c2b4a;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

body.portal-modern .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #188f9e;
  --bs-btn-border-color: #188f9e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #127986;
  --bs-btn-hover-border-color: #127986;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f6670;
  --bs-btn-active-border-color: #0f6670;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #188f9e;
  --bs-btn-disabled-border-color: #188f9e;
}

body.portal-modern .btn-outline-primary {
  --bs-btn-color: #188f9e;
  --bs-btn-border-color: #188f9e;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #188f9e;
  --bs-btn-hover-border-color: #188f9e;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #127986;
  --bs-btn-active-border-color: #127986;
  --bs-btn-disabled-color: #188f9e;
  --bs-btn-disabled-border-color: #188f9e;
}

body.portal-modern #form1 {
  min-height: 100vh;
}

body.portal-modern .portal-heading,
body.portal-modern .portal-heading th,
body.portal-modern .portal-heading td,
body.portal-modern tr.portal-heading > th,
body.portal-modern tr.portal-heading > td,
body.portal-modern .card-title,
body.portal-modern .portal-kicker,
body.portal-modern .announcement-title,
body.portal-modern .modal-title,
body.portal-modern .box-header,
body.portal-modern .portal-search th,
body.portal-modern .metro-report th,
body.portal-modern table.portal-results > tbody > tr:first-child > th,
body.portal-modern table.portal-results th {
  color: #4d585d !important;
}

/* Header chrome matches modal headers. Hero and entity identity titles stay clear. */
body.portal-modern th,
body.portal-modern tr.portal-heading > th,
body.portal-modern tr.portal-heading > td,
body.portal-modern .card-header,
body.portal-modern .box-header,
body.portal-modern .pv-table-header,
body.portal-modern .modal-header,
body.portal-modern .portal-modal-header,
body.portal-modern .ui-dialog .ui-dialog-titlebar,
body.portal-modern :is(h2, h3, b).portal-heading {
  background-color: var(--portal-header-bg);
}

body.portal-modern .card-header,
body.portal-modern .box-header,
body.portal-modern .pv-table-header,
body.portal-modern .modal-header,
body.portal-modern .portal-modal-header,
body.portal-modern .ui-dialog .ui-dialog-titlebar {
  border-bottom-color: var(--portal-header-border);
}

body.portal-modern :is(h2, h3, b).portal-heading {
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
}

body.portal-modern .portal-hero :is(h1, h2, h3).portal-heading,
body.portal-modern .entity-profile :is(h1, h2, h3).portal-heading,
body.portal-modern .card-header :is(h2, h3, .card-title),
body.portal-modern .card-header .card-title,
body.portal-modern .box-header :is(h2, h3).portal-heading,
body.portal-modern .modal-header :is(h2, h3).portal-heading,
body.portal-modern .portal-modal-header :is(h2, h3).portal-heading,
body.portal-modern .ui-dialog .ui-dialog-title {
  background-color: transparent;
  border-radius: 0;
  padding: 0;
}

/* Header / title chrome: keep standard heading color even when text is a link (sort headers, etc.) */
body.portal-modern .portal-heading a:not(.btn),
body.portal-modern .portal-heading th a:not(.btn),
body.portal-modern .portal-heading td a:not(.btn),
body.portal-modern tr.portal-heading > th a:not(.btn),
body.portal-modern tr.portal-heading > td a:not(.btn),
body.portal-modern .card-title a:not(.btn),
body.portal-modern .portal-kicker a:not(.btn),
body.portal-modern .announcement-title a:not(.btn),
body.portal-modern .modal-title a:not(.btn),
body.portal-modern .box-header a:not(.btn),
body.portal-modern .portal-search th a:not(.btn),
body.portal-modern .metro-report th a:not(.btn),
body.portal-modern table.portal-results th a:not(.btn),
body.portal-modern table.summary-table th a:not(.btn) {
  color: #4d585d !important;
  text-decoration: none;
}

body.portal-modern .portal-heading a:not(.btn):hover,
body.portal-modern .portal-heading th a:not(.btn):hover,
body.portal-modern .portal-heading td a:not(.btn):hover,
body.portal-modern tr.portal-heading > th a:not(.btn):hover,
body.portal-modern tr.portal-heading > td a:not(.btn):hover,
body.portal-modern .card-title a:not(.btn):hover,
body.portal-modern .portal-search th a:not(.btn):hover,
body.portal-modern .metro-report th a:not(.btn):hover,
body.portal-modern table.portal-results th a:not(.btn):hover,
body.portal-modern table.summary-table th a:not(.btn):hover {
  color: #3a4549 !important;
  text-decoration: underline;
}

/* Neutralize legacy ASP.NET HeaderStyle ForeColor on portal grids */
body.portal-modern table.portal-results > tbody > tr[style*="color"] > th,
body.portal-modern table.portal-results th[style*="color"],
body.portal-modern .metro-report table th[style*="color"],
body.portal-modern table.summary-table th[style*="color"] {
  color: #4d585d !important;
}

body.portal-modern a:not(.btn) {
  color: #c9796b;
  text-decoration: none;
  cursor: pointer;
}

body.portal-modern a:not(.btn):hover {
  color: #bb5746;
}

/* Layout utilities replacing common decorative/layout inline styles */
body.portal-modern .portal-pagebreak {
  page-break-before: always;
}

body.portal-modern .portal-map {
  width: 100%;
  height: 450px;
}

body.portal-modern .portal-chart-lg {
  width: 100%;
  height: 500px;
  margin: 0 auto;
}

body.portal-modern .portal-sort-bar {
  float: right;
}

body.portal-modern .portal-keep-together {
  page-break-inside: avoid;
}

body.portal-modern .portal-hr-tight {
  margin: 0.35rem 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e6ebf0;
  line-height: 0;
}

body.portal-modern table.portal-results-numeric {
  width: 100%;
  text-align: right;
}

body.portal-modern .portal-text-sm {
  font-size: 0.85em;
}

body.portal-modern .portal-text-xs {
  font-size: x-small;
}

body.portal-modern .portal-msg {
  color: darkred;
}

body.portal-modern .portal-tight-bottom {
  margin-bottom: 0;
}

body.portal-modern .portal-block-mt {
  margin-top: 10px;
}

body.portal-modern .portal-spacer-sm {
  height: 15px;
}

body.portal-modern .portal-filter-input-lg {
  width: 260px;
}

body.portal-modern .stats-note {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.85em;
  color: #5c6b7a;
}

body.portal-modern .portal-pro-toolbar {
  padding: 10px;
}

body.portal-modern .portal-filter-sublabel {
  width: 125px;
  float: left;
}

body.portal-modern .portal-filter-inline-gap {
  margin-right: 10px;
}

body.portal-modern .portal-filter-input-xl {
  width: 300px;
}

body.portal-modern .entity-financials-layout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

body.portal-modern .entity-financials-charts {
  width: 70%;
}

body.portal-modern .entity-financials-charts > [id$="PieChart"] {
  width: 100%;
}

body.portal-modern .btn-primary,
body.portal-modern a.btn-primary,
body.portal-modern a.btn-primary:hover,
body.portal-modern a.btn-primary:focus,
body.portal-modern .btn-primary:disabled {
  color: #fff !important;
  text-decoration: none !important;
}

body.portal-modern .btn-outline-primary,
body.portal-modern a.btn-outline-primary,
body.portal-modern a.btn-outline-primary:focus {
  color: #188f9e !important;
  background-color: transparent;
  text-decoration: none !important;
}

body.portal-modern .btn-outline-primary:hover,
body.portal-modern a.btn-outline-primary:hover {
  color: #fff !important;
  background-color: #188f9e;
  border-color: #188f9e;
}

body.portal-modern #header {
  color: #4d585d;
  height: auto !important;
  padding: 0.7rem 0 !important;
  background: #fff;
  border-bottom: 1px solid #e6ebf0;
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 1030;
}

body.portal-modern #header > .row,
body.portal-modern #footer > .row {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 0.75rem;
  --bs-gutter-x: 0;
}

body.portal-modern #header .twelve.columns,
body.portal-modern #footer .twelve.columns {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
  position: relative;
}

body.portal-modern #header .twelve.columns {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}

body.portal-modern #header .left {
  order: 1;
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  line-height: 0;
  z-index: 2;
}

body.portal-modern #header .left br {
  display: none;
}

body.portal-modern #header .left img,
body.portal-modern #header .logo {
  width: 168px;
  height: auto;
}

body.portal-modern #header .twelve.columns > div:has(.main-nav) {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
}

body.portal-modern #header .twelve.columns > div:has(.signin) {
  order: 3;
  margin-left: auto;
}

body.portal-modern #header .signin {
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  background: transparent;
  text-align: right;
}

body.portal-modern a.portal-username {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4d585d;
  font-weight: 600;
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

body.portal-modern a.portal-username::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e7f3f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23188f9e'%3E%3Cpath d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-4.1 0-7 2.1-7 4.2V20h14v-1.8c0-2.1-2.9-4.2-7-4.2z'/%3E%3C/svg%3E") center / 16px no-repeat;
}

body.portal-modern a.portal-username:hover {
  color: #4d585d;
  border-bottom-color: #188f9e;
}

body.portal-modern #lbLoginName {
  color: #4d585d !important;
  font-size: 0.95rem;
  font-weight: 600;
}

body.portal-modern #hlAdmin {
  display: inline-block;
  margin-left: 0.35rem;
  color: #8aa0b2 !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em;
  text-decoration: none;
}

body.portal-modern .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b4a' stroke-width='2'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center / 18px no-repeat;
  color: transparent;
}

body.portal-modern .menu-toggle .icon-menu {
  display: none;
}

body.portal-modern .main-nav {
  position: static !important;
  display: block;
  width: 100%;
  background: transparent;
  box-shadow: none;
}

body.portal-modern .primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.portal-modern .primary-nav > li {
  position: relative;
  list-style: none;
}

body.portal-modern .primary-nav > li > a {
  display: inline-block;
  padding: 0.7rem 0.8rem;
  color: #4d585d;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  /**/
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

body.portal-modern .primary-nav > li:hover > a,
body.portal-modern .primary-nav > li.is-open > a,
body.portal-modern .primary-nav > li.is-current > a {
  color: #4d585d;
  border-bottom-color: #188f9e;
  text-decoration: none;
}

body.portal-modern .primary-nav .dropdown {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(28, 43, 74, 0.12);
  z-index: 20;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

body.portal-modern .primary-nav > li.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

body.portal-modern .primary-nav > li.has-dropdown:hover > .dropdown,
body.portal-modern .primary-nav > li.has-dropdown:focus-within > .dropdown,
body.portal-modern .primary-nav > li.has-dropdown.is-open > .dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

body.portal-modern .primary-nav .dropdown a {
  display: block;
  margin: 0 0.35rem;
  padding: 0.48rem 0.75rem;
  color: #3d4f5f;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-radius: 6px;
}

body.portal-modern .primary-nav .dropdown a:hover,
body.portal-modern .primary-nav .dropdown a.is-current {
  background: #f3f8f9;
  color: #c9796b;
}

.news-ticker {
  display: flex;
  align-items: stretch;
  height: 38px;
  background: #1e3344;
  color: #fff;
  overflow: hidden;
}

.ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.95rem;
  background: #188f9e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 1;
}

.ticker-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: ticker-pulse 1.8s infinite;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: portal-ticker 70s linear infinite;
}

.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-right: 0.15rem;
  color: #fff !important;
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
}

.ticker-item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 1.05rem;
  border-radius: 50%;
  background: #e07a68;
}

.ticker-item:hover .ticker-title {
  text-decoration: underline;
}

.ticker-date {
  color: #f3c1b6;
  font-size: 0.74rem;
  font-weight: 700;
}

@keyframes portal-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ticker-pulse {
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: 1.0rem 0 0.8rem;
  background: linear-gradient(90deg, #f4f7fa 0%, #f7f9fb 46%, #e8eef3 100%);
  border-bottom: 1px solid #e6ebf0;
}

.portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(244, 247, 250, 0.05) 0%, rgba(244, 247, 250, 0.55) 14%, #f4f7fa 50%, rgba(244, 247, 250, 0.55) 86%, rgba(244, 247, 250, 0.05) 100%),
    url("../images/layout/hero/revistablue.png");
  background-repeat: no-repeat;
  background-position: left center, 72% 67%;
  background-size: cover;
  pointer-events: none;
}

.portal-hero .container-xxl {
  position: relative;
  z-index: 1;
}

.portal-kicker {
  margin: 0;
  color: #188f9e;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  /**/
}

.portal-hero h1 {
  margin: 0.2rem 0 0.35rem;
  color: #4d585d;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.portal-sub,
.portal-help {
  margin: 0;
  color: #5c6b7a;
  font-size: 1rem;
}

.portal-main {
  /*padding: 1.5rem 0 3rem;*/
}

body.portal-modern .portal-card {
  --bs-card-bg: #fff;
  --bs-card-border-color: #e6ebf0;
  --bs-card-border-radius: 12px;
  --bs-card-cap-bg: var(--portal-header-bg);
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 43, 74, 0.04), 0 10px 28px rgba(28, 43, 74, 0.04);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

body.portal-modern .portal-card > .card-header {
  background: var(--portal-header-bg);
  border-bottom: 1px solid var(--portal-header-border);
}

body.portal-modern .portal-card .card-title {
  display: flex;
  align-items: center;
  margin: 0;
  color: #4d585d;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  /**/
}

body.portal-modern .portal-card .card-title::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  border-radius: 2px;
  background: #188f9e;
  flex: 0 0 auto;
}

body.portal-modern .portal-card .card-body {
  padding: 1.05rem 1.15rem 1.15rem;
}

body.portal-modern .portal-card .card-body.p-0 {
  padding: 0;
}

body.portal-modern .portal-announcement {
  border-left: 4px solid #e07a68;
}

.announcement-title {
  margin: 0.2rem 0 0.25rem;
  color: #4d585d;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.announcement-meta {
  margin: 0 0 0.85rem;
  color: #5c6b7a;
}

body.portal-modern .btn-portal,
body.portal-modern .button,
body.portal-modern a.button,
body.portal-modern input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.48rem 0.95rem;
  border: 0;
  border-radius: 8px;
  background: #188f9e;
  color: #fff !important;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

body.portal-modern .btn-portal:hover,
body.portal-modern .button:hover,
body.portal-modern a.button:hover {
  background: #127986;
  color: #fff !important;
}

body.portal-modern .button:disabled,
body.portal-modern .button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

body.portal-modern .btn-portal-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.95rem;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
}

body.portal-modern .btn-portal-outline:hover {
  background: #f4f7f9;
  color: #1c2b4a !important;
}

.portal-note {
  margin-bottom: 0.7rem;
  color: #c9796b !important;
  font-size: 0.9rem;
}

body.portal-modern .portal-card > .card-header > .d-flex {
  min-width: 0;
}

.portal-card-tools {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

body.portal-modern .form-check-label {
  color: #3d4f5f;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

body.portal-modern .form-check-input {
  cursor: pointer;
}

body.portal-modern .form-check-input:focus {
  border-color: #7eb9c4;
  box-shadow: 0 0 0 0.2rem rgba(24, 143, 158, 0.25);
}

body.portal-modern .form-check-input:checked {
  background-color: #188f9e;
  border-color: #188f9e;
}

body.portal-modern .portal-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

body.portal-modern .portal-switch-input,
body.portal-modern .portal-switch input[type="checkbox"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  appearance: none !important;
}

body.portal-modern .portal-switch-label {
  position: relative;
  margin: 0;
  padding-left: 2.9em;
  color: #3d4f5f;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}

body.portal-modern .portal-switch-label::before,
body.portal-modern .portal-switch-label::after {
  content: "";
  position: absolute;
  display: block;
}

body.portal-modern .portal-switch-label::before {
  left: 0;
  top: 0.05em;
  width: 2.4em;
  height: 1.25em;
  border: 1px solid #c5ced6;
  border-radius: 2em;
  background: #d7dee4;
}

body.portal-modern .portal-switch-label::after {
  left: 0.18em;
  top: 0.18em;
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

body.portal-modern .portal-switch:has(input:checked) .portal-switch-label::before,
body.portal-modern .portal-switch-input:checked + .portal-switch-label::before {
  background: #188f9e;
  border-color: #188f9e;
}

body.portal-modern .portal-switch:has(input:checked) .portal-switch-label::after,
body.portal-modern .portal-switch-input:checked + .portal-switch-label::after {
  transform: translateX(1.1em);
}

body.portal-modern .form-switch .form-check-input {
  width: 2.4em;
  height: 1.25em;
  margin-top: 0;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: #d7dee4;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  border: 1px solid #c5ced6;
  border-radius: 2em;
  print-color-adjust: exact;
}

body.portal-modern .form-switch .form-check-input:checked {
  background-color: #188f9e;
  border-color: #188f9e;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  background-position: right center;
}

.portal-tool-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 100%;
  font-size: 0.8rem;
}

body.portal-modern .box-header {
  height: auto;
  padding: 0.55rem 1.1rem;
  background: var(--portal-header-bg);
  border-bottom: 1px solid var(--portal-header-border);
  color: #4d585d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  /**/
}

body.portal-modern .single-favorite,
body.portal-modern .single-transaction {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 0;
  color: #3d4f5f;
}

body.portal-modern .single-transaction {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid #eef2f5;
  background: #fff;
  font-size: 0.9rem;
}

body.portal-modern .single-transaction.dark {
  background: #f8fbfc;
}

body.portal-modern .single-transaction:last-child {
  border-bottom: 0;
}

body.portal-modern .portal-card :is(h2, h3) {
  margin: 0.15rem 0;
  color: #1a6f7c;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

body.portal-modern .single-favorite .type {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px solid #d5e3e6;
  border-radius: 999px;
  color: #5c6b7a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

body.portal-modern .single-favorite .icon {
  float: none;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin: 0;
  border-radius: 6px;
  background-color: #e7f3f5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

body.portal-modern .type-1 :is(h2, h3) { color: #188f9e; }
body.portal-modern .type-1 .icon { background-image: url("/assets/application/images/marker-type-1.png"); }
body.portal-modern .type-2 :is(h2, h3),
body.portal-modern .type-3 :is(h2, h3),
body.portal-modern .type-4 :is(h2, h3) { color: #485b62; }
body.portal-modern .type-2 .icon { background-image: url("/assets/application/images/marker-type-2.png"); }
body.portal-modern .type-3 .icon { background-image: url("/assets/application/images/marker-type-3.png"); }
body.portal-modern .type-4 .icon { background-image: url("/assets/application/images/marker-type-4.png"); }
body.portal-modern .type-12 :is(h2, h3),
body.portal-modern .type-18 :is(h2, h3),
body.portal-modern .type-19 :is(h2, h3),
body.portal-modern .type-23 :is(h2, h3) { color: #e07a68; }
body.portal-modern .type-12 .icon,
body.portal-modern .type-18 .icon,
body.portal-modern .type-19 .icon,
body.portal-modern .type-23 .icon { background-image: url("/assets/application/images/marker-type-12.png"); }

body.portal-modern .delete-favorite,
body.portal-modern .delete-listing,
body.portal-modern .share-listing {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 1px solid #d5e4e8;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  text-indent: -999px;
  overflow: hidden;
}

body.portal-modern .delete-favorite,
body.portal-modern .delete-listing {
  float: none;
  background-image: url("../images/icons/icon-x.png");
}

body.portal-modern .delete-listing {
  background-image: url("../images/icons/icon-delete.png");
}

body.portal-modern .share-listing {
  background-image: url("../images/icons/icon-share.png");
}

body.portal-modern .delete-favorite:hover,
body.portal-modern .delete-listing:hover,
body.portal-modern .share-listing:hover {
  border-color: #188f9e;
}

body.portal-modern [id$="rptFavoritesEmpty"],
body.portal-modern [id$="rptRecentlyViewedEmpty"],
body.portal-modern [id$="rptListingsEmpty"] {
  padding: 1rem 1.15rem 1.15rem;
  color: #5c6b7a;
}

body.portal-modern [id$="rptFavoritesEmpty"] button {
  float: none !important;
  margin-right: 0.7rem !important;
  border: 1px solid #d5e4e8 !important;
  background: #fff;
  color: #188f9e;
}

body.portal-modern .icon-heart::before,
body.portal-modern .icon-heart-empty::before,
body.portal-modern .icon-search::before {
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

body.portal-modern .icon-heart::before {
  content: "♥";
  color: #c9796b;
}

body.portal-modern .icon-heart-empty::before {
  content: "♡";
}

body.portal-modern .icon-search::before {
  content: "⌕";
}

body.portal-modern .transactions .card-body {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #eef2f5;
  text-align: left;
}

body.portal-modern .transactions .button-wrap {
  display: inline-flex;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none !important;
}

body.portal-modern .transactions .search-transactions,
body.portal-modern .transactions .search-transactions-icon {
  float: none;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: #188f9e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

body.portal-modern .transactions .search-transactions-icon {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.7rem;
}

body.portal-modern .transactions .search-transactions-icon .icon-search {
  position: static;
  font-size: 1rem;
  font-style: normal;
}

body.portal-modern .transactions .search-transactions {
  padding: 0.55rem 0.9rem 0.55rem 0;
}

body.portal-modern .transactions .button-wrap:hover .search-transactions,
body.portal-modern .transactions .button-wrap:hover .search-transactions-icon {
  background: #127986;
}

body.portal-modern .single-transaction {
  display: block;
}

body.portal-modern .single-transaction .location {
  color: #5c6b7a;
  font-size: 0.8rem;
  font-style: italic;
}

body.portal-modern #accountDetailsModal .modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(28, 43, 74, 0.18);
}

body.portal-modern .modal-header,
body.portal-modern .portal-modal-header,
body.portal-modern .ui-dialog .ui-dialog-titlebar {
  background: var(--portal-header-bg);
  border-bottom: 1px solid var(--portal-header-border);
}

body.portal-modern .portal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.8rem 1.15rem;
}

body.portal-modern .portal-modal-header .portal-heading,
body.portal-modern .portal-modal-header .modal-title {
  margin: 0;
  color: #1c4d56;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.portal-modern .portal-modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

body.portal-modern .portal-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1c4d56;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  float: none;
}

body.portal-modern .portal-modal-close:hover,
body.portal-modern .portal-modal-close:focus {
  color: #0f6670;
  text-decoration: none;
}

body.portal-modern #accountDetailsModal .modal-header,
body.portal-modern #accountDetailsModal .modal-footer {
  border-color: rgba(24, 143, 158, 0.28);
}

body.portal-modern #accountDetailsModal .modal-title {
  color: #4d585d;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.account-details-list {
  margin: 0 0 0.8rem;
}

.account-info-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef2f5;
}

.account-info-row dt {
  margin: 0;
  color: #188f9e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

.account-info-row dd {
  margin: 0;
  color: #1c2b4a;
  font-size: 0.95rem;
  word-break: break-word;
}

.account-action,
#lbtnApiKeyShowHide {
  margin-left: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.api-key {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

body.portal-modern .portal-disclaimer {
  margin: 0.85rem auto 0.15rem;
  width: fit-content;
  max-width: 52rem;
  padding: 0 1rem;
  color: #5c6b7a;
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

body.portal-modern #footer {
  margin-top: 0;
  padding: 0.85rem 0;
  background: #3c4d5c;
  border-top: 0;
}

body.portal-modern #footer .fourcol,
body.portal-modern #footer .mobiledivide,
body.portal-modern #footer ul.footernav {
  display: flex;
  align-items: center;
  float: none;
  width: auto;
  margin: 0;
}

body.portal-modern #footer .twelve.columns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.portal-modern #footer .twelve.columns::before {
  content: "";
  width: 168px;
  height: 36px;
  flex: 0 0 168px;
  margin-right: 0.5rem;
  padding-right: 1.25rem;
  background: url("../images/layout/logo_portal_new_no_Bg.svg") left center / contain no-repeat;
  filter: brightness(1.35) contrast(1.15);
}

body.portal-modern #footer .fourcol {
  margin-left: auto;
  gap: 0.15rem;
}

body.portal-modern #footer ul.footernav {
  list-style: none;
  padding: 0;
}

body.portal-modern #footer ul.footernav li {
  margin: 0;
  font-size: 0.72rem;
}

body.portal-modern #footer ul.footernav + ul.footernav li::before,
body.portal-modern #footer .mobiledivide + .mobiledivide ul.footernav:first-child li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 0.8rem;
  background: rgba(255, 255, 255, 0.28);
  vertical-align: middle;
}

body.portal-modern #footer ul.footernav li a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  letter-spacing: 0.08em;
  
  text-decoration: none;
}

body.portal-modern #footer ul.footernav li a:hover {
  color: #fff;
}

body.portal-modern #headerMessage {
  background: #e8f4f6 !important;
  color: #1c2b4a;
  border-bottom: 1px solid #d5e7ea;
}

@media (max-width: 991.98px) {
  body.portal-modern .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 0.75rem;
    right: 0;
    z-index: 3;
  }

  body.portal-modern #header .twelve.columns > div:has(.signin) {
    margin-right: 2.8rem;
  }

  body.portal-modern .main-nav {
    display: none;
    position: absolute !important;
    top: 100%;
    left: -0.75rem;
    right: -0.75rem;
    padding: 0.4rem 0.75rem 0.8rem;
    background: #fff;
    border-bottom: 1px solid #e6ebf0;
    box-shadow: 0 16px 28px rgba(28, 43, 74, 0.08);
    z-index: 5;
  }

  body.portal-modern .main-nav.active {
    display: block;
  }

  body.portal-modern .primary-nav {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-modern .primary-nav > li > a {
    padding: 0.7rem 0.2rem;
  }

  body.portal-modern .main-nav.active .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 0 0.35rem 0.65rem;
    border: 0;
    box-shadow: none;
  }

  body.portal-modern #footer .twelve.columns,
  body.portal-modern #footer .fourcol,
  body.portal-modern #footer .mobiledivide {
    flex-wrap: wrap;
  }

  .portal-card-tools {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .account-info-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .portal-hero::after {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .ticker-live {
    animation: none;
  }

  .ticker-viewport {
    overflow-x: auto;
  }
}

/* =============================================================================
   PORTAL STANDARDS — major element classes (body.portal-modern)
   -----------------------------------------------------------------------------
   TOC / when to use each:

   Layout / chrome
   - portal-hero          Page hero band (title + short intro)
   - portal-heading       Section / card / table header titles (also HeaderStyle-CssClass)
   - portal-kicker        Small eyebrow / supporting label above a heading
   - portal-main          Primary content column wrapper
   - portal-card          Interactive card container (header + body)
   - entity-nav           Stakeholder / entity in-page section nav
   - entity-profile       Entity identity block (name, address, logo)
   - entity-facts         Compact fact list beside a profile

   Filter panel
   - portal-filters       CANONICAL white filter card (search controls collection)
   - tx-search-filters    Alias of portal-filters (keep for geocomplete details: selector)
   - portal-filter-panel  Optional outer ASP Panel wrapper (subtle page bg only)
   - filter-label         Left-column control labels inside the filter card
   - filter-notes         Side notes column when present beside filters
   - portal-choice        Checkbox / radio groups inside filters

   Summary tables (≤4–5 rows of aggregate stats)
   - summary-table        CANONICAL compact stats grid (prefer over unmarked <table>)

   Chart panel (Google Charts host)
   - portal-charts        CANONICAL flex white chart row
   - portal-charts-dual   Modifier: wider dual-vAxis charts (Demographics)
   - portal-charts-wide   Modifier: side-by-side wide pair (Construction)

   Results
   - portal-results       CANONICAL results chrome for BOTH:
                            • List: DataList / nested field-value tables (Construction, Tx, Entities)
                            • Grid: GridView 1-row/record + HeaderStyle-CssClass="portal-heading"
                          Nested table label rules apply to list-style items only.
                          GridViews (e.g. MetroRankings) use the same class; page-specific
                          column align lives under table[id$="gvData"] / similar hooks.
   - portal-results-grid  Optional modifier reserved for denser sortable grids if a page
                          needs to diverge from list nested-table styling (prefer comments /
                          existing id hooks before inventing new modifiers).

   Buttons: btn btn-sm btn-primary | btn-outline-primary
   Forms: portal-form (labels, fields, .req / .error), portal-inline-fields, portal-split
   Utilities: portal-sort-bar, portal-text-sm/xs, portal-msg, portal-tight-bottom,
              portal-pagebreak, portal-map, portal-chart-lg, portal-hr-tight, clear, stats-note
   Page scopes: .pma-report (PMAReport), .trends-report (Trends), .demographics-report,
                .property-view, .metro-report
   ============================================================================= */

body.portal-modern .portal-search {
  padding-bottom: 0.35rem;
  color: #1c2b4a;
}

body.portal-modern .portal-search .row {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 0.75rem;
  --bs-gutter-x: 0;
}

body.portal-modern .portal-search .row::after {
  content: "";
  display: table;
  clear: both;
}

body.portal-modern .portal-search .row > * {
  width: auto;
  max-width: none;
  padding: 0;
}

body.portal-modern .portal-search .twelve.columns { width: 100%; float: none; }

body.portal-modern .portal-search .result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

body.portal-modern .portal-search .result-title > span {
  min-width: 0;
}

body.portal-modern .portal-search .result-title .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
body.portal-modern .portal-search .result-description {
  clear: both;
  width: 100%;
  margin-top: 0.35rem;
}

body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 10.5rem;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: start;
}

body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) > .portal-sort-bar,
body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) > div:not([class*="columns"]) {
  grid-column: 1 / -1;
}

body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) > .five.columns,
body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) > .result-photo {
  width: auto;
  float: none;
  min-width: 0;
}

body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo) > .result-description {
  grid-column: 1 / 3;
  clear: none;
  width: auto;
  margin-top: 0.15rem;
}

body.portal-modern .portal-search .result-photo {
  align-self: start;
}

body.portal-modern .portal-search .result-photo a {
  display: block;
}

body.portal-modern .portal-search .result-photo img {
  display: block;
  width: 100%;
  height: 7.5rem;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: #f4f7f9;
}

body.portal-modern .portal-search .result-photo:not(:has(a)) {
  display: none;
}

body.portal-modern .portal-search table.portal-results > tbody > tr > td:has(.result-photo:not(:has(a))) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body.portal-modern .portal-search .result-description table {
  width: 100%;
  table-layout: auto;
}
body.portal-modern .portal-search .result-description td:first-child {
  width: 1%;
  white-space: nowrap;
  vertical-align: top;
  padding-right: 1rem;
}
body.portal-modern .portal-search .result-description td:last-child {
  width: 99%;
}
body.portal-modern .portal-search .six.columns { width: 50%; float: left; }
body.portal-modern .portal-search .five.columns { width: 41%; float: left; }
body.portal-modern .portal-search .two.columns { width: 18%; float: left; }

body.portal-modern .portal-search .portal-hero .row {
  position: relative;
  z-index: 1;
}

body.portal-modern .portal-search .clear {
  clear: both;
}

/* --- Filter panel (canonical: .portal-filters; alias: .tx-search-filters) --- */
body.portal-modern .portal-search .portal-filters,
body.portal-modern .portal-search .tx-search-filters {
  margin: 1.25rem auto;
  padding: 0.35rem 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 43, 74, 0.04), 0 10px 28px rgba(28, 43, 74, 0.04);
  width: fit-content;
}

body.portal-modern .portal-search .portal-filters:has(.filter-notes),
body.portal-modern .portal-search .tx-search-filters:has(.filter-notes) {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2rem;
  padding-right: 1.25rem;
  padding-left: 0.75rem;
}

body.portal-modern .portal-search .portal-filters:has(.filter-notes) > div:first-child,
body.portal-modern .portal-search .portal-filters:has(.filter-notes) > span:first-child,
body.portal-modern .portal-search .tx-search-filters:has(.filter-notes) > div:first-child,
body.portal-modern .portal-search .tx-search-filters:has(.filter-notes) > span:first-child {
  flex: 1 1 auto;
}

body.portal-modern .portal-search .filter-notes {
  float: none;
  width: auto;
  flex: 0 1 32%;
  max-width: 340px;
  margin: 0.85rem 0.5rem 0 0;
  padding: 5.25rem 0.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #3d4f5f;
  box-shadow: none;
}

body.portal-modern .portal-search .filter-notes ul {
  margin: 0;
}

@media (max-width: 900px) {
  body.portal-modern .portal-search .portal-filters[style*="float"],
  body.portal-modern .portal-search .tx-search-filters[style*="float"] {
    width: 68% !important;
  }

  body.portal-modern .portal-search .filter-notes {
    float: none;
    width: auto !important;
    margin-left: 0;
  }
}

body.portal-modern .portal-search .portal-filters > table,
body.portal-modern .portal-search .tx-search-filters > table {
  border: 0 !important;
}

body.portal-modern .portal-search select,
body.portal-modern .portal-search .dropdown-toggle,
body.portal-modern .portal-search input[type="text"] {
  height: auto;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a;
  font-size: 0.9rem;
}

body.portal-modern .portal-choice,
body.portal-modern table.portal-choice {
  border-collapse: collapse;
}

body.portal-modern table.portal-choice td {
  padding: 0.12rem 0 !important;
  vertical-align: middle;
}

body.portal-modern table.portal-choice td:has(input) {
  width: fit-content;
  padding-right: 0.9rem !important;
  white-space: nowrap;
}

body.portal-modern .portal-choice input[type="checkbox"],
body.portal-modern .portal-choice input[type="radio"],
body.portal-modern input.portal-choice {
  margin: 0 0.35rem 0 0 !important;
  vertical-align: middle;
  accent-color: #188f9e;
}

body.portal-modern table.portal-choice label,
body.portal-modern input.portal-choice + label,
body.portal-modern .filter-option-choice label {
  margin: 0 !important;
  font-size: 0.78rem;
  line-height: 1.2;
  vertical-align: middle;
}

body.portal-modern .filter-option {
  display: flex;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0.45rem 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 8px;
}

body.portal-modern .filter-option-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem;
  background: #f7fafb;
  border-right: 1px solid #e6ebf0;
  white-space: nowrap;
}

body.portal-modern .filter-option-choice input,
body.portal-modern .filter-option-choice input.portal-choice {
  margin: 0 !important;
}

body.portal-modern .filter-option select {
  width: auto !important;
  max-width: none;
  flex: 0 0 auto;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  background: #fff;
}

body.portal-modern .portal-search #spanLoginMessage,
body.portal-modern .portal-search #spanUpgradeMessage,
body.portal-modern .portal-search #spanAdditionalAccess {
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border: 1px solid #e6ebf0;
  border-left: 4px solid #e07a68;
  border-radius: 10px;
  background: #fff !important;
  color: #1c2b4a;
  text-align: left;
}

body.portal-modern .portal-search table {
  border-collapse: separate;
  border-spacing: 0;
}

/* --- Summary tables (canonical: table.summary-table) ---
   One look for every compact stats grid. */
body.portal-modern table.summary-table {
  width: 100%;
  margin: 0.75rem 0 1.25rem;
  background: #fff;
  border: 1px solid #e6ebf0 !important;
  border-radius: 12px;
  border-collapse: separate !important;
  border-spacing: 0;
  overflow: hidden;
  font-size: 0.75rem;
}

body.portal-modern table.summary-table th,
body.portal-modern table.summary-table td {
  text-align: center;
  border: 0 !important;
  font-size: 0.75rem;
}


body.portal-modern table.summary-table th {
  padding: 0.7rem 0.6rem;
  background: var(--portal-header-bg) !important;
  color: #4d585d !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

body.portal-modern table.summary-table td {
  padding: 0.55rem 0.65rem;
  background: transparent !important;
}

body.portal-modern table.summary-table tr {
  background: #fff !important;
}

body.portal-modern table.summary-table tr:nth-child(odd) {
  background: #f1f8f9 !important;
}

body.portal-modern table.summary-table tr:first-child:has(th) {
  background: var(--portal-header-bg) !important;
}

body.portal-modern .portal-search [id$="pnlResults"] > table:not(.portal-results):not(.summary-table) {
  margin: 0.35rem 0 0.45rem;
}

body.portal-modern .portal-search [id$="pnlResults"] > table:not(.portal-results):not(.summary-table) th,
body.portal-modern .portal-search [id$="pnlResults"] > table:not(.portal-results):not(.summary-table) th a {
  color: #4d585d !important;
}

/* --- Results (canonical: table.portal-results / DataList.portal-results) ---
   List usage: DataList/repeaters with nested field-value tables (Construction, Tx, Entities).
   Grid usage: GridView + HeaderStyle-CssClass="portal-heading" (MetroRankings, metro reports).
   Nested td:first-child label tint applies to list-style nested tables only. */
body.portal-modern table.portal-results {
  width: 100%;
  margin: 0.5rem 0 10px;
  background: #fff;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 12px !important;
  overflow: visible;
  font-size: 0.75rem;
  box-shadow: 4px 6px 10px 4px #9c9c9c;
}

body.portal-modern table.portal-results th,
body.portal-modern table.portal-results td {
  font-size: 0.75rem;
}

body.portal-modern .metro-report table.portal-results th {
  font-size: 0.72rem !important;
  white-space: nowrap;
}

body.portal-modern .metro-report table.portal-results td {
  font-size: 0.75rem !important;
}

body.portal-modern table.portal-results th {
  text-align: center;
}

/* Demographics metric grids keep left-aligned headers/labels */
body.portal-modern .portal-search.demographics-report table.portal-results th,
body.portal-modern .portal-search.demographics-report table.portal-results td:first-child {
  text-align: left;
}

body.portal-modern table.portal-results > :first-child > tr:first-child > :first-child {
  border-top-left-radius: 12px;
}

body.portal-modern table.portal-results > :first-child > tr:first-child > :last-child {
  border-top-right-radius: 12px;
}

body.portal-modern table.portal-results > tbody > tr:last-child > :first-child {
  border-bottom-left-radius: 12px;
}

body.portal-modern table.portal-results > tbody > tr:last-child > :last-child {
  border-bottom-right-radius: 12px;
}

body.portal-modern table.portal-results > tbody > tr > td {
  padding: 0.28rem 0.45rem !important;
}

/* List-style nested field/value tables inside DataList items */
body.portal-modern table.portal-results table td:first-child {
  width: 1%;
  color: #188f9e;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 0.08rem 0.4rem 0.08rem 0;
}

body.portal-modern table.portal-results table td:last-child {
  font-size: 0.78rem;
  padding: 0.08rem 0.3rem;
}

body.portal-modern .portal-search .contact-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5c6b7a;
}

/* --- Chart panel (canonical: .portal-charts) ---
   White flex host for Google chart divs. Keep behavioral heights on chart
   nodes when JS sizes them; modifiers adjust flex basis only. */
body.portal-modern .portal-charts {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1.75rem;
  width: 100%;
  margin: 0.25rem 0 1.5rem;
  overflow: visible;
  clear: both;
}

body.portal-modern .portal-charts > [id^="chart"],
body.portal-modern .portal-charts > [id^="Pie"] {
  float: none !important;
  flex: 1 1 360px;
  max-width: 600px;
  min-width: 340px;
  min-height: 280px;
  height: fit-content;
  margin: 0 !important;
  overflow: visible;
}

/* Dual-vAxis charts: high flex-basis forces wrap (avoid ~360px squeeze).
   ~640px + chartArea L/R ~76 keeps Growth / Total SF titles visible. */
body.portal-modern .portal-charts-dual {
  gap: 1.5rem;
  justify-content: center;
}

body.portal-modern .portal-charts-dual > [id^="chart"] {
  flex: 1 1 560px;
  max-width: 640px;
  min-width: min(480px, 100%);
  min-height: 300px;
  width: 100%;
}

body.portal-modern .portal-charts-wide {
  gap: 1rem;
  margin: 0.25rem 0 0.6rem;
}

body.portal-modern .portal-charts-wide > [id^="chart"] {
  flex: 1 1 48%;
  max-width: none;
  min-width: 420px;
  height: 260px;
}

/* Filter internals (labels / column gaps) — scoped to canonical + alias */
body.portal-modern .filter-label {
  color: #4d585d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
  white-space: nowrap;
}

body.portal-modern .portal-filters > table > tbody > tr > td + td,
body.portal-modern .tx-search-filters > table > tbody > tr > td + td {
  padding-left: 1.25rem;
}

body.portal-modern .filter-inline-label {
  font-size: 0.75rem;
  color: #4d585d;
  margin-right: 0.25rem;
}

body.portal-modern .portal-filters .filter-label,
body.portal-modern .portal-filters .portal-choice label,
body.portal-modern .portal-filters input.portal-choice + label,
body.portal-modern .tx-search-filters .filter-label,
body.portal-modern .tx-search-filters .portal-choice label,
body.portal-modern .tx-search-filters input.portal-choice + label {
  font-size: 0.68rem;
}

/* MetroRankings / dense sortable GridView (portal-results grid usage) */
body.portal-modern .portal-search table[id$="gvData"] {
  font-size: 0.75rem;
}

body.portal-modern .portal-search table[id$="gvData"] th,
body.portal-modern .portal-search table[id$="gvData"] td {
  font-size: 0.75rem;
  vertical-align: middle;
  padding: 0.35rem 0.45rem;
}

body.portal-modern .portal-search table[id$="gvData"] th:first-child,
body.portal-modern .portal-search table[id$="gvData"] td:first-child {
  text-align: left;
}

body.portal-modern .portal-search table[id$="gvData"] th:not(:first-child),
body.portal-modern .portal-search table[id$="gvData"] td:not(:first-child) {
  text-align: right;
}

body.portal-modern .portal-search table[id$="gvData"] th a {
  color: #4d585d !important;
  opacity: 1;
}

body.portal-modern table.portal-results th.sort-active,
body.portal-modern table.portal-results th.sort-active a {
  color: #188f9e !important;
  opacity: 1;
}

body.portal-modern .portal-search .reports.portal-card {
  position: relative;
}

body.portal-modern .portal-search .reports.portal-card > .card-header {
  min-height: 3.2rem;
  padding-right: 11rem;
}

body.portal-modern .portal-search .report-upload-btn {
  position: absolute !important;
  top: 0.7rem;
  right: 1rem;
  z-index: 2;
  margin: 0;
}

body.portal-modern .portal-search .deactivate-reports {
  margin: 0 0 1.25rem;
  border: 1px solid #e6c1b9;
  border-left: 4px solid #e07a68;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

body.portal-modern .portal-search .deactivate-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fbf6f4;
  color: #4d585d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  
  cursor: pointer;
}

body.portal-modern .portal-search .deactivate-toggle i {
  display: none;
}

body.portal-modern .portal-search .deactivate-toggle::after {
  content: "\25B8";
  color: #c9796b;
  font-size: 0.9rem;
}

body.portal-modern .portal-search .deactivate-reports.is-open .deactivate-toggle::after {
  content: "\25BE";
}

body.portal-modern .portal-search .deactivate-reports .panelClass {
  display: none;
  padding: 0.35rem 0.75rem 0.75rem;
  background: #fff;
}

body.portal-modern .portal-search .deactivate-reports.is-open .panelClass {
  display: block;
}

body.portal-modern .portal-search .deactivate-reports table {
  font-size: 0.84rem;
}

body.portal-modern .portal-search .report-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 1rem 2rem;
  background: rgba(28, 43, 74, 0.45);
  overflow: auto;
}

body.portal-modern .portal-search .report-upload-card {
  width: min(680px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 0 0 1.15rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(28, 43, 74, 0.18);
}

body.portal-modern .portal-search .report-upload-card .portal-modal-header {
  margin: 0;
  border-radius: 12px 12px 0 0;
}

body.portal-modern .portal-search .report-upload-body {
  padding: 1rem 1.25rem 0;
}

body.portal-modern .portal-search .report-upload-card .m5 {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.55rem 0;
}

body.portal-modern .portal-search .report-upload-card .report-upload-period {
  grid-template-columns: 8.25rem minmax(6rem, 0.7fr) auto minmax(6rem, 0.7fr);
}

body.portal-modern .portal-search .report-upload-card .report-upload-source {
  display: flex;
  justify-content: flex-start;
}

body.portal-modern .portal-search .report-upload-card label,
body.portal-modern .portal-search .report-upload-card span[id$="lblQtr"],
body.portal-modern .portal-search .report-upload-card span[id$="lblUrl"] {
  margin: 0;
  color: #4d585d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  
}

body.portal-modern .portal-search .report-upload-card select,
body.portal-modern .portal-search .report-upload-card input[type="text"],
body.portal-modern .portal-search .report-upload-card input[type="file"] {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
  height: auto;
  padding: 0.35rem 0.5rem;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a;
  font-size: 0.9rem;
}

body.portal-modern .portal-search .report-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

body.portal-modern .portal-search .report-upload-actions .validator {
  flex: 1 0 100%;
  height: auto;
  margin: 0;
}

body.portal-modern .portal-search .entity-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
  padding: 0.55rem 0.8rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
}

body.portal-modern .portal-search .entity-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

body.portal-modern .portal-search .entity-nav-label {
  color: #5c6b7a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  
}

body.portal-modern .portal-search .entity-nav a {
  color: #c9796b;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

body.portal-modern .portal-search .entity-nav a:hover {
  text-decoration: underline;
}

body.portal-modern .portal-search .entity-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0.4rem 2rem;
  align-items: start;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
}

body.portal-modern .portal-search .entity-profile-main {
  grid-column: 1;
  align-self: start;
}

body.portal-modern .portal-search .entity-news {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  float: none !important;
  min-width: 0;
}

/*body.portal-modern .portal-search .entity-news :is(h2, h3) {
  margin: 0 0 0.55rem;
  color: #4d585d;
  font-weight: 700;
  letter-spacing: 0.06em;
  
}*/

body.portal-modern .portal-search .entity-news [id$="divNews"] {
  max-height: 280px;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  background: #f8fbfc;
}

body.portal-modern .portal-search .entity-news .alternate {
  background: #fff;
}

body.portal-modern .portal-search .entity-news .left-column {
  max-width: none;
  min-width: 0;
  flex: 1 1 auto;
}

body.portal-modern .portal-search .entity-news .right-column {
  flex: 0 0 auto;
  color: #5c6b7a;
  font-size: 0.72rem;
  white-space: nowrap;
}

body.portal-modern .portal-search .entity-news a {
  font-size: 0.82rem;
  text-decoration: none;
}

@media (max-width: 900px) {
  body.portal-modern .portal-search .entity-profile,
  body.portal-modern .portal-search .entity-news {
    grid-column: 1;
    grid-row: auto;
  }
}

/*body.portal-modern .portal-search .entity-profile :is(h2, h3, h5) {
  margin: 0 0 0.9rem;
}*/

body.portal-modern .portal-search .entity-section {
  margin-top: 1.35rem;
}

body.portal-modern .portal-search .entity-note {
  margin: 0.45rem 0 0.75rem;
  color: #5c6b7a;
  font-size: 0.88rem;
}

body.portal-modern .portal-search .entity-section .btn,
body.portal-modern .portal-search :is(h2, h3).portal-heading + .btn,
body.portal-modern .portal-search :is(h2, h3).portal-heading + a.btn {
  margin: 0 0 0.65rem;
}

body.portal-modern .portal-search .entity-layout {
  width: 100%;
  margin: 0;
}

body.portal-modern .portal-search .entity-layout > tbody > tr > td:last-child {
  width: 220px;
  text-align: right;
  vertical-align: top;
}

body.portal-modern .portal-search .entity-facts td {
  padding: 0.32rem 0;
  vertical-align: top;
}

body.portal-modern .portal-search .entity-facts td:first-child {
  width: 8.5rem;
  padding-right: 0.85rem;
  color: #188f9e;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  
  white-space: nowrap;
}

body.portal-modern .portal-search .entity-facts td:last-child {
  color: #1c2b4a;
  font-size: 0.92rem;
  font-weight: 600;
}

body.portal-modern .portal-search .entity-profile img {
  max-width: 200px;
  height: auto;
}

body.portal-modern .portal-search table[id$="gvRatings"] {
  width: 100%;
  max-width: 720px;
  margin-top: 0.25rem;
  box-shadow: 0 8px 18px rgba(28, 43, 74, 0.08);
}

body.portal-modern .portal-search #PMixPieChart,
body.portal-modern .portal-search #RevMixPieChart {
  min-height: 240px;
  overflow: visible;
}

body.portal-modern .portal-search .single-report {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

body.portal-modern .portal-search .single-report .report-part {
  float: none;
  width: auto;
  overflow: visible;
}
    body.portal-modern .portal-search .single-report .report-part:not(:has(a)) {
        font-size: 12px;
    }

body.portal-modern .portal-search .single-report img {
  width: 32px;
  margin: 0;
}

body.portal-modern .portal-search .single-report :is(h2, h3),
body.portal-modern .portal-search .single-report p {
  margin: 0.1rem 0;
}

body.portal-modern .portal-search .single-report a {
  text-decoration: underline;
}

body.portal-modern .portal-filters > table > tbody > tr > td:empty,
body.portal-modern .portal-filters > table > tbody > tr:has(> td:empty),
body.portal-modern .tx-search-filters > table > tbody > tr > td:empty,
body.portal-modern .tx-search-filters > table > tbody > tr:has(> td:empty) {
  display: none;
}

body.portal-modern #btnBackToTop {
  z-index: 1040;
  border: 0;
  border-radius: 8px;
  background: #188f9e;
  color: #fff;
  font-weight: 600;
}

body.portal-modern #btnBackToTop:hover {
  background: #127986;
}

body.portal-modern .ui-autocomplete,
body.portal-modern .ui-dialog {
  position: fixed;
  z-index: 1060;
}

body.portal-modern #helpRent,
body.portal-modern #helpDialog,
body.portal-modern #helpDialog135,
body.portal-modern #helpDialogDemo,
body.portal-modern #puDownloadBlocked,
body.portal-modern #puProvidersBySpecialty {
  display: none !important;
}

body.portal-modern .ui-dialog.portal-dialog-open #helpRent,
body.portal-modern .ui-dialog.portal-dialog-open #helpDialog,
body.portal-modern .ui-dialog.portal-dialog-open #helpDialog135,
body.portal-modern .ui-dialog.portal-dialog-open #helpDialogDemo,
body.portal-modern .ui-dialog.portal-dialog-open #puDownloadBlocked,
body.portal-modern .ui-dialog.portal-dialog-open #puProvidersBySpecialty {
  display: block !important;
}

/* Match Bootstrap account-details modal look for jQuery UI dialogs */
body.portal-modern .ui-widget-overlay {
  background: #1c2b4a;
  opacity: 0.45;
  filter: none;
}

body.portal-modern .ui-dialog.ui-widget.ui-widget-content {
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: #1c2b4a;
  box-shadow: 0 24px 60px rgba(28, 43, 74, 0.18);
  overflow: hidden;
}

body.portal-modern .ui-dialog .ui-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--portal-header-border);
  border-radius: 0;
  background: var(--portal-header-bg);
  color: #1c4d56;
  cursor: default;
}

body.portal-modern .ui-dialog .ui-dialog-title {
  float: none;
  width: auto;
  max-width: calc(100% - 2.5rem);
  margin: 0;
  color: #4d585d;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.portal-modern .ui-dialog .ui-dialog-titlebar-close {
  position: static;
  float: none;
  width: 1rem;
  height: 1rem;
  margin: 0 0 0 auto;
  padding: 0.25em;
  border: 0;
  border-radius: 0.25rem;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  opacity: 0.5;
  box-shadow: none;
}

body.portal-modern .ui-dialog .ui-dialog-titlebar-close:hover,
body.portal-modern .ui-dialog .ui-dialog-titlebar-close:focus {
  opacity: 0.85;
  background-color: transparent;
  border: 0;
  outline: 0;
}

body.portal-modern .ui-dialog .ui-dialog-titlebar-close .ui-icon,
body.portal-modern .ui-dialog .ui-dialog-titlebar-close .ui-button-icon,
body.portal-modern .ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
  display: none;
}

body.portal-modern .ui-dialog .ui-dialog-content {
  padding: 1rem 1.25rem 1.25rem;
  background: #fff;
  color: #1c2b4a;
  border: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.portal-modern .ui-dialog .ui-dialog-buttonpane {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #eef2f5;
  background: #fff;
}

body.portal-modern .ui-dialog .ui-resizable-handle {
  display: none;
}

body.portal-modern .property-view {
  --pv-accent: #188f9e;
  --pv-section-gap: 1.15rem;
  font-size: 0.875rem;
}

body.portal-modern .property-view .entity-facts td:last-child {
  font-size: 0.82rem;
}

body.portal-modern .property-view .contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.portal-modern .property-view .contact-block > :empty,
body.portal-modern .property-view .contact-block > div:not(:has(:not(:empty))),
body.portal-modern .property-view .contact-block > address:not(:has(:not(:empty))) {
  display: none;
}

body.portal-modern .property-view .row {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  width: auto;
  max-width: none;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  padding: 0;
  margin-bottom: 0.65rem;
}

body.portal-modern .property-view .row.g-3 {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

body.portal-modern .property-view .row.g-4 {
  --bs-gutter-x: 1.15rem;
  --bs-gutter-y: 1.15rem;
}

body.portal-modern .property-view .row::after {
  content: none;
  display: none;
}

body.portal-modern .property-view .row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

@media (min-width: 768px) {
  body.portal-modern .property-view .row.row-cols-md-2 > * {
    flex: 0 0 auto;
    width: 50%;
  }
}

@media (min-width: 992px) {
  body.portal-modern .property-view .row > .col-lg-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  body.portal-modern .property-view .row > .col-lg-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  body.portal-modern .property-view .row > .col-lg-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  body.portal-modern .property-view .row > .col-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (min-width: 1200px) {
  body.portal-modern .property-view .row.row-cols-xl-3 > * {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}

body.portal-modern .property-view.type-2 { --pv-accent: #77b142; }
body.portal-modern .property-view.type-3 { --pv-accent: #77cfdf; }
body.portal-modern .property-view.type-4 { --pv-accent: #485b62; }
body.portal-modern .property-view.type-7 { --pv-accent: #c4ad2e; }
body.portal-modern .property-view.type-12,
body.portal-modern .property-view.type-18,
body.portal-modern .property-view.type-19,
body.portal-modern .property-view.type-23 { --pv-accent: #f18e20; }

body.portal-modern .property-view .property-profile {
  border-bottom: 4px solid #c9796b;
}

body.portal-modern .property-view .property-side {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

body.portal-modern .property-view .property-photo {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

body.portal-modern .property-view .property-photo #slider1_container {
  max-width: 100% !important;
  border-radius: 12px;
}

body.portal-modern .property-view .property-side > [id$="pnlContacts"] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

body.portal-modern .property-view .property-side .portal-card {
  flex: 1 1 auto;
  margin-bottom: 0;
}

body.portal-modern .property-view .property-marker {
  width: 34px;
  height: auto;
  margin-top: 0.15rem;
}

body.portal-modern .property-view .property-type-badge {
  background: var(--pv-accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.portal-modern .property-view.type-7 .property-type-badge {
  color: #3a464b;
}

body.portal-modern .property-view .property-address {
  margin-top: 0.2rem;
}

body.portal-modern .portal-hero .action-favorite {
  min-width: 2.4rem;
}

body.portal-modern .portal-hero .action-favorite i {
    font-style: normal;
    display: inline-block;
    line-height: 1;
    transform: scale(1.7); 
}

body.portal-modern .portal-hero .action-favorite .icon-heart-empty::before,
body.portal-modern .portal-hero .action-favorite .icon-heart::before {
  font-size: 1em;
  line-height:1;
}

body.portal-modern .portal-hero .action-favorite:hover .icon-heart-empty::before,
body.portal-modern .portal-hero .action-favorite:hover .icon-heart::before {
  color: #fff;
}

body.portal-modern .property-view .entity-facts {
  width: 100%;
}

body.portal-modern .property-view .entity-facts td:first-child {
  width: 46%;
  white-space: normal;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

body.portal-modern .property-view .construction-description {
  table-layout: fixed;
}

body.portal-modern .property-view .construction-description td:first-child {
  width: 8.5rem;
  white-space: nowrap;
}

body.portal-modern .property-view .construction-description td:last-child {
  width: auto;
}

body.portal-modern .property-view .entity-nav,
body.portal-modern .property-view .entity-profile,
body.portal-modern .property-view .entity-section,
body.portal-modern .property-view .portal-card,
body.portal-modern .property-view .report-actions {
  margin-top: 0;
  margin-bottom: var(--pv-section-gap);
}

body.portal-modern .property-view .entity-section {
  overflow-x: auto;
}

body.portal-modern .property-view .print-avoid {
  page-break-inside: avoid;
}

body.portal-modern .property-view [id^="a"] {
  scroll-margin-top: 5.5rem;
}

body.portal-modern .property-view .property-map {
  width: 100%;
  height: 375px;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  overflow: hidden;
  background: #e7eef2;
}

body.portal-modern .property-view .property-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.portal-modern .property-view .pv-table {
  margin: 0 0 0.75rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  overflow: hidden;
}

body.portal-modern .property-view .pv-table-header {
  padding: 0.65rem 0.85rem;
  background: var(--portal-header-bg);
  border-bottom: 1px solid var(--portal-header-border);
  font-weight: 600;
}

body.portal-modern .property-view .pv-table-header table {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0 !important;
}

body.portal-modern .property-view .pv-table-body {
  display: table;
  width: 100%;
}

body.portal-modern .property-view .pv-table-row {
  display: table-row;
}

body.portal-modern .property-view .pv-table-row.alternate {
  background: #f8fbfc;
}

body.portal-modern .property-view .pv-table-cell {
  display: table-cell;
  padding: 0.45rem 0.75rem;
  vertical-align: top;
  color: #188f9e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

body.portal-modern .property-view .pv-table-cell.value {
  color: #1c2b4a;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
}

body.portal-modern .property-view .pv-hospital-link {
  color: #c9796b;
  font-weight: 600;
}

body.portal-modern .property-view tr.portal-heading > td a.pv-hospital-link:not(.btn) {
  color: #c9796b !important;
}

body.portal-modern .property-view tr.portal-heading > td a.pv-hospital-link:not(.btn):hover {
  color: #bb5746 !important;
}

body.portal-modern .property-view a.property-link :is(h2, h3, h5) {
  color: #c9796b;
}

body.portal-modern .property-view a.property-link:hover :is(h2, h3, h5) {
  color: #bb5746;
}

body.portal-modern .property-view .pv-table-row[style*="display:flex"] {
  padding: 0.85rem;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  background-color: #f8fbfc !important;
}

body.portal-modern .property-view .broker-name {
  margin: 0 0 0.2rem;
  color: #4d585d;
  font-size: 0.98rem;
  font-weight: 600;
}

body.portal-modern .property-view .pv-table-flush {
  margin: 0;
}

body.portal-modern .property-view .pv-tx-date {
  width: 15%;
}

body.portal-modern .property-view .pv-tx-type {
  width: 20%;
}

body.portal-modern .property-view .pv-tx-amount {
  width: 15%;
}

/* Empty nearest-MOB / NPI tables: no rows when Repeater is hidden or unbound */
body.portal-modern .property-view .portal-card .card-body table.portal-results:not(:has(tr)) {
  display: none;
  margin: 0;
}

body.portal-modern .property-view table.portal-results > tbody > tr.pv-table-row.alternate {
  background-color: #f8fbfc !important;
}

/* hospital_compare numeric grid: label column left; metric column widths */
body.portal-modern .property-view table.portal-results-numeric > tbody > tr > td:first-child {
  text-align: left;
}

body.portal-modern .property-view .portal-col-label {
  width: 22%;
}

body.portal-modern .property-view .portal-col-metric {
  width: 26%;
}

/* .portal-hr-tight: shared utility defined above */

body.portal-modern .property-view table.portal-results .pv-table-header table td,
body.portal-modern .property-view table.portal-results .pv-table-header table td:first-child,
body.portal-modern .property-view table.portal-results .pv-table-header table td:last-child {
  width: auto;
  color: #4d585d;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: normal;
  padding: 0.35rem 0.45rem;
}

/* PropertyTransactions DataList: 2-column item grid without control edits */
body.portal-modern .property-view [id$="dlTransactions"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
}

body.portal-modern .property-view [id$="dlTransactions"] > tbody,
body.portal-modern .property-view [id$="dlTransactions"] > tr {
  display: contents;
}

body.portal-modern .property-view [id$="dlTransactions"] > tbody > tr {
  display: contents;
}

body.portal-modern .property-view [id$="dlTransactions"] > tbody > tr > td,
body.portal-modern .property-view [id$="dlTransactions"] > tr > td {
  display: block;
  padding: 0 !important;
  border: 0 !important;
  vertical-align: top;
}

body.portal-modern .property-view [id$="dlTransactions"] .pv-table {
  margin: 0;
  height: 100%;
}

@media (max-width: 900px) {
  body.portal-modern .property-view [id$="dlTransactions"] {
    grid-template-columns: 1fr;
  }
}

body.portal-modern .property-view .pv-alert {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-left: 4px solid #e07a68;
  border-radius: 10px;
}

body.portal-modern .property-view .icon-alert::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #e07a68;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 900px) {
  body.portal-modern .property-view .property-profile {
    grid-template-columns: 1fr;
  }
}

/* PMA specialty demand legend chips */
body.portal-modern .portal-search .demand-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0.75rem 0 1rem;
}

body.portal-modern .portal-search .demand-legend-item {
  flex: 1 1 280px;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  color: #1c2b4a;
  font-size: 0.85rem;
  line-height: 1.35;
  text-align: center;
}

body.portal-modern .portal-access-banner {
  background-color: #c4d4da;
  text-align: center;
}

body.portal-modern .hospital-market-share .portal-access-banner {
  margin: 0.75rem 0.75rem 0;
  padding: 0.65rem 1rem;
}

body.portal-modern .hospital-market-share .hms-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.15rem 0;
}

body.portal-modern .hospital-market-share .hms-identity :is(h2, h3) {
  margin: 0 0 0.2rem;
  color: #4d585d;
  font-weight: 500;
}

body.portal-modern .hospital-market-share .hms-address {
  color: #5c6b7a;
  font-size: 0.9rem;
}

body.portal-modern .hospital-market-share .hms-empty {
  color: #b01515;
  font-size: 0.95rem;
}

body.portal-modern .hospital-market-share .hms-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.portal-modern .hospital-market-share .hms-map-panel {
  margin-bottom: 0.5rem;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
}

body.portal-modern .hospital-market-share .hms-share-select {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  color: #4d585d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  
}

body.portal-modern .hospital-market-share .hms-share-select .portal-choice {
  display: flex;
  gap: 1rem;
  color: #1c2b4a;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

body.portal-modern .hospital-market-share .hms-share-select .portal-choice label {
  margin: 0;
  cursor: pointer;
}

body.portal-modern .hospital-market-share #map.portal-map {
  height: 600px;
  border: 1px solid #e6ebf0;
  border-radius: 10px;
  overflow: hidden;
}

body.portal-modern .hospital-market-share .hms-scale,
body.portal-modern .hospital-market-share .hms-scale-labels {
  display: flex;
  width: 100%;
  text-align: center;
}

body.portal-modern .hospital-market-share .hms-scale {
  margin-top: 0.65rem;
  overflow: hidden;
  border-radius: 8px;
}

body.portal-modern .hospital-market-share .hms-scale > div {
  width: 20%;
  height: 0.85rem;
}

body.portal-modern .hospital-market-share .hms-scale-1 { background: #efdfcc; opacity: 0.4; }
body.portal-modern .hospital-market-share .hms-scale-2 { background: #d99f88; opacity: 0.4; }
body.portal-modern .hospital-market-share .hms-scale-3 { background: #b34e34; opacity: 0.45; }
body.portal-modern .hospital-market-share .hms-scale-4 { background: #7d271a; opacity: 0.55; }
body.portal-modern .hospital-market-share .hms-scale-5 { background: #660202; opacity: 0.65; }

body.portal-modern .hospital-market-share .hms-scale-labels {
  margin: 0.25rem 0 0.85rem;
}

body.portal-modern .hospital-market-share .hms-scale-labels > div {
  width: 20%;
  color: #4d585d;
  font-size: 0.78rem;
}

body.portal-modern .hospital-market-share .hms-source {
  margin: 0.35rem 0 0.5rem;
  color: #5c6b7a;
  font-size: 0.78rem;
}

/* Optional outer ASP Panel around .portal-filters — page-tint only, not the white card */
body.portal-modern .portal-filter-panel {
  background-color: #f3f6f7;
}

body.portal-modern tr.portal-heading {
  font-weight: 700;
}

body.portal-modern .portal-search .demand-legend-over {
  background: #f6d6d4;
  border: 1px solid #e7b4af;
}

body.portal-modern .portal-search .demand-legend-under {
  background: #d9efe8;
  border: 1px solid #b5d9cc;
}

body.portal-modern .portal-search .pma-provider-list > div + div {
  margin-top: 0.85rem;
}

/* =============================================================================
   PMA Report (PMAReport.aspx) — map / info panel under portal-search
   Keep .pma-* class hooks used by legacy style.css + pma.js.
   ============================================================================= */

body.portal-modern .portal-card .card-body > table.portal-results:first-child {
  margin-top: 0;
}

body.portal-modern .pma-report .portal-card {
  margin-bottom: 1.75rem;
}

body.portal-modern .portal-search.pma-report .pma-map-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 1rem 0 1.5rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 43, 74, 0.04), 0 10px 28px rgba(28, 43, 74, 0.04);
  overflow: hidden;
}

body.portal-modern .portal-search.pma-report .pma-map {
  flex: 1 1 62%;
  min-width: 280px;
  background: #4d585d;
  border-top: 0;
  padding-bottom: 0;
  color: #fff;
}

body.portal-modern .portal-search.pma-report .pma-map-canvas,
body.portal-modern .portal-search.pma-report #map.portal-map {
  height: 95%;
  width: 100%;
  margin-top:2%;
  margin-bottom:2%;
}

body.portal-modern .portal-search.pma-report .pma-info-box {
  flex: 1 1 320px;
  max-width: 100%;
  position: relative;
  background: #fff;
  padding: 0.85rem 1rem 1rem;
  border-top: 0;
  border-left: 1px solid #eef2f5;
}

body.portal-modern .portal-search.pma-report .pma-info-box:after {
  display: none;
}

body.portal-modern .portal-search.pma-report .pma-market-select {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.65rem;
  background: #4d585d;
  border-radius: 8px;
  width: 100%;
}

body.portal-modern .portal-search.pma-report .pma-market-select select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

body.portal-modern .portal-search .pma-density {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

body.portal-modern .portal-search .pma-density-toolbar {
  display: contents;
}

body.portal-modern .portal-search .pma-density h5 {
  margin-right: auto;
}

body.portal-modern .portal-search .pma-density .density-glossary-actions {
  margin: 0;
}

body.portal-modern .portal-search.pma-report .pma-result-photo img {
  display: block;
  width: 10.5rem;
  height: 7.5rem;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
}

body.portal-modern .portal-search.pma-report .pma-legend-label {
  color: #fff;
  margin: 0;
}

body.portal-modern .portal-search.pma-report .pma-info-box :is(h2, h3, h4, h5).pagetitle {
  margin: 0.35rem 0 0.65rem;
  letter-spacing: normal;
  text-transform: none;
}

body.portal-modern .portal-search.pma-report .pma-info-box-placeholder {
  margin: 0.5rem 0;
  padding: 0.65rem;
  background: #f7fafb;
  border-radius: 8px;
}

body.portal-modern .portal-search.pma-report .pma-export-actions {
  background: transparent;
  padding: 0.35rem 0 0;
  margin: 0;
}

body.portal-modern .portal-search.pma-report .pma-pie-charts > [id^="Pie"] {
  float: none !important;
  flex: 1 1 220px;
  min-width: 200px;
  max-width: 320px;
  min-height: 240px;
  height: 260px;
  margin: 0 !important;
}

body.portal-modern .portal-search.pma-report .pma-info-box-placeholder .portal-hr-tight {
  border-top-width: 2px;
  border-top-color: #4d585d;
}

@media (max-width: 900px) {
  body.portal-modern .portal-search.pma-report .pma-map-section {
    flex-direction: column;
  }

  body.portal-modern .portal-search.pma-report .pma-info-box {
    border-left: 0;
    border-top: 1px solid #eef2f5;
  }
}

/* =============================================================================
   Trends (Pages/Trends.aspx)
   Page-specific modal/icons live in assets/css/trends.css.
   Shared portal classes: portal-filters, portal-heading, portal-card, filter-label.
   ============================================================================= */
body.portal-modern .portal-search.trends-report {
  --trends-sidebar-bg: #4d585d;
  font-size: 0.9rem;
  color: #4d585d;
}

body.portal-modern .portal-search.trends-report .trends-beta {
  color: #ed8b3b;
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.portal-modern .portal-search.trends-report .portal-hero h1 {
  color: #4d585d;
}

body.portal-modern .portal-search.trends-report .trends-modal-submit {
  margin-top: 0.85rem;
  text-align: right;
}

body.portal-modern .portal-search.trends-report .modal-content > .portal-modal-header {
  margin: -1rem -1.25rem 0.85rem;
  border-radius: 12px 12px 0 0;
}

body.portal-modern .portal-search.trends-report .trends-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0.75rem 0 1.25rem;
}

body.portal-modern .portal-search.trends-report #SideBar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex: 0 0 220px;
  padding: 0.75rem;
  background: var(--trends-sidebar-bg);
  border-radius: 12px;
  color: #fff;
}

body.portal-modern .portal-search.trends-report #SideBar > .btn,
body.portal-modern .portal-search.trends-report #SideBar > a.btn {
  width: 100%;
}

/* Sidebar filters: same portal-filters card, stacked for the narrow column */
body.portal-modern .portal-search.trends-report #SideBar .portal-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: 100%;
  margin: 0.15rem 0;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(28, 43, 74, 0.04);
  color: #4d585d;
  font-size: 0.8rem;
}

body.portal-modern .portal-search.trends-report #SideBar .portal-filters .filter-label {
  margin-top: 0.35rem;
  margin-bottom: 0;
  color: #4d585d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.portal-modern .portal-search.trends-report #SideBar .portal-filters .filter-label:first-child {
  margin-top: 0;
}

body.portal-modern .portal-search.trends-report #SideBar .portal-filters select {
  width: 100%;
  max-width: 100%;
  font-size: 0.82rem;
  color: #4d585d;
}

body.portal-modern .portal-search.trends-report #SideBar .portal-filters .btn {
  margin-top: 0.35rem;
  width: 100%;
}

/* Modal "Required" / optional filter blocks */
body.portal-modern .portal-search.trends-report .modal .portal-filters {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
}

body.portal-modern .portal-search.trends-report .modal .portal-filters legend.filter-label,
body.portal-modern .portal-search.trends-report .modal .filter-label {
  color: #4d585d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  
}

body.portal-modern .portal-search.trends-report .modal .portal-filters select,
body.portal-modern .portal-search.trends-report .modal .trend-dropdown {
  font-size: 0.82rem;
  color: #4d585d;
}

body.portal-modern .portal-search.trends-report #divExportButtons {
  display: none;
  width: 100%;
}

body.portal-modern .portal-search.trends-report #divExportButtons.is-visible,
body.portal-modern .portal-search.trends-report #divExportButtons[style*="flex"],
body.portal-modern .portal-search.trends-report #divExportButtons[style*="block"] {
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
}

body.portal-modern .portal-search.trends-report #ChartSectionDiv {
  flex: 1 1 auto;
  min-width: 0;
}

body.portal-modern .portal-search.trends-report #divTitle {
  display: none;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0.5rem;
  width: min(50vw, 640px);
}

body.portal-modern .portal-search.trends-report #divTitle.is-visible,
body.portal-modern .portal-search.trends-report #divTitle[style*="flex"] {
  display: flex !important;
}

body.portal-modern .portal-search.trends-report #TrendTitle {
  font-size: 1.05rem;
  width: 65%;
  color: #4d585d;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
}

body.portal-modern .portal-search.trends-report #curve_chart {
  width: min(65vw, 900px);
  height: 500px;
  margin: 0 auto;
}

body.portal-modern .portal-search.trends-report #divLegend {
  display: none;
  margin: 0.75rem auto 1rem;
  width: fit-content;
  max-width: 100%;
  font-size: 0.86rem;
  color: #4d585d;
}

body.portal-modern .portal-search.trends-report #divLegend.is-visible,
body.portal-modern .portal-search.trends-report #divLegend[style*="block"] {
  display: block !important;
}

body.portal-modern .portal-search.trends-report #legend-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

body.portal-modern .portal-search.trends-report #legend-list > li {
  margin: 0.45rem 0;
  gap: 0.75rem;
}

body.portal-modern .portal-search.trends-report .trendHistory.portal-card {
  flex: 0 0 auto;
  max-width: 250px;
  min-width: 150px;
  margin: 0;
  padding: 0.85rem;
  overflow: visible;
  white-space: normal;
}

body.portal-modern .portal-search.trends-report .trendHistory ul {
  min-width: 150px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.portal-modern .portal-search.trends-report .trendHistory ul li:nth-of-type(odd) {
  background-color: #f8fbfc;
}

body.portal-modern .portal-search.trends-report .trendHistory .trends-saved-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: auto;
  margin: 0.25rem 0;
  padding: 0.35rem 0.4rem;
  overflow: visible;
  white-space: normal;
}

body.portal-modern .portal-search.trends-report .trendHistory .trends-saved-meta {
  flex: 1 1 auto;
  min-width: 0;
}

body.portal-modern .portal-search.trends-report .trendHistory .trends-saved-name {
  margin: 0;
  color: #c9796b;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

body.portal-modern .portal-search.trends-report .trends-saved-delete {
  flex: 0 0 auto;
  position: static;
  right: auto;
  bottom: auto;
  width: 22px;
  height: 22px;
  background-size: 10px;
  align-self: center;
}

body.portal-modern .portal-search.trends-report .trends-template-btn {
  font-size: 0.85rem;
  font-weight: 400;
  white-space: normal;
  text-align: left;
}

body.portal-modern .portal-search.trends-report .trends-modal-host {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
}

body.portal-modern .portal-search.trends-report .trends-filter-input {
  width: 90px;
  font-size: 0.82rem;
  color: #4d585d;
  border: 1px solid #e6ebf0;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
}

body.portal-modern .portal-search.trends-report .trends-nested {
  display: none;
  margin-left: 1.25rem;
}

body.portal-modern .portal-search.trends-report .trends-nested-toggle {
  cursor: pointer;
  color: #188f9e;
}

body.portal-modern .portal-search.trends-report #template-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  list-style-type: none;
  gap: 0.5rem;
  padding: 0;
}

body.portal-modern .portal-search.trends-report .portal-access-banner {
  margin: 0.75rem 0 1rem;
}

/* Loader nodes are appended to document.body (not inside .trends-report) */
body.portal-modern .trends-loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
}

body.portal-modern .trends-loader {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 24px solid #f3f3f3;
  border-top: 24px solid #188f9e;
  border-radius: 50%;
  z-index: 9999;
  animation: trends-spin 2s linear infinite;
}

@keyframes trends-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Forms and two-column pages (register, checkout, password, help notes) --- */
body.portal-modern .portal-form label {
  display: block;
  margin: 0 0 0.2rem;
  color: #4d585d;
  font-size: 0.82rem;
  font-weight: 700;
}

body.portal-modern .portal-form .portal-field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
  margin: 0 0 0.2rem;
}

body.portal-modern .portal-form .portal-field-label label {
  display: inline;
  margin: 0;
}

body.portal-modern .portal-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  align-items: start;
}

body.portal-modern .portal-field-row-3 {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 0.85fr);
}

body.portal-modern .portal-form .portal-field-row input,
body.portal-modern .portal-form .portal-field-row select {
  max-width: none;
}

body.portal-modern .portal-form .req {
  color: #c9796b;
  font-weight: 600;
}

body.portal-modern .portal-form .error {
  color: darkred;
  font-size: 0.82rem;
  font-weight: 600;
}

body.portal-modern .portal-form ul.form-fields {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.portal-modern .portal-form ul.form-fields > li {
  margin: 0 0 0.85rem;
}

body.portal-modern .portal-form input[type="text"],
body.portal-modern .portal-form input[type="password"],
body.portal-modern .portal-form input[type="email"],
body.portal-modern .portal-form select,
body.portal-modern .portal-form textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #fff;
  color: #1c2b4a;
  font-size: 0.9rem;
}

body.portal-modern .portal-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

body.portal-modern .portal-inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

body.portal-modern .portal-form .portal-inline-fields > .half {
  flex: 1 1 10rem;
  min-width: 0;
}

body.portal-modern .portal-form .portal-inline-fields > .half input,
body.portal-modern .portal-form .portal-inline-fields > .half select {
  display: block;
  width: 100%;
  max-width: none;
}

body.portal-modern .portal-form .portal-inline-fields > input,
body.portal-modern .portal-form .portal-inline-fields > select {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

body.portal-modern .portal-form table {
  width: 100%;
  border-collapse: collapse;
}

body.portal-modern .portal-form table td {
  padding: 0.35rem 0.5rem 0.35rem 0;
  vertical-align: middle;
  color: #4d585d;
}

body.portal-modern .portal-form table input[type="text"],
body.portal-modern .portal-form table input[type="password"] {
  display: block;
  width: 100%;
  max-width: 22rem;
}

body.portal-modern .portal-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

body.portal-modern .portal-checkout > .card-header .card-title {
  flex: 1 1 auto;
  min-width: 0;
}

body.portal-modern .portal-checkout > .card-header .card-title > span {
  min-width: 0;
}

body.portal-modern .portal-checkout > .card-header .portal-card-tools {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  color: #4d585d;
  font-weight: 600;
  white-space: nowrap;
}

body.portal-modern .portal-checkout .portal-checkout-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 0 0 0.5rem;
}

body.portal-modern .portal-checkout .portal-checkout-summary {
    display: flex;
    gap: 0.35rem 1.25rem;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e6ebf0;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: column;
    align-content: flex-end;
}

body.portal-modern .portal-checkout .portal-checkout-total {
  margin-left:auto;
}

body.portal-modern .portal-checkout .portal-checkout-summary .portal-inline-fields {
  gap: 0.35rem 0.5rem;
}

body.portal-modern .portal-checkout .card-body > h5,
body.portal-modern .portal-checkout .portal-split h5 {
  margin: 0 0 0.3rem;
}

body.portal-modern .portal-checkout ul.form-fields > li {
  margin: 0 0 0.4rem;
}

body.portal-modern .portal-checkout .portal-field-label {
  margin-bottom: 0.1rem;
}

body.portal-modern .portal-checkout .portal-split {
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.35rem;
}

body.portal-modern .portal-split-aside {
  grid-template-columns: minmax(0, 1.4fr) minmax(12rem, 20rem);
}

body.portal-modern .portal-split img,
body.portal-modern .portal-figure {
  max-width: 100%;
  height: auto;
}

body.portal-modern .portal-figure {
  display: block;
  margin: 0 auto 1.25rem;
  border: 1px solid #e6ebf0;
  border-radius: 12px;
}

body.portal-modern .portal-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e6ebf0;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  body.portal-modern .portal-split,
  body.portal-modern .portal-split-aside {
    grid-template-columns: 1fr;
  }

  body.portal-modern .portal-field-row,
  body.portal-modern .portal-field-row-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  body.portal-modern .portal-search.trends-report .trends-layout {
    flex-wrap: wrap;
  }

  body.portal-modern .portal-search.trends-report #SideBar {
    flex: 1 1 100%;
  }

  body.portal-modern .portal-search.trends-report #curve_chart {
    width: 100%;
  }

  body.portal-modern .portal-search.trends-report #template-list {
    grid-template-columns: 1fr 1fr;
  }
}
