/* =====================================================   Typography — Inter with Roboto/system fallback
   Loaded after the platform-specific style.bundle.css so it
   overrides the default font only. No color rules here — each
   platform's brand colors in style.bundle.css remain authoritative.
   ============================================================ */
:root {
  --app-font-sans: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Override Bootstrap's font variable so all components that reference
     it (buttons, inputs, tables, modals, etc.) inherit Inter as well.
     The Roboto fallback is preserved in case Inter fails to load. */
  --bs-font-sans-serif: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  font-family: var(--app-font-sans);
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Legacy fixed-height maps. #divMap_location is deliberately NOT listed: it is
   used only by the research Location tab, where the map must fill the media row
   instead. An ID selector here (1,0,0) silently outranks every .research-map
   class rule, which is what pinned that map to 200px under a 360px image. */
#divMap_summary, #divMap, .divMap_search {
  width: 100%;
  height: 200px;
}

.search_property_details {
  height: calc(100vh - 300px);
  overflow: scroll;
  padding: 0px 15px 0px 0px;
}

#search_map, #map_results {
  height: calc(100vh - 300px);
  /* width: 100%; */
  position: relative;
}

.checkbox-group {
  position: absolute;
  z-index: 9;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Toggle button */
.checkbox-group .toggle-button {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #3F4254;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: box-shadow .15s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.checkbox-group .toggle-button:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.checkbox-group .toggle-button .sp-chevron {
  font-size: 10px;
  transition: transform .2s;
  opacity: .6;
}
.checkbox-group.open .toggle-button .sp-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.checkboxes {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  padding: 8px 6px;
  min-width: 185px;
  border: 1px solid rgba(0,0,0,0.06);
}
.checkbox-group.open .checkboxes {
  display: block;
}

/* Hidden native checkbox */
.sp-hidden-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Each row */
.sp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
  margin: 0;
}
.sp-row:hover {
  background: #f5f8ff;
}

/* Colored dot */
.sp-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,0.12);
}

/* Label text */
.sp-label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #3F4254;
}

/* Check tick — shown when checked */
.sp-check-icon {
  font-size: 12px;
  color: var(--kt-primary);
  width: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity .1s;
}
.sp-hidden-check:checked ~ .sp-check-icon {
  opacity: 1;
}

/* Divider */
.sp-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 12px;
}

.left-33px {
  left: 33px !important;
}

.min-h-48px{
  min-height: 48px !important;
}

.pipeline .btn.btn-light-warning.active {
  background-color: #e8b500 !important;
  color: #FFF !important;
}

.pipeline .btn.btn-light-warning {
  color: #c19700 !important;
}

.ui-widget.ui-widget-content{
  border-radius: 5px !important;
}

.cursor-alias {cursor: alias;}
.cursor-all-scroll {cursor: all-scroll;}
.cursor-auto {cursor: auto;}
.cursor-cell {cursor: cell;}
.cursor-col-resize {cursor: col-resize;}
.cursor-context-menu {cursor: context-menu;}
.cursor-copy {cursor: copy;}
.cursor-crosshair {cursor: crosshair;}
.cursor-e-resize {cursor: e-resize;}
.cursor-ew-resize {cursor: ew-resize;}
.cursor-grab {cursor: grab;}
.cursor-grabbing {cursor: grabbing;}
.cursor-help {cursor: help;}
.cursor-move {cursor: move;}
.cursor-n-resize {cursor: n-resize;}
.cursor-ne-resize {cursor: ne-resize;}
.cursor-nesw-resize {cursor: nesw-resize;}
.cursor-ns-resize {cursor: ns-resize;}
.cursor-nw-resize {cursor: nw-resize;}
.cursor-nwse-resize {cursor: nwse-resize;}
.cursor-no-drop {cursor: no-drop;}
.cursor-none {cursor: none;}
.cursor-not-allowed {cursor: not-allowed;}
.cursor-progress {cursor: progress;}
.cursor-row-resize {cursor: row-resize;}
.cursor-s-resize {cursor: s-resize;}
.cursor-se-resize {cursor: se-resize;}
.cursor-sw-resize {cursor: sw-resize;}
.cursor-text {cursor: text;}
.cursor-w-resize {cursor: w-resize;}
.cursor-wait {cursor: wait;}
.cursor-zoom-in {cursor: zoom-in;}
.cursor-zoom-out {cursor: zoom-out;}

.disabled {
  pointer-events: none;
  opacity: 0.4;
}

input.badge{
  text-align: left;
  width: 115px;
  border: thin solid var(--bs-primary)12;
  display: inline-flex !important;
}

input.badge.child{
  width: 47px;
}

input.badge.main, input.badge.year{
  width: 65px;
}

.gm-style-iw-chr{
  display: none !important;
}

.gm-style-iw{
  padding-left: 0 !important;
}

/* ── Dashboard Redesign ─────────────────────────────────────────── */
/*
 * Single design system for the home/dashboard page. All cards share the
 * same shell (white bg, soft border, barely-there shadow, 14px radius);
 * cyan var(--kt-primary) is the only brand accent — neutrals do the rest.
 */

/* Hide the legacy dark hero banner if any old markup is cached. */
.db-hero { display: none !important; }

/* Page header */
.db-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 2px 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eef0f4;
}
.db-header-text { flex: 1; min-width: 0; }
.db-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--kt-primary);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 8px;
}
.db-header-title {
    font-size: 26px;
    font-weight: 700;
    color: #102F44;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0 0 6px 0;
}
.db-header-subtitle {
    font-size: 13.5px;
    color: #6f727e;
    margin: 0;
    line-height: 1.5;
    max-width: 640px;
}
@media (max-width: 767px) {
    .db-header { flex-direction: column; align-items: flex-start; }
    .db-header-title { font-size: 22px; }
}

/* Stats row — light KPI tiles, all monochrome with cyan accent on hover */
.db-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.db-stat-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    display: block;
}
.db-stat-card:hover {
    border-color: #c7e8f7;
    box-shadow: 0 6px 16px -8px rgba(16,24,40,0.10);
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
}
.db-stat-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #6f727e;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}
.db-stat-label i { font-size: 12px; color: #9aa0ad; }
.db-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #102F44;
    line-height: 1;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.db-stat-delta {
    font-size: 11.5px;
    font-weight: 500;
    color: #9aa0ad;
    display: flex; align-items: center; gap: 4px;
}
.db-stat-delta .up      { color: #16a34a; font-weight: 600; display: inline-flex; align-items: center; }
.db-stat-delta .down    { color: #dc2626; font-weight: 600; display: inline-flex; align-items: center; }
.db-stat-delta .neutral { color: #9aa0ad; font-weight: 600; }
.db-stat-delta .up i,
.db-stat-delta .down i  { font-size: 14px; line-height: 1; margin-right: 1px; }
@media (max-width: 991px) {
    .db-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Unified card shell */
.db-action-card,
.db-chart-card,
.db-recent-card,
.db-map-card,
.db-kpi-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
    transition: border-color 0.15s, box-shadow 0.15s;
    height: 100%;
}

/* Action card — Find / Analyze */
.db-action-card {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
}
.db-action-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.db-action-card-icon {
    width: 40px; height: 40px;
    background: #eaf9ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: none;
}
.db-action-card-icon i { font-size: 18px; color: var(--kt-primary); }
.db-action-ai-badge {
    display: inline-flex; align-items: center;
    background: #f7f8fb;
    color: #6f727e;
    font-size: 11px; font-weight: 600;
    padding: 4px 9px;
    border-radius: 6px;
    border: 1px solid #ebeef4;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.db-action-card h3 {
    font-size: 17px; font-weight: 700; color: #102F44;
    margin: 0 0 6px 0; line-height: 1.3;
    letter-spacing: -0.3px;
}
.db-action-card p {
    font-size: 13px; color: #6f727e;
    margin: 0 0 16px 0; line-height: 1.55;
}
/* Feature chips */
.db-action-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 18px;
}
.db-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #f7f8fb;
    border: 1px solid #ebeef4;
    color: #5e6278;
    font-size: 11.5px; font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}
.db-chip i { font-size: 11px; color: var(--kt-primary); }

/* CTA buttons — one filled cyan primary, one neutral outline secondary */
.db-btn-find,
.db-btn-analyze {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    box-shadow: none;
}
.db-btn-find {
    background: var(--kt-primary);
    color: #fff;
    margin-bottom: 8px;
    border-color: var(--kt-primary);
}
.db-btn-find:hover { background: var(--kt-primary-active); border-color: var(--kt-primary-active); color: #fff; text-decoration: none; }
.db-btn-analyze {
    background: #fff;
    color: #102F44;
    border: 1px solid #e4e6ef;
    user-select: none;
}
.db-btn-analyze:hover { background: #f7f8fb; color: #102F44; border-color: #d4dce7; }
.db-btn-icon { font-size: 16px; flex-shrink: 0; opacity: 0.9; }
.db-btn-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.db-btn-label { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.db-btn-sub { font-size: 11.5px; font-weight: 400; opacity: 0.75; margin-top: 2px; }

/* Chart card */
.db-chart-card { overflow: hidden; }
.db-chart-card-header {
    padding: 20px 24px 6px;
    display: flex; align-items: center; justify-content: space-between;
}
.db-chart-card-header h4 {
    font-size: 15px; font-weight: 600; color: #102F44; margin: 0;
    letter-spacing: -0.2px;
    display: flex; align-items: center; gap: 8px;
}
.db-chart-card-header h4 i { color: var(--kt-primary); font-size: 14px; }
.db-chart-card-header span {
    font-size: 11px; color: #9aa0ad; font-weight: 500;
}
.db-chart-period-picker {
    font-size: 11.5px;
    color: #6f727e;
    font-weight: 500;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: auto;
    transition: border-color 0.15s;
}
.db-chart-period-picker:hover,
.db-chart-period-picker:focus {
    border-color: #c7e8f7;
    color: #102F44;
}
.db-chart-body { padding: 4px 14px 14px; }
#kt_charts_widget_1_chart_1 { height: 340px; }

/* Recent Deals card */
.db-recent-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.db-recent-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f3f8;
    display: flex; align-items: center; justify-content: space-between;
}
.db-recent-header h4 {
    font-size: 15px; font-weight: 600; color: #102F44; margin: 0;
    letter-spacing: -0.2px;
    display: flex; align-items: center; gap: 8px;
}
.db-recent-header h4 i { color: var(--kt-primary); font-size: 14px; }
.db-recent-header a {
    font-size: 12px; color: var(--kt-primary); font-weight: 600;
    text-decoration: none;
}
.db-recent-header a:hover { color: var(--kt-primary); text-decoration: underline; }
.db-recent-body { padding: 6px 14px 12px; flex: 1; }

.db-deal-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid #f5f6fa;
    text-decoration: none;
    transition: background 0.15s ease;
    border-radius: 8px;
    margin: 0 -8px;
}
.db-deal-row:hover { background: #f7f8fb; }
.db-deal-row:last-child { border-bottom: none; }
.db-deal-row:hover .db-deal-name { color: var(--kt-primary); }

.db-deal-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0;
}
.db-deal-dot.market   { background: var(--kt-primary); }
.db-deal-dot.working  { background: #FFC700; }
.db-deal-dot.portfolio{ background: #16a34a; }
.db-deal-dot.lost     { background: #F1416C; }

.db-deal-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    background: #f7f8fb;
    color: #6f727e;
}
.db-deal-icon.type-detailed,
.db-deal-icon.type-quick     { background: #eaf9ff; color: var(--kt-primary); }
.db-deal-icon.type-wholesale { background: #fff7e0; color: #d4a700; }
.db-deal-icon.type-flip      { background: #ffe9ec; color: #F1416C; }
.db-deal-icon.type-construction { background: #f3e8ff; color: #7239EA; }

.db-deal-info { flex: 1; min-width: 0; }
.db-deal-name { font-size: 13.5px; font-weight: 600; color: #102F44; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; letter-spacing: -0.1px; }
.db-deal-address { font-size: 12px; color: #9aa0ad; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.db-deal-badge {
    font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 5px;
    text-transform: capitalize; white-space: nowrap;
    background: #f1f3f8; color: #5e6278;
}
.db-deal-time { font-size: 11px; color: #9aa0ad; white-space: nowrap; flex-shrink: 0; }
.db-deal-units { font-weight: 400; font-size: 11px; }
.db-deal-fav-icon { font-size: 11px; }

/* Map card */
.db-map-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.db-map-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid #f1f3f8;
    display: flex; align-items: center; justify-content: space-between;
}
.db-map-header h4 {
    font-size: 15px; font-weight: 600; color: #102F44; margin: 0;
    letter-spacing: -0.2px;
    display: flex; align-items: center; gap: 8px;
}
.db-map-header h4 i { color: var(--kt-primary); font-size: 14px; }
.db-map-body { flex: 1; min-height: 0; }
/* Fill the card's remaining height instead of a fixed 400px so the
   right column matches the Recent Deals list on the left. min-height
   keeps the map readable when the row is short. */
#deals-map { height: 100%; min-height: 400px; width: 100%; }

/* Map header legend */
.db-map-legend { display: flex; gap: 12px; font-size: 11px; font-weight: 500; color: #6f727e; }
.db-map-legend-dot {
    display: inline-block; width: 7px; height: 7px;
    border-radius: 50%; margin-right: 4px;
    background: var(--legend-color, var(--kt-primary));
    vertical-align: middle;
}
.db-map-legend-dot.market   { background: var(--kt-primary); }
.db-map-legend-dot.working  { background: #FFC700; }
.db-map-legend-dot.portfolio{ background: #16a34a; }
.db-map-legend-dot.lost     { background: #F1416C; }

/* Illustration area (legacy) */
.db-illustration { text-align: center; padding: 16px 0 4px; }
.db-illustration img { max-height: 110px; opacity: 0.85; }

/* Empty state */
.db-empty-state {
    text-align: center; padding: 32px 16px;
    color: #9aa0ad; font-size: 13px;
}
.db-empty-state i { font-size: 30px; display: block; margin-bottom: 10px; color: #d0d3e0; }

/* ── Map popup card (shared by Finder + Dashboard maps) ─────────
 *
 * Single visual treatment for the property pin popup. Moved here from
 * search.html so the dashboard's Leaflet map shows the same card the
 * finder does (image + title + locale + tags + cyan "View details" CTA).
 */
.finder-popup .leaflet-popup-content-wrapper {
    border-radius: 14px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(16, 47, 68, 0.18), 0 2px 6px rgba(16, 47, 68, 0.08);
    border: 1px solid rgba(225, 227, 234, 0.7);
    overflow: hidden;
    background: #fff;
}
.finder-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.finder-popup .leaflet-popup-tip-container { margin-top: -1px; }
.finder-popup .leaflet-popup-tip { box-shadow: 0 8px 20px rgba(16, 47, 68, 0.12); }
.finder-popup .leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    width: 24px;
    height: 24px;
    font-size: 16px !important;
    line-height: 22px !important;
    text-align: center;
    color: #99A1B7 !important;
    background: #fff;
    border: 1px solid #E1E3EA;
    border-radius: 50%;
    transition: all .15s ease;
    z-index: 5;
}
.finder-popup .leaflet-popup-close-button:hover {
    background: #F9F9F9;
    color: #102F44 !important;
    border-color: #B5B5C3;
}
.finder-popup-card { padding: 14px 16px 12px; text-align: left; }
.finder-popup-card__image {
    margin: -14px -16px 12px;
    height: 130px;
    overflow: hidden;
    background: #F1F1F4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.finder-popup-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.finder-popup-card__image--placeholder { background: #F8FAFC; }
.finder-popup-card__image--placeholder img {
    width: auto;
    height: 60%;
    max-width: 60%;
    object-fit: contain;
    opacity: 0.55;
}
.finder-popup-card__street {
    font-size: 14.5px;
    font-weight: 700;
    color: #102F44;
    line-height: 1.3;
    margin-bottom: 2px;
    padding-right: 24px;
    word-break: break-word;
}
.finder-popup-card__locale {
    font-size: 11.5px;
    color: #6F727E;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}
.finder-popup-card__underwriting {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #99A1B7;
    font-weight: 600;
    margin-bottom: 10px;
}
.finder-popup-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}
.finder-popup-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.finder-popup-card__tag i { font-size: 11px; opacity: 0.85; }
.finder-popup-card__tag--type     { background: #F1F1F4; color: #5E5F70; }
.finder-popup-card__tag--units    { background: rgba(var(--kt-primary-rgb), 0.10); color: #1F8DB3; }
.finder-popup-card__tag--equity   { background: rgba(80, 205, 137, 0.14); color: #1F8C5C; }
.finder-popup-card__tag--equity-low { background: #F1F1F4; color: #6F727E; }
.finder-popup-card__tag--stage    {
    border: 1px solid currentColor;
    background: transparent;
    text-transform: uppercase;
    font-size: 9.5px;
    padding: 2px 8px;
}
.finder-popup-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: var(--kt-primary);
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
    box-shadow: 0 1px 3px rgba(var(--kt-primary-rgb), 0.28);
    text-decoration: none;
}
.finder-popup-card__cta:hover {
    background: var(--kt-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(var(--kt-primary-rgb), 0.36);
    color: #fff !important;
    text-decoration: none;
}
.finder-popup-card__cta i,
.finder-popup-card__cta i::before {
    color: #fff !important;
    font-size: 13px;
}

/* ── Kanban Pipeline Board ─────────────────────────────────────── */
.kanban-wrapper {
    overflow-x: auto;
    padding-bottom: 28px;
}
.kanban-board {
    display: flex;
    gap: 14px;
    min-width: max-content;
    align-items: flex-start;
    padding: 4px 2px 8px;
}
.kanban-col {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.kanban-col-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px 10px;
    background: #fff;
    border: 1.5px solid #e4e6ef;
    border-bottom: 3px solid var(--kc-color);
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #3f4254;
}
.kanban-col-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--kc-color);
    flex-shrink: 0;
}
.kanban-col-count {
    margin-left: auto;
    background: var(--kc-bg);
    color: var(--kc-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    padding: 1px 10px;
    min-width: 26px;
    text-align: center;
}
.kanban-drop-zone {
    min-height: 120px;
    height: calc(100vh - 260px);
    overflow-y: auto;
    overflow-x: hidden;
    background: #f5f6fa;
    border: 1.5px solid #e4e6ef;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-content: flex-start;
    transition: background 0.18s, border-color 0.18s;
}
.kanban-drop-zone.drag-over {
    background: #eef5ff;
    border-color: var(--kc-color, var(--kt-primary));
}
.kcard {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    border: 1.5px solid #eef0f8;
    user-select: none;
    position: relative;
    flex-shrink: 0;
}
.kcard:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.10);
    transform: translateY(-2px);
    border-color: #d6d9f0;
}
.kcard.sortable-chosen {
    box-shadow: 0 10px 28px rgba(0,0,0,0.16) !important;
    transform: rotate(1.5deg) scale(1.03);
    opacity: 0.93;
    z-index: 9999;
}
.sortable-ghost {
    opacity: 0.2;
    background: #e8f1ff !important;
    border: 2px dashed var(--kt-primary) !important;
    box-shadow: none !important;
}
.kcard-inner { padding: 11px 12px 10px; }
.kcard-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 9px;
}
.kcard-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--kc-bg, #f0f1f8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kcard-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
}
.kcard-thumb-icon {
    font-size: 20px;
    color: var(--kc-color, #a1a5b7);
    opacity: 0.7;
    display: none;
}
.kcard-header-text { flex: 1; min-width: 0; }
.kcard-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e2139;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}
.kcard-address {
    font-size: 10.5px;
    color: #9298b5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.kcard-grip {
    flex-shrink: 0;
    font-size: 13px;
    color: #d0d3e2;
    cursor: grab;
    padding-top: 2px;
    opacity: 0;
    transition: opacity 0.15s;
}
.kcard:hover .kcard-grip { opacity: 1; }
.kcard-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 9px;
}
.kcard-group-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--kc-bg);
    color: var(--kc-color);
    text-transform: uppercase;
}
.kcard-group-badge i { font-size: 9px; }
/* Admin-only public-report lead-count badge on Pipeline cards/rows. */
.pipeline-leads-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #ECFDF5;
    color: #16A34A;
    text-decoration: none;
    line-height: 1.2;
}
.pipeline-leads-badge:hover { background: #D1FAE5; color: #15803D; text-decoration: none; }
.pipeline-leads-badge i { font-size: 9px; }
.kcard-divider {
    border: none;
    border-top: 1px solid #f1f3f9;
    margin: 0 0 9px;
}
.kcard-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
    margin-bottom: 9px;
}
.kcard-metric {
    font-size: 12px;
    font-weight: 700;
    color: #181c32;
    line-height: 1.2;
}
.kcard-metric small {
    display: block;
    color: #a1a5b7;
    font-weight: 400;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-top: 1px;
}
.kcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f3f9;
    padding-top: 8px;
    gap: 4px;
}
.kcard-time {
    font-size: 10px;
    color: #b5bad3;
    line-height: 1.35;
    flex-shrink: 0;
}
.kcard-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.kcard-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--kc-color, #c4c9de);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    flex-shrink: 0;
}
.kcard-btn:hover { background: var(--kc-bg, #f1f3f9); color: var(--kc-color, #3f4254); }
.kcard-btn.is-fav,
.kcard-btn.is-fav:hover { color: #17c3b2; background: #edfaf8; }
.kcard-btn.btn-archive:hover { color: #f1416c; background: #fff0f3; }
.kcard-fav { color: #17c3b2; font-size: 11px; }
.kcard-shared { color: #a1a5b7; font-size: 10px; }
.kcard-empty {
    text-align: center;
    padding: 32px 10px;
    color: #c4c9de;
    font-size: 12px;
    font-style: italic;
    border: 2px dashed #e4e6ef;
    border-radius: 8px;
    background: #fafbfd;
}
.kanban-drop-zone::-webkit-scrollbar { width: 4px; }
.kanban-drop-zone::-webkit-scrollbar-thumb { background: #d4d6e2; border-radius: 4px; }
.k-toast {
    position: fixed;
    top: 88px;
    bottom: auto;
    right: 28px;
    background: #1e2139;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.28s, transform 0.28s;
    pointer-events: none;
    max-width: 320px;
}
.k-toast.show { opacity: 1; transform: translateY(0); }
.pipeline-page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e8eaf0;
}
.bulk-move-row {
    display: flex;
    justify-content: flex-end;
    margin: -16px 0 12px;
}
.bulk-move-panel {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid #b6d7ff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 108, 255, 0.10);
    overflow: hidden;
}
/* Make panel feel like an extension of the active Bulk Select button */
#btn_bulk_select.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 6px 16px rgba(0, 108, 255, 0.12);
}
body.bulk-select-mode .bulk-move-panel {
    border-top-right-radius: 0;
}
.bulk-move-count {
    font-size: 12px;
    font-weight: 700;
    color: #0f3d7a;
    white-space: nowrap;
    background: #edf5ff;
    padding: 0 12px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid #cfe3ff;
}
.bulk-move-panel .form-select {
    min-width: 210px;
    font-size: 12px;
    border: none;
    border-right: 1px solid #e2e8f5;
    border-radius: 0;
    height: 36px;
    box-shadow: none;
    background-color: #fff;
}
#btn_bulk_move_apply {
    border-radius: 0;
    height: 36px;
    white-space: nowrap;
    min-width: 128px;
    padding: 0 14px;
    font-weight: 600;
}
#btn_bulk_clear {
    border: none;
    border-left: 1px solid #e2e8f5;
    border-radius: 0;
    height: 36px;
    white-space: nowrap;
    padding: 0 14px;
    color: #5e6278;
}
#btn_bulk_clear:hover {
    background: #f6f8fc;
}
@media (max-width: 991px) {
    .bulk-move-row {
        justify-content: stretch;
        margin: -10px 0 10px;
    }
    .bulk-move-panel {
        width: 100%;
        flex-wrap: wrap;
        row-gap: 6px;
        padding: 6px;
    }
    .bulk-move-panel .form-select {
        min-width: 0;
        flex: 1 1 180px;
    }
}
.pipeline-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--kt-primary);
    flex-shrink: 0;
}

    /* ── Pipeline View Toggle ────────────────────────────────────── */
    .view-toggle-group {
        display: flex;
        align-items: center;
        background: #f1f3f9;
        border-radius: 8px;
        padding: 3px;
        gap: 2px;
    }
    .btn-view-toggle {
        width: 30px;
        height: 30px;
        border: none;
        background: transparent;
        border-radius: 6px;
        color: #9298b5;
        font-size: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s, color 0.15s;
        padding: 0;
    }
    .btn-view-toggle:hover { background: #e4e6ef; color: #3f4254; }
    .btn-view-toggle.active { background: #fff; color: var(--kt-primary); box-shadow: 0 1px 4px rgba(0,0,0,0.10); }

    /* ── Pipeline Table View ─────────────────────────────────────── */
    .pipeline-table-wrapper {
        width: 100%;
        padding-bottom: 28px;
    }
    .pipeline-table-scroll {
        overflow-x: auto;
        border-radius: 12px;
        border: 1.5px solid #e4e6ef;
        background: #fff;
    }
    .pipeline-table {
        width: 100%;
        border-collapse: collapse;
        min-width: 780px;
    }
    .pipeline-table thead tr {
        border-bottom: 2px solid #e8eaf0;
    }
    .pipeline-table thead th {
        padding: 12px 16px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #a1a5b7;
        white-space: nowrap;
        background: #fafbfd;
    }
    .pipeline-table thead th.ptbl-sortable {
        cursor: pointer;
        user-select: none;
    }
    .pipeline-table thead th.ptbl-sortable:focus {
        outline: 2px solid #bfe4ff;
        outline-offset: -2px;
    }
    .pipeline-table thead th .ptbl-sort-icon {
        margin-left: 6px;
        color: #c4c8d4;
        font-size: 10px;
        line-height: 1;
    }
    .pipeline-table thead th.sorted-asc,
    .pipeline-table thead th.sorted-desc {
        color: #5e6278;
    }
    .pipeline-table thead th.sorted-asc .ptbl-sort-icon,
    .pipeline-table thead th.sorted-desc .ptbl-sort-icon {
        color: var(--kt-primary);
    }
    .pipeline-table tbody tr.pipeline-tr {
        border-bottom: 1px solid #f1f3f9;
        transition: background 0.12s;
        cursor: pointer;
    }
    .pipeline-table tbody tr.pipeline-tr:last-child { border-bottom: none; }
    .pipeline-table tbody tr.pipeline-tr:hover { background: #f8f9ff; }
    .pipeline-table td {
        padding: 11px 16px;
        vertical-align: middle;
        font-size: 13px;
        color: #3f4254;
    }
    .ptbl-prop-cell {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 180px;
    }
    .ptbl-thumb {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
        background: var(--kc-bg, #f0f1f8);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .ptbl-thumb img {
        width: 38px;
        height: 38px;
        object-fit: cover;
        display: block;
    }
    .ptbl-prop-info { min-width: 0; }
    .ptbl-name {
        font-size: 13px;
        font-weight: 700;
        color: #1e2139;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 230px;
        line-height: 1.35;
    }
    .ptbl-address {
        font-size: 11px;
        color: #9298b5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 230px;
        line-height: 1.3;
    }
    /* Merged "Type & Strategy" cell: property type then the strategy chip.
       Wraps rather than widening the column on narrow viewports; MF/SS rows
       carry no chip, so they render as the type line alone. */
    .ptbl-type-cell {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px 6px;
    }
    .ptbl-type-label {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }
    /* Unit-count chip (MF/SS) — deliberately neutral so the SF strategy
       colors stay the only color signal in this column. Metronic's own
       .badge-light-secondary is near-white text with no background, which
       is unreadable on the table row, so it is restated here (same
       treatment the kanban card's type chip gets from the pipeline theme). */
    .ptbl-type-cell .badge.badge-light-secondary {
        background-color: var(--dwi-color-rail, #f9fafb);
        border: 1px solid var(--dwi-color-line-soft, #eef0f3);
        color: var(--dwi-color-text-secondary, #5e6278);
    }
    .ptbl-metric-val {
        display: block;
        font-size: 13px;
        font-weight: 700;
        color: #181c32;
        line-height: 1.2;
    }
    .ptbl-metric-lbl {
        display: block;
        font-size: 9.5px;
        color: #a1a5b7;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }
    .ptbl-actions {
        display: flex;
        align-items: center;
        gap: 2px;
        justify-content: flex-end;
    }
    .ptbl-empty-row td { background: #fafbfd; }
.filter-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #a1a5b7;
    margin-bottom: 4px;
}
.kcard-select-ui {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: none;
    background: rgba(255,255,255,0.95);
    border: 1px solid #d4daea;
    border-radius: 6px;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
}
.kcard-select {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}
body.bulk-select-mode .kcard-select-ui {
    display: inline-flex;
}
body.bulk-select-mode .kcard {
    cursor: default;
}
.kcard.is-selected {
    border-color: #3e97ff;
    box-shadow: 0 0 0 2px rgba(62,151,255,0.18);
}
body.bulk-select-mode .pipeline-table tbody tr.pipeline-tr {
    cursor: pointer;
}
.ptbl-select-wrap {
    display: none;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4daea;
    border-radius: 6px;
    background: rgba(255,255,255,0.95);
    margin-right: 2px;
}
.ptbl-select {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
}
body.bulk-select-mode .ptbl-select-wrap {
    display: inline-flex;
}
.pipeline-table tbody tr.pipeline-tr.is-selected {
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px rgba(62,151,255,0.35);
}
/* New Deal button in the pipeline toolbar — the shared partial carries
   float-end / mb-2 for its other placements; neutralize them inside the
   flex header so the button aligns with its siblings. */
#new_deal_btn_wrap .btn {
    float: none !important;
    margin-bottom: 0 !important;
}
/* Deal-type / strategy glyphs on pipeline badges. Metronic globals set
   their own color + font-size on <i>, so both must be forced here for
   the icon to follow the badge's text color. */
.badge-glyph {
    color: inherit !important;
    font-size: 0.92em !important;
    margin-right: 4px;
    vertical-align: -0.05em;
}
.filter-check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.12s;
}
.filter-check-item:hover { background: #f5f6fa; }
.filter-check-item:hover span { color: #181c32; }
.filter-check-item input { cursor: pointer; flex-shrink: 0; }

/* ── Collapsible checkbox tree (Single Family → strategies) ── */
.filter-tree-row {
    display: flex;
    align-items: center;
    gap: 2px;
}
.filter-tree-row .filter-check-item { flex: 1 1 auto; }
.filter-tree-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #a1a5b7;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.filter-tree-caret:hover { background: #f5f6fa; color: #181c32; }
.filter-tree-caret i {
    font-size: 10px;
    transition: transform 0.18s ease;
}
.filter-tree.open .filter-tree-caret i { transform: rotate(90deg); }
.filter-tree-children {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 1px solid #e4e6ef;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.15s ease, margin 0.2s ease;
}
.filter-tree.open .filter-tree-children {
    max-height: 130px;
    opacity: 1;
    margin-top: 2px;
    margin-bottom: 2px;
}
.filter-stage-pill,
.filter-analysis-pill {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.filter-stage-pill input,
.filter-analysis-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.filter-stage-pill > span,
.filter-analysis-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
    background: #f5f6fa;
    border: 1.5px solid #e4e6ef;
    color: #5e6278;
    transition: all 0.15s;
}
.filter-stage-pill > span .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.filter-stage-pill input:checked + span,
.filter-analysis-pill input:checked + span {
    background: #eef5ff;
    border-color: var(--kt-primary);
    color: var(--kt-primary);
}
.filter-active-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    background: #f1416c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 0 4px;
    margin-left: 2px;
    vertical-align: middle;
}
.btn-fav-filter.active {
    background: #edfaf8 !important;
    color: #17c3b2 !important;
    border-color: #b5f0ea !important;
}
.btn-fav-filter.active i { color: #17c3b2; }
.filter-custom-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1055;
    width: 320px;
    background: #fff;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    overflow: hidden;
}
.filter-custom-panel.open { display: block; }
.kanban-col-label { flex: 1; }
.kcol-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 0;
    overflow: hidden;
    margin-left: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, width 0.2s, margin-left 0.2s;
}
.kanban-col:hover .kcol-actions,
.kanban-col-header:focus-within .kcol-actions {
    width: 76px;
    margin-left: 6px;
    opacity: 1;
    pointer-events: auto;
}
/* Kanban column "+" — primary filled button */
.kcol-btn.kcol-add-btn {
    background: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 3px 8px -2px rgba(var(--kt-primary-rgb), 0.45);
}
.kcol-btn.kcol-add-btn i { font-size: 12px; font-weight: 700; }
.kcol-btn.kcol-add-btn:hover {
    background: var(--kt-primary-active);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 12px -2px rgba(var(--kt-primary-rgb), 0.55);
    transform: translateY(-1px);
}

/* Pipeline table "+" inside the right-most header cell — icon-only primary button */
.pipeline-table .ptbl-add-col {
    width: 56px;
    padding-right: 16px !important;
}
.ptbl-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--kt-primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 3px 8px -2px rgba(var(--kt-primary-rgb), 0.45);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.ptbl-add-btn i { font-size: 14px; font-weight: 700; line-height: 1; }
.ptbl-add-btn:hover {
    background: var(--kt-primary-active);
    transform: translateY(-1px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 12px -2px rgba(var(--kt-primary-rgb), 0.55);
}
.kcol-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #a1a5b7;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.kcol-btn:hover { background: rgba(0,0,0,0.06); color: #181c32; }

/* Pipeline Phase 1: per-column "Load more" (below each drop zone) */
.kcol-load-more {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 7px 10px;
    border: 1.5px dashed #d8dae3;
    border-radius: 10px;
    background: transparent;
    color: #7e8299;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.kcol-load-more:hover {
    background: var(--kc-bg, #f5f6fa);
    color: var(--kc-color, #181c32);
    border-color: var(--kc-color, #d8dae3);
}
.kcol-load-more:disabled,
.kcol-load-more.is-loading {
    opacity: .6;
    cursor: wait;
}
.kcol-btn.kcol-delete-btn:hover { color: #f1416c; background: #fff0f3; }
.kanban-col-add {
    min-width: 220px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
    flex-shrink: 0;
}
.kanban-col-add .btn-add-col {
    white-space: nowrap;
    border: 2px dashed #d4d6e2;
    color: #a1a5b7;
    background: transparent;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.kanban-col-add .btn-add-col:hover {
    border-color: var(--kt-primary);
    color: var(--kt-primary);
    background: #f0f8ff;
}

/* Color swatches for column modals */
.col-color-swatch { cursor: pointer; }
.col-color-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.col-color-swatch span {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2.5px solid transparent;
    transition: border-color 0.15s, transform 0.1s;
}
.col-color-swatch input:checked + span,
.col-color-swatch:hover span {
    border-color: #181c32;
    transform: scale(1.15);
}

/* Swatch color utilities */
.swatch-purple { background: #7239ea; }
.swatch-blue   { background: var(--kt-primary); }
.swatch-yellow { background: #e09c00; }
.swatch-green  { background: #50cd89; }
.swatch-red    { background: #f1416c; }
.swatch-teal   { background: #17c3b2; }
.swatch-orange { background: #fd7e14; }
.swatch-gray   { background: #6c757d; }

/* Filter pill dot colors */
.dot-new-deals { background: #7239ea; }
.dot-market    { background: var(--kt-primary); }
.dot-working   { background: #e09c00; }
.dot-portfolio { background: #50cd89; }
.dot-lost      { background: #f1416c; }

/* Modal width constraint */
.modal-w-400 { max-width: 400px; }

/* ── Dashboard Hero: Icon + Delta refinements ───────────────── */
.db-hero-stat {
    position: relative;
    padding: 16px 18px 14px;
    text-align: left;
}
.db-hero-stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    font-size: 16px;
    color: #fff;
}
.db-hero-stat.stat-blue   .db-hero-stat-icon { color: #38bdf8; }
.db-hero-stat.stat-yellow .db-hero-stat-icon { color: #FFC700; }
.db-hero-stat.stat-purple .db-hero-stat-icon { color: #b794f6; }
.db-hero-stat.stat-purple .db-hero-stat-val  { color: #b794f6; }
.db-hero-stat-val { font-size: 32px; }
.db-hero-stat-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.4px;
    text-transform: none;
    font-weight: 500;
    margin-top: 2px;
}
.db-hero-stat-delta {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ddd;
}
.db-hero-stat-delta .up   { color: #50CD89; }
.db-hero-stat-delta .down { color: #F1416C; }
.db-hero-stat-delta i { font-size: 11px; }

/* ── Dashboard KPI Strip ────────────────────────────────────── */
/* ── KPI strip ─────────────────────────────────────────────────── */
.db-kpi-strip { margin-top: 2px; }
.db-kpi-card {
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
a.db-kpi-card:hover {
    border-color: #c7e8f7;
    box-shadow: 0 6px 16px -8px rgba(16,24,40,0.10);
    transform: translateY(-1px);
    color: inherit;
    text-decoration: none;
}
.db-kpi-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.db-kpi-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    background: #f7f8fb;
    color: #6f727e;
}
.db-kpi-icon.kpi-blue   { background: #eaf9ff; color: var(--kt-primary); }
.db-kpi-icon.kpi-purple { background: #f3e8ff; color: #7239EA; }
.db-kpi-icon.kpi-green  { background: #e6f7ee; color: #16a34a; }
.db-kpi-icon.kpi-teal   { background: #e0f5f0; color: #14b8a6; }
.db-kpi-title {
    font-size: 12px;
    font-weight: 600;
    color: #6f727e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.db-kpi-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 2px;
}
.db-kpi-main-row {
    align-items: center;
    justify-content: space-between;
}
.db-kpi-value {
    font-size: 28px;
    font-weight: 700;
    color: #102F44;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.db-kpi-value-md { font-size: 18px; letter-spacing: -0.3px; }
.db-kpi-value-green { color: #16a34a; }
.db-kpi-sub {
    font-size: 12px;
    color: #6f727e;
    font-weight: 500;
}
.db-kpi-bar {
    display: flex;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: #f1f3f8;
    margin-top: auto;
}
.db-kpi-bar .seg { display: block; height: 100%; width: var(--seg-w, 0%); background: var(--seg-color, var(--kt-primary)); }
.db-kpi-bar .seg-blue   { background: var(--kt-primary); }
.db-kpi-bar .seg-purple { background: #7239EA; }
.db-kpi-bar .seg-yellow { background: #FFC700; }
.db-kpi-bar .seg-green  { background: #16a34a; }
.db-kpi-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11px;
    color: #6f727e;
    font-weight: 500;
}
.db-kpi-legend .dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    background: var(--dot-color, var(--kt-primary));
}
.db-kpi-legend .dot.blue   { background: var(--kt-primary); }
.db-kpi-legend .dot.purple { background: #7239EA; }
.db-kpi-legend .dot.yellow { background: #FFC700; }
.db-kpi-legend .dot.green  { background: #16a34a; }
.db-kpi-spark {
    width: 100%;
    height: 26px;
    display: block;
    margin-top: auto;
    opacity: 0.7;
}
.db-kpi-foot {
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.db-kpi-foot.up   { color: #16a34a; }
.db-kpi-foot.down { color: #dc2626; }
.db-kpi-mini-map {
    width: 56px;
    height: 36px;
    flex-shrink: 0;
    opacity: 0.55;
}
.db-kpi-mini-map svg { width: 100%; height: 100%; display: block; }

/* ── Page-width shell system (.dwi-page-shell) ──────────────────
   One shared responsive width contract for routed app pages. The
   Metronic bundle ships its container max-widths commented out, so a
   bare .container-xxl is full-bleed on every viewport; before this
   system each page either stretched across ultrawide monitors or
   carried its own ad-hoc cap. Pages opt into a semantic variant on
   their #kt_content_container element (alongside .container-xxl, whose
   gutters/centering are kept):

     --form    focused single-purpose forms and guided intake
     --report  document-style, reading-oriented pages
     --deal    underwriting / deal-detail workspaces (main + analysis rail)
     --wide    the shared application canvas: dashboards, pipelines,
               reports, markets, deals list, and account management
               (team/settings/billing/profile) — one set of outer
               boundaries for every in-app page
     --fluid   maps, large tables, grids that genuinely need all width

   The shell caps the working CANVAS only — it must never shrink type,
   controls, or inner content with the viewport. Inner reading/editing
   columns may be narrower, but only with an explicit content-based width.
   Skeleton loaders reuse these same classes on their content canvas
   (skeleton_loader.css .skl-content) so a loading page occupies exactly
   the geometry of the page that replaces it.

   Widths come from the --dwi-page-* tokens (themes/tokens.css). Must
   load AFTER style.bundle.css so these rules win equal-specificity
   ties against the bundle's container rules. The base class carries
   the app's standard gutters so it also works on non-Bootstrap
   containers (e.g. the Teams .tm-page). */
:root { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
}

.dwi-page-shell {
    width: 100%;
    margin-inline: auto;
    padding-inline: 30px;
}
.dwi-page-shell--form    { max-width: var(--dwi-page-form, 1200px); }
.dwi-page-shell--report  { max-width: var(--dwi-page-report, 1100px); }
.dwi-page-shell--deal    { max-width: var(--dwi-page-deal, 1800px); }
.dwi-page-shell--wide    { max-width: var(--dwi-page-wide, 1800px); }
.dwi-page-shell--fluid   { max-width: none; }
@media (max-width: 991.98px) {
    /* Match the bundle's mobile container gutter (padding: 0 15px). */
    .dwi-page-shell { padding-inline: 15px; }
}

/* ── Modern Shell: Wide Sidebar Override (DealCommand layout) ─── */
.dwi-shell-modern.aside-secondary-disabled .aside,
.dwi-shell-modern.aside-secondary-disabled .aside.aside-extended { width: 240px !important; }
.dwi-shell-modern.aside-secondary-disabled .aside .aside-primary { width: 240px !important; align-items: stretch !important; }

/* Differentiate sidebar / topbar / canvas */
.dwi-shell-modern { background: #f5f7fa !important; }
.dwi-shell-modern .aside {
    background: #ffffff !important;
    border-right: 1px solid #eaecf0 !important;
    box-shadow: none !important;
}
.dwi-shell-modern #kt_header.header {
    background: #ffffff !important;
    border-bottom: 1px solid #eaecf0 !important;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
    padding: 0 8px;
}
.dwi-shell-modern #kt_header.header.header-sticky { box-shadow: 0 4px 12px -8px rgba(16, 24, 40, 0.12); }
.dwi-shell-modern #kt_content,
.dwi-shell-modern #kt_content_container { background: transparent; }
.dwi-shell-modern .content.d-flex { background: transparent; }
.dwi-shell-modern .wrapper { background: #f5f7fa; }

/* ── Topbar polish ───────────────────────────────────────────── */
/* Breadcrumb */
.dwi-shell-modern .breadcrumb { gap: 0; }
.dwi-shell-modern .breadcrumb .breadcrumb-item { display: inline-flex; align-items: center; }
.dwi-shell-modern .breadcrumb .breadcrumb-item.text-muted { color: #98a2b3 !important; font-weight: 500; }
.dwi-shell-modern .breadcrumb .breadcrumb-item.text-muted a { color: #98a2b3 !important; text-decoration: none; transition: color 0.15s ease; }
.dwi-shell-modern .breadcrumb .breadcrumb-item.text-muted a:hover { color: var(--kt-primary) !important; }
.dwi-shell-modern .breadcrumb .breadcrumb-item.text-dark { color: #101828 !important; font-weight: 600; }
.dwi-shell-modern .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #d0d5dd;
    content: '/';
    padding: 0 8px;
    font-weight: 400;
}

/* Unified icon buttons in topbar (rocket, megaphone, chat, gear) */
.dwi-shell-modern #kt_header .btn-icon,
.dwi-shell-modern #kt_header [data-bs-target="#kt_intro_video"],
.dwi-shell-modern #kt_header .btn.btn-active-light-primary {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #667085 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.dwi-shell-modern #kt_header .btn-icon:hover,
.dwi-shell-modern #kt_header .btn.btn-active-light-primary:hover {
    background: #f4f6fa !important;
    color: #101828 !important;
}
.dwi-shell-modern #kt_header .btn-icon i,
.dwi-shell-modern #kt_header .btn.btn-active-light-primary i {
    font-size: 18px !important;
    color: inherit !important;
}
.dwi-shell-modern #kt_header .btn-icon .svg-icon,
.dwi-shell-modern #kt_header .btn.btn-active-light-primary .svg-icon { font-size: 18px; }
/* Topbar search field */
.dwi-shell-modern #kt_header .form-control-solid {
    background: #f9fafb !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    height: 38px !important;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.dwi-shell-modern #kt_header .form-control-solid:focus {
    background: #fff !important;
    border-color: var(--kt-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--kt-primary-rgb), 0.12) !important;
}

/* Wallet badge — quieter, tinted pill */
.dwi-shell-modern #kt_header .view_wallet { padding: 0 !important; background: transparent !important; }
.dwi-shell-modern #kt_header .view_wallet .badge-light-success {
    background: #e7f6ee !important;
    color: #079455 !important;
    border-radius: 999px !important;
    padding: 6px 12px 6px 10px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
    line-height: 1.4;
    border: 1px solid rgba(7, 148, 85, 0.16);
}
.dwi-shell-modern #kt_header .view_wallet .badge-light-success i {
    color: #079455 !important;
    font-size: 13px !important;
    margin: 0 4px 0 0 !important;
}

/* User profile chip — clean round avatar */
.dwi-shell-modern #kt_header_user_menu_toggle .symbol > .symbol-label,
.dwi-shell-modern #kt_header_user_menu_toggle .symbol > img {
    border-radius: 999px !important;
    overflow: hidden;
}
.dwi-shell-modern #kt_header_user_menu_toggle .symbol {
    box-shadow: 0 0 0 2px #eaecf0;
    border-radius: 999px;
    transition: box-shadow 0.15s ease;
    margin-left: 6px;
}
.dwi-shell-modern #kt_header_user_menu_toggle:hover .symbol { box-shadow: 0 0 0 2px var(--kt-primary); }

/* Aside toggle button (the panel-toggle next to breadcrumb) */
.dwi-shell-modern #kt_aside_toggle {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #667085 !important;
}
.dwi-shell-modern #kt_aside_toggle:hover { background: #f4f6fa !important; color: #101828 !important; }

/* ── Page header (Pipeline Board card etc.) ──────────────────── */
.pipeline-page-header {
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid #eaecf0;
}
.pipeline-page-header h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #101828 !important;
    letter-spacing: -0.3px;
}
.pipeline-page-header .text-muted { color: #667085 !important; font-size: 13px !important; }
.pipeline-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #eaf5ff;
    color: #1e9eff;
    font-size: 20px;
    box-shadow: inset 0 0 0 1px rgba(30, 158, 255, 0.16);
}

/* Action buttons row (Filter / Favorites / view toggle / Bulk Select) */
.pipeline-page-header .btn-light {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    color: #344054 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pipeline-page-header .btn-light:hover {
    border-color: #d0d5dd !important;
    color: #101828 !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}
.pipeline-page-header .btn-light.active,
.pipeline-page-header .btn-fav-filter.active {
    border-color: rgba(var(--kt-primary-rgb), 0.45) !important;
    color: var(--kt-primary) !important;
    background: rgba(var(--kt-primary-rgb), 0.08) !important;
}

/* Every control on the row shares one height so the segmented groups, the
   plain buttons and the New Deal CTA sit on the same optical line. 40px is
   the CTA's height = 3px track padding + 32px inner button + 3px + 2px
   border on the groups. */
.pipeline-page-header .btn-light,
.pipeline-page-header .view-toggle-group,
.pipeline-page-header .pipeline-board-toggle {
    min-height: 40px !important;
}
.pipeline-page-header .btn-light {
    display: inline-flex !important;
    align-items: center !important;
}

/* Board selector (Active / Favorites / Archived) — one segmented control on
   the same track treatment as the kanban/table view toggle, so the two groups
   read as siblings rather than as two unrelated widgets. The current board is
   a RAISED WHITE segment, not a solid fill: it is a place you are standing,
   and the solid brand fill on this row belongs to the New Deal action. */
.pipeline-page-header .pipeline-board-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    /* The track is the recessed ground the selected segment sits ON: it has
       to be visibly darker than the white pill, or the selection reads as no
       selection. */
    background: #eceff3 !important;
    border: 1px solid #e0e4ea !important;
    border-radius: 11px !important;
    padding: 3px !important;
}
.pipeline-page-header .pipeline-board-toggle .btn {
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px;
    border: 0 !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 11px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    background: transparent !important;
    color: #667085 !important;
    box-shadow: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}
.pipeline-page-header .pipeline-board-toggle .btn i { font-size: 13px; line-height: 1; }
.pipeline-page-header .pipeline-board-toggle .btn:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    color: #101828 !important;
}
.pipeline-page-header .pipeline-board-toggle .btn.is-current,
.pipeline-page-header .pipeline-board-toggle .btn.is-current:hover {
    background: #fff !important;
    color: #101828 !important;
    font-weight: 600 !important;
    /* hairline ring under the shadow — a soft drop shadow alone vanishes on a
       light display, and this pill is the answer to "which board am I on" */
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.10), 0 0 0 1px rgba(16, 24, 40, 0.06) !important;
}
.pipeline-page-header .pipeline-board-toggle .btn.is-current i { color: var(--kt-primary); }

/* Count chip. Tabular figures so the pills do not re-flow by a pixel when a
   count crosses 9 → 10, and a min-width so a 1-digit chip is not a dot. */
.pipeline-page-header .board-pill-count {
    min-width: 22px;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(16, 24, 40, 0.06);
    color: #667085;
    font-size: 11.5px;
    font-weight: 600;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.pipeline-page-header .pipeline-board-toggle .btn.is-current .board-pill-count {
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: var(--kt-primary);
}

/* The rule between "which deals" (board selector + Filter) and "how they are
   shown / what to do with them" (view toggle, Select, New deal). */
.pipeline-page-header .pipeline-tool-sep {
    width: 1px;
    height: 22px;
    background: #eaecf0;
    /* the row's own gap already spaces it — pull in so the pipe reads as a
       divider between two clusters, not as a control of its own */
    margin: 0 -3px;
}

/* Filter's active-count badge — solid brand, the row's only filled counter. */
.pipeline-page-header .filter-active-badge {
    background: var(--kt-primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    min-width: 20px;
    padding: 1px 6px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* New Deal CTA — title case with a "+" glyph, matching the row it sits on
   (the shared partial ships an uppercase label and a house icon, styled for
   the deal shell; this scope is the pipeline toolbar only). */
.pipeline-page-header #new_deal_btn_wrap .btn-primary {
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 40px;
    margin-bottom: 0 !important;
    border-radius: 10px !important;
    padding: 0 16px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}
.pipeline-page-header #new_deal_btn_wrap .btn-primary svg { display: none !important; }
.pipeline-page-header #new_deal_btn_wrap .btn-primary::before {
    content: "+";
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    margin-right: 7px;
    margin-top: -2px;
}

/* View toggle (kanban / table) — same recessed track as the board selector */
.view-toggle-group {
    background: #eceff3 !important;
    border: 1px solid #e0e4ea !important;
    border-radius: 10px !important;
    padding: 3px !important;
}
.btn-view-toggle {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px !important;
    color: #667085 !important;
}
.btn-view-toggle:hover { background: rgba(255,255,255,0.7) !important; color: #101828 !important; }
.btn-view-toggle.active {
    background: #fff !important;
    color: var(--kt-primary) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.10), 0 0 0 1px rgba(16, 24, 40, 0.06) !important;
}

/* ── Underwriting Report polish ─────────────────────────────── */
/* Top header strip — give it a real card surface */
.dwi-shell-modern .container-xxl > .d-lg-flex.align-items-center.border-bottom {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    border-bottom: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    padding: 18px 22px !important;
    margin: 24px 0 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Three-dots more menu button — compact + neutral */
.dwi-shell-modern .container-xxl button.btn-icon.btn-bg-light.btn-active-color-primary[data-kt-menu-trigger] {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    color: #667085 !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.dwi-shell-modern .container-xxl button.btn-icon.btn-bg-light.btn-active-color-primary[data-kt-menu-trigger]:hover {
    border-color: #d0d5dd !important;
    color: #101828 !important;
    background: #fff !important;
}
.dwi-shell-modern .container-xxl button.btn-icon.btn-bg-light.btn-active-color-primary[data-kt-menu-trigger] i {
    font-size: 16px !important;
    color: inherit !important;
    margin: 0 !important;
}

/* Address title — title case, modern weight */
.dwi-shell-modern .container-xxl .text-uppercase.fs-5,
.dwi-shell-modern .container-xxl .fs-5.text-uppercase,
.dwi-shell-modern .container-xxl .fs-4.text-uppercase {
    text-transform: none !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #101828 !important;
    letter-spacing: -0.3px !important;
}

.dwi-shell-modern .container-xxl .badge.badge-light-primary {
    background: #eaf5ff !important;
    color: #1e9eff !important;
    border-radius: 999px !important;
    padding: 4px 10px !important;
    font-weight: 600 !important;
    font-size: 10.5px !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    border: 1px solid rgba(30, 158, 255, 0.18);
}

/* Hide the tiny green bullet dots on each row — they add visual noise */
.dwi-shell-modern .container-xxl .d-flex.flex-stack > div > .bullet.bullet-dot,
.dwi-shell-modern .container-xxl .fv-row .bullet.bullet-dot {
    display: none !important;
}

/* Softer row separators */
.dwi-shell-modern .container-xxl .separator.separator-dashed {
    border-top-style: solid !important;
    border-top-color: #f2f4f7 !important;
    border-top-width: 1px !important;
    margin: 8px 0 !important;
    opacity: 1 !important;
}

/* Compact each "Label / value" row */
.dwi-shell-modern .container-xxl .d-flex.flex-stack {
    align-items: center !important;
    padding: 6px 4px !important;
}
.dwi-shell-modern .container-xxl .d-flex.flex-stack > div.d-flex.align-items-center {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Label typography */
.dwi-shell-modern .container-xxl .d-flex.flex-stack > div.text-capitalize {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #344054 !important;
    text-transform: none !important;
}

/* Computed-value (e.g. "$1,025,497 /unit") right side */
.dwi-shell-modern .container-xxl .d-flex.flex-stack .text-gray-900.fw-bold {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #344054 !important;
    margin-left: 12px !important;
}
.dwi-shell-modern .container-xxl .d-flex.flex-stack .text-muted,
.dwi-shell-modern .container-xxl .d-flex.flex-stack .text-gray-400 {
    color: #98a2b3 !important;
}

/* Convert / New Deal action buttons */
.dwi-shell-modern .convert_to_detailed.btn-success,
.dwi-shell-modern button.btn-success.convert_to_detailed {
    background: #fff !important;
    border: 1px solid rgba(7, 148, 85, 0.4) !important;
    color: #079455 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: -0.1px;
    padding: 8px 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dwi-shell-modern .convert_to_detailed.btn-success:hover {
    background: #e7f6ee !important;
    border-color: #079455 !important;
    color: #06673c !important;
}

/* Tab nav card — tighten, no oversized padding */
.dwi-shell-modern .container-xxl #sub_nav.card {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    margin-bottom: 16px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs {
    border-bottom: 0 !important;
    padding: 0 12px !important;
    gap: 4px;
    /* The 7 deal tabs are flex-nowrap/text-nowrap; without horizontal scroll
       they clip off-screen on narrow viewports. Let the row scroll instead. */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 0 !important;
    color: #667085 !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    letter-spacing: 0.4px !important;
    padding: 14px 14px !important;
    position: relative;
    background: transparent !important;
    text-transform: uppercase !important;
    transition: color 0.15s ease;
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs .nav-link:hover {
    color: #101828 !important;
    background: transparent !important;
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs .nav-link.active {
    color: #101828 !important;
    background: transparent !important;
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--kt-primary);
    border-radius: 2px 2px 0 0;
}
.dwi-shell-modern .container-xxl #sub_nav .nav-tabs .nav-link i { font-size: 13px; margin-right: 6px; }

/* Section accordion headers (1. OVERVIEW etc.) */
.dwi-shell-modern .container-xxl .card-header.bg-light.collapsible,
.dwi-shell-modern .container-xxl .card-header.bg-light {
    background: #fcfcfd !important;
    border-bottom: 1px solid #eaecf0 !important;
    padding: 16px 22px !important;
    border-radius: 12px 12px 0 0 !important;
    transition: background 0.15s ease;
    text-transform: none !important;
}
.dwi-shell-modern .container-xxl .card-header.bg-light:hover { background: #f7f8fa !important; }
.dwi-shell-modern .container-xxl .card-header.bg-light .anchor.fw-bold {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #101828 !important;
    letter-spacing: -0.2px !important;
    text-transform: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
}
.dwi-shell-modern .container-xxl .card-header.bg-light .anchor.fw-bold > div.fs-5 {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #98a2b3 !important;
    background: #f2f4f7 !important;
    border-radius: 999px !important;
    width: 24px !important;
    height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    margin: 0 !important;
}
.dwi-shell-modern .container-xxl .card-header.bg-light.active .anchor.fw-bold > div.fs-5,
.dwi-shell-modern .container-xxl .card-header.bg-light:not(.collapsed) .anchor.fw-bold > div.fs-5 {
    background: #eaf5ff !important;
    color: #1e9eff !important;
}
/* Section content padding */
.dwi-shell-modern .container-xxl .card-body { padding: 20px 24px !important; }

/* Sticky side-panel column refinements */
.dwi-shell-modern .container-xxl .d-flex.flex-stack > div:first-child,
.dwi-shell-modern .container-xxl .row.flex-stack {
    align-items: center;
}
/* Property image placeholder — softer */
.dwi-shell-modern .container-xxl .symbol-label.bg-light-primary,
.dwi-shell-modern .container-xxl .property-image-placeholder {
    background: #f9fafb !important;
    border: 1px dashed #eaecf0 !important;
    color: #98a2b3 !important;
    border-radius: 12px !important;
}
/* Underwriting summary side panel — pull labels together */
.dwi-shell-modern .container-xxl .text-gray-700.fw-bolder,
.dwi-shell-modern .container-xxl .text-gray-800.fw-bolder { font-weight: 600 !important; color: #344054 !important; font-size: 13px !important; }

/* Bigger headline metric (DSCR 0.05) */
.dwi-shell-modern .container-xxl .fs-2x.fw-bolder.text-danger,
.dwi-shell-modern .container-xxl .display-6.text-danger { color: #d12559 !important; }

/* Underwrite cards — wrap section bodies in rounded surface */
.dwi-shell-modern .container-xxl .border.border-gray-200.rounded {
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}

/* ── Real input field styling (was: cyan chips) ───────────── */
.dwi-shell-modern .container-xxl input.badge.editable,
.dwi-shell-modern .container-xxl input.badge.currency,
.dwi-shell-modern .container-xxl input.badge.badge-light-primary,
.dwi-shell-modern .container-xxl input.badge.badge-light-info,
.dwi-shell-modern .container-xxl input.badge.badge-light-success,
.dwi-shell-modern .container-xxl input.badge.badge-light-warning,
.dwi-shell-modern .container-xxl input[type="text"].editable,
.dwi-shell-modern .container-xxl input[type="text"].currency {
    background: #f4f6fa !important;
    color: #101828 !important;
    border: 1px solid #e4e7ec !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    /* text-align: right; */
    min-width: 110px;
    box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    text-transform: none !important;
    cursor: text;
}
.dwi-shell-modern .container-xxl input.badge.editable:hover,
.dwi-shell-modern .container-xxl input[type="text"].editable:hover,
.dwi-shell-modern .container-xxl input.badge.currency:hover {
    background: #eef0f6 !important;
    border-color: #d0d5dd !important;
}
.dwi-shell-modern .container-xxl input.badge.editable:focus,
.dwi-shell-modern .container-xxl input.badge.editable:focus-visible,
.dwi-shell-modern .container-xxl input[type="text"].editable:focus,
.dwi-shell-modern .container-xxl input.badge.currency:focus,
.dwi-shell-modern .container-xxl input.badge.badge-light-primary:focus {
    border-color: var(--kt-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(var(--kt-primary-rgb), 0.16) !important;
    outline: none !important;
}

/* Subtle "edit" pencil affordance — appears on hover via attribute marker */
.dwi-shell-modern .container-xxl input.badge.editable {
    background-image: linear-gradient(#f4f6fa, #f4f6fa);
}
.dwi-shell-modern .container-xxl input.badge[disabled],
.dwi-shell-modern .container-xxl input.badge.editable[disabled] {
    background: #fafbfc !important;
    color: #667085 !important;
    border-color: #eaecf0 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Non-input pill values — distinct from inputs (no border, brand
   cyan tint, fully-rounded pill, smaller). Signals "this is a
   computed / clickable value, not an editable field". */
.dwi-shell-modern .container-xxl .badge.badge-light-primary:not(input):not([class*="text-uppercase"]),
.dwi-shell-modern .container-xxl .badge.badge-light-info:not(input):not([class*="text-uppercase"]),
.dwi-shell-modern .container-xxl .badge.badge-light-success:not(input):not([class*="text-uppercase"]),
.dwi-shell-modern .container-xxl .badge.badge-light-warning:not(input):not([class*="text-uppercase"]) {
    background: #eaf5ff !important;
    color: #1e9eff !important;
    border-radius: 999px !important;
    padding: 2px 9px !important;
    font-weight: 600 !important;
    /* font-size: 11.5px !important; */
    line-height: 1.5 !important;
    border: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    text-align: center !important;
}
.dwi-shell-modern .container-xxl .badge.badge-light-success:not(input):not([class*="text-uppercase"]) {
    background: #e7f6ee !important;
    color: #079455 !important;
}
.dwi-shell-modern .container-xxl .badge.badge-light-warning:not(input):not([class*="text-uppercase"]) {
    background: #fef6e7 !important;
    color: #dc8800 !important;
}

/* ── Select2 dropdown polish ─────────────────────────────── */
.dwi-shell-modern .select2-container--default {
    width: 100% !important;
}
.dwi-shell-modern .select2-container .select2-selection--single,
.dwi-shell-modern .select2-container .select2-selection {
    height: 38px !important;
    width: 100% !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}
.dwi-shell-modern .select2-container .select2-selection__rendered {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.dwi-shell-modern .select2-container--focus .select2-selection,
.dwi-shell-modern .select2-container--open .select2-selection {
    border-color: var(--kt-primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--kt-primary-rgb), 0.16) !important;
}
.dwi-shell-modern .select2-container .select2-selection__rendered {
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 36px !important;
    padding-left: 14px !important;
    padding-right: 32px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.dwi-shell-modern .select2-container .select2-selection__arrow {
    height: 36px !important;
    width: 28px !important;
    right: 6px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%23344054'><path d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.dwi-shell-modern .select2-container .select2-selection__arrow b {
    display: none !important; /* hide the default CSS-triangle marker */
}
.dwi-shell-modern .select2-container--open .select2-selection__arrow {
    transform: rotate(180deg);
    transform-origin: center;
}
.dwi-shell-modern .select2-dropdown {
    border: 1px solid #eaecf0 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 32px -8px rgba(16, 24, 40, 0.18) !important;
    overflow: hidden;
    padding: 4px;
    background: #fff;
}
.dwi-shell-modern .select2-results__option {
    padding: 9px 12px !important;
    border-radius: 6px !important;
    color: #344054 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 1px 0;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}
.dwi-shell-modern .select2-results__option:hover,
.dwi-shell-modern .select2-results__option--highlighted[aria-selected] {
    background: var(--dwi-color-primary-soft, rgba(14, 110, 89, 0.10)) !important;
    color: var(--dwi-color-primary-strong, #0B5C4A) !important;
}
.dwi-shell-modern .select2-results__option--selected,
.dwi-shell-modern .select2-results__option[aria-selected="true"] {
    background: var(--dwi-color-primary-soft, rgba(14, 110, 89, 0.10)) !important;
    color: var(--dwi-color-primary, #0E6E59) !important;
    font-weight: 600 !important;
    position: relative;
}
.dwi-shell-modern .select2-results__option--selected::after,
.dwi-shell-modern .select2-results__option[aria-selected="true"]::after {
    content: '\F633';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dwi-color-primary, #0E6E59);
    font-size: 13px;
}

/* Native <select> fallback (when not using select2) */
.dwi-shell-modern .container-xxl select.form-select,
.dwi-shell-modern .container-xxl select.form-select-solid {
    background-color: #fff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    color: #344054 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ── Right summary panel + Hide/Show toggle ───────────────── */
/* Anchor the toggle to the page header area (instead of floating
   mid-screen) so it visually belongs to the page chrome, not to
   the viewport edge. */
.dwi-shell-modern .container-xxl .engage-toolbar.summary_state {
    position: sticky !important;
    top: 88px !important;
    left: auto !important;
    right: 8px !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    height: 0 !important;
    z-index: 5 !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    display: flex !important;
    pointer-events: none;
}
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state] {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    pointer-events: auto;
    width: auto !important;
    height: 36px !important;
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 999px !important;
    color: #344054 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: -0.1px !important;
    padding: 0 14px 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px -8px rgba(16, 24, 40, 0.12) !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    text-transform: none !important;
    white-space: nowrap;
}
/* Add an obvious "Analysis Panel" context — appended via CSS so it
   doesn't fight the existing JS that swaps "Hide" / "Show". */
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state] .summary_state_txt::after {
    content: ' analysis panel';
}
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state]:hover {
    background: #f9fafb !important;
    color: #101828 !important;
    border-color: #d0d5dd !important;
}
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state] i {
    font-size: 13px !important;
    color: #98a2b3 !important;
    transition: transform 0.2s ease, color 0.2s ease;
    margin: 0 !important;
}
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state]:hover i { color: var(--kt-primary) !important; }

/* Hidden state (panel collapsed) — cyan-tinted pill says "Show analysis panel" */
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state="active"] {
    background: rgba(var(--kt-primary-rgb), 0.08) !important;
    color: #1e9eff !important;
    border-color: rgba(var(--kt-primary-rgb), 0.35) !important;
}
.dwi-shell-modern .container-xxl .summary_state > button[data-summary-state="active"] i {
    color: #1e9eff !important;
}

/* ── Redundant legacy toggle removed ──────────────────────────
   The old mid-right "engage-toolbar" hide/show control (rendered just
   below the analysis panel, under "Expense Ratio") is superseded by the
   floating bottom-right pill below. Hide it everywhere so only one
   toggle is ever shown. */
.dwi-shell-modern .container-xxl .engage-toolbar.summary_state {
    display: none !important;
}

/* ── Top hide/show toggle — pinned to the bottom-right of the viewport
       (Gmail "Hide/Show side panel" style), always visible while the
       user scrolls regardless of panel state. Aligned to the same right
       edge as the scroll-to-top button (right: 20px); when that button
       appears it lifts above it so the two never overlap. ─────────── */
.dwi-shell-modern .container-xxl .summary_state.summary_state-top {
    position: fixed !important;
    bottom: 24px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    z-index: 1030 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: fit-content !important;
    max-width: fit-content !important;
    display: block !important;
    text-align: right !important;
    pointer-events: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    align-self: auto !important;
    transition: bottom 0.2s ease !important;
}
/* When the scroll-to-top button is visible, stack the analysis-panel toggle
   above it. Metronic sets data-kt-scrolltop="on" ON the <body>, which is also
   the .dwi-shell-modern element — so both live on the same node and the
   selector must combine them (not nest them). The scroll-to-top sits at
   bottom:40px and is 36px tall (top edge ~76px), so 88px clears it with a
   ~12px gap. */
body.dwi-shell-modern[data-kt-scrolltop=on] .container-xxl .summary_state.summary_state-top {
    bottom: 88px !important;
}
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 999px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.05px;
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08), 0 8px 24px -10px rgba(16, 24, 40, 0.28);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn:hover {
    background: #f9fafb;
    color: #101828;
    border-color: #d0d5dd;
}
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn i {
    font-size: 12px;
    color: #98a2b3;
    transition: color 0.15s ease, transform 0.2s ease;
}
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn:hover i { color: var(--kt-primary); }
/* Append " analysis" so the pill reads as a clear, contextual control */
.dwi-shell-modern .container-xxl .summary_state-top .summary_state_txt::after {
    content: ' analysis';
}

/* Hidden state — cyan-tinted to nudge users to click to show the panel */
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn[data-summary-state="active"] {
    background: rgba(var(--kt-primary-rgb), 0.08) !important;
    color: #1e9eff !important;
    border-color: rgba(var(--kt-primary-rgb), 0.35) !important;
}
.dwi-shell-modern .container-xxl .summary_state-top .summary_state-top-btn[data-summary-state="active"] i {
    color: #1e9eff !important;
}

/* Hide the analysis-panel toggles on mobile — the panel stacks
   naturally below the underwriting content on small screens, so the
   hide/show control is unnecessary and only adds clutter. */
@media (max-width: 767.98px) {
    html body .summary_state,
    html body .summary_state.summary_state-top,
    html body .engage-toolbar.summary_state,
    html body div.summary_state.d-flex,
    html body div.engage-toolbar.d-flex.summary_state {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ── Sticky deal context bar (deal_context_bar.js) ───────────────
   A slim toolbar pinned under the ~64px fixed header once the user scrolls
   past the main header/nav. Three controls: a left "context cluster" (view +
   scenario) and a right-aligned section jump. position:fixed (left/width synced
   to #kt_content_container by JS) keeps reveal/hide from reflowing the page.
   z-index 30: above page content / sticky table headers (z:1) but below modals
   (1055) and select2 (9999) so it never overlaps them. */
.dwi-shell-modern .deal-ctxbar {
    position: fixed;
    top: 58px; /* fallback; deal_context_bar.js pins it flush to #kt_header's bottom */
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #eef0f3;
    box-shadow: 0 6px 14px -10px rgba(16, 24, 40, 0.18);
}
.deal-ctxbar .deal-ctxbar-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
}
.deal-ctxbar .deal-ctxbar-cluster { display: flex; align-items: center; gap: 8px; min-width: 0; }
.deal-ctxbar .deal-ctxbar-sections { margin-left: auto; }
.deal-ctxbar .deal-ctxbar-group { min-width: 0; }

/* ---- control buttons ---- */
.deal-ctxbar .deal-ctxbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 340px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.deal-ctxbar .deal-ctxbar-btn:hover { background: #f9fafb; border-color: #d1d5db; }
.deal-ctxbar .deal-ctxbar-btn[aria-expanded="true"] {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.deal-ctxbar .deal-ctxbar-ico { font-size: 16px; color: #6b7280; flex: 0 0 auto; }
.deal-ctxbar .deal-ctxbar-prefix {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    flex: 0 0 auto;
}
.deal-ctxbar .deal-ctxbar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}
.deal-ctxbar .deal-ctxbar-caret {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 2px;
    flex: 0 0 auto;
    transition: transform .15s ease;
}
.deal-ctxbar .deal-ctxbar-btn[aria-expanded="true"] .deal-ctxbar-caret { transform: rotate(180deg); }

/* ---- dropdown menus ---- */
.deal-ctxbar .deal-ctxbar-menu {
    min-width: 250px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 6px;
    margin-top: 8px;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.10), 0 4px 6px -4px rgba(16, 24, 40, 0.08);
}
.deal-ctxbar .deal-ctxbar-sections .deal-ctxbar-menu { min-width: 300px; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-head {
    padding: 9px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.deal-ctxbar .deal-ctxbar-menu .dropdown-divider { margin: 6px 8px; border-color: #f0f1f3; opacity: 1; }

.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    white-space: normal;
}
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item:hover,
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item:focus {
    background: #f9fafb;
    color: #111827;
}
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-mk {
    font-size: 14px;
    color: #9ca3af;
    flex: 0 0 auto;
    width: 18px;
    text-align: center;
}
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-star { color: #f59e0b; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item > .deal-ctxbar-item-name { flex: 1 1 auto; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item-sub { font-size: 11px; font-weight: 400; color: #9ca3af; margin-top: 1px; }

/* active row + check (pseudo so toggling .active alone shows/hides it) */
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item.active {
    background: #ecfdf5;
    color: #059669;
    font-weight: 600;
}
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item.active .deal-ctxbar-mk,
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item.active .deal-ctxbar-star { color: #059669; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-item.active::after {
    content: '\2713';
    margin-left: auto;
    padding-left: 10px;
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

/* action row (e.g. New scenario) */
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-action { color: #059669; font-weight: 600; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-action .deal-ctxbar-mk { color: #059669; }
.deal-ctxbar .deal-ctxbar-menu .deal-ctxbar-action:hover { background: #ecfdf5; color: #047857; }

/* Nudge the pinned underwrite/summary columns down while the bar is showing so
   it never overlaps them (the columns pin at 75px; clear the ~58px toolbar). */
.dwi-shell-modern .container-xxl.dwi-ctxbar-on #underwriting_data,
.dwi-shell-modern .container-xxl.dwi-ctxbar-on #research_data,
.dwi-shell-modern .container-xxl.dwi-ctxbar-on .property_summary-content {
    top: 122px;
}

@media (max-width: 575.98px) {
    .deal-ctxbar .deal-ctxbar-inner { gap: 8px; padding: 8px 12px; }
    .deal-ctxbar .deal-ctxbar-label { max-width: 120px; }
    .deal-ctxbar .deal-ctxbar-btn { height: 36px; padding: 0 10px; }
}

/* Scenario row container — tighten + give it card surface.
   `#con_ws_analyses_bar` is the CONSTRUCTION analysis strip: it plays the same
   role in the same place and reuses the same pill anatomy, so it is listed
   alongside rather than given a second copy of these declarations. See the
   matching note in themes/theme-dealworthit-deal.css. */
.dwi-shell-modern .container-xxl #scenario_section .card,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .card {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    margin-bottom: 16px !important;
}
.dwi-shell-modern .container-xxl #scenario_section .card-header,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .card-header {
    padding: 12px 14px !important;
    min-height: 0 !important;
}
.dwi-shell-modern .container-xxl #scenario_section .nav-pills,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .nav-pills { gap: 6px; align-items: center; }
.dwi-shell-modern .container-xxl #scenario_section .nav-pills .scenario,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .nav-pills .scenario {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    color: #344054 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    box-shadow: none !important;
    text-transform: none !important;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dwi-shell-modern .container-xxl #scenario_section .nav-pills .scenario:hover,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .nav-pills .scenario:hover {
    border-color: #d0d5dd !important;
    color: #101828 !important;
}
.dwi-shell-modern .container-xxl #scenario_section .nav-pills .scenario.active,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar .nav-pills .scenario.active {
    background: rgba(var(--kt-primary-rgb), 0.08) !important;
    border-color: rgba(var(--kt-primary-rgb), 0.5) !important;
    color: #1e9eff !important;
}
.dwi-shell-modern .container-xxl #scenario_section .nav-pills .scenario.active .la-star { color: #f5a524; }

/* New Scenario + Compare Scenarios buttons, and the construction strip's own
   New Analysis / Snapshot history / Compare Analyses controls. */
.dwi-shell-modern .container-xxl #scenario_section .clone_scenario,
.dwi-shell-modern .container-xxl #scenario_section [data-bs-target="#kt_modal_compare_scenarios"],
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_new_analysis_btn,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_compare_btn,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_history_btn {
    background: #fff !important;
    border: 1px solid #eaecf0 !important;
    color: #344054 !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    padding: 7px 14px !important;
    font-size: 12.5px !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.dwi-shell-modern .container-xxl #scenario_section .clone_scenario:hover,
.dwi-shell-modern .container-xxl #scenario_section [data-bs-target="#kt_modal_compare_scenarios"]:hover,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_new_analysis_btn:hover,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_compare_btn:hover,
.dwi-shell-modern .container-xxl #con_ws_analyses_bar #con_ws_history_btn:hover {
    border-color: #d0d5dd !important;
    color: #101828 !important;
}

/* Side panel (Underwriting summary) row labels & values */
.dwi-shell-modern .container-xxl .text-gray-600,
.dwi-shell-modern .container-xxl .text-gray-700 { color: #667085 !important; }
.dwi-shell-modern .container-xxl .text-dark { color: #101828 !important; }

/* DSCR / metric headline values — refine */
.dwi-shell-modern .container-xxl .fs-2x.fw-bolder,
.dwi-shell-modern .container-xxl .display-6.fw-bolder {
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* Logo row – horizontal with platform name */
.dwi-shell-modern .aside-logo {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 22px 22px 20px !important;
    gap: 10px;
}
.dwi-shell-modern .dwi-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    max-width: 100%;
}
.dwi-shell-modern .dwi-logo-img {
    width: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Sidebar brand logo swap: the full wordmark (logo-default.svg) while the rail
   is EXPANDED, the compact mark (logo-compact.svg) while COLLAPSED. Both <img>
   render; only one shows per state. Placed after .dwi-logo-img so the --full
   width override wins the (equal-specificity) cascade. */
.dwi-shell-modern .dwi-logo-img--full {
    width: auto !important; height: 65px !important; margin-top: -20px !important;
    /* A wide wordmark lockup (the DealWorthIt one is ~5.2:1) is wider than the rail
       at 65px tall and spills over the aside edge. Cap it to the wrapper's content
       box — fluid, so it tracks the rail width and its 22px padding rather than
       hard-coding either — and let object-fit keep the aspect inside the 65px row.
       Narrower brand wordmarks never reach the cap and are unaffected. */
    max-width: 100% !important; object-fit: contain;
}
.dwi-shell-modern .dwi-logo-img--compact { display: none; }
@media (min-width: 992px) {
    html[data-dwi-aside-collapsed="1"] .dwi-shell-modern .dwi-logo-img--full { display: none !important; }
    html[data-dwi-aside-collapsed="1"] .dwi-shell-modern .dwi-logo-img--compact {
        display: inline-block !important; width: 36px !important; height: auto !important;
    }
}
.dwi-shell-modern .dwi-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: #1e2139;
    letter-spacing: -0.3px;
    line-height: 1;
}
.dwi-shell-modern .dwi-logo-text:not(.dwi-logo-text--split)::first-letter { color: var(--kt-primary); }
.dwi-shell-modern .dwi-logo-text--split { display: inline-flex; }
.dwi-shell-modern .dwi-logo-text-primary { color: var(--kt-primary); }
.dwi-shell-modern .dwi-logo-text-secondary { color: #102F44; }

/* Nav padding */
.dwi-shell-modern .aside-nav { padding: 24px 14px 4px !important; }
.dwi-shell-modern #kt_aside_menu_wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 auto;
}
.dwi-shell-modern #kt_aside_menu { width: 100%; flex: 0 0 auto; }
.dwi-shell-modern .menu-item.loader { width: 100%; }

/* Hide the dashed separators that were used between icon-only items */
.dwi-shell-modern #kt_aside_menu .separator.separator-dashed { display: none; }

/* Convert vertical icon-only menu links to horizontal row layout */
.dwi-shell-modern .menu-link.menu-center {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0;
    padding: 11px 14px !important;
    border-radius: 10px !important;
    margin: 3px 0;
    transition: background 0.18s ease, color 0.18s ease;
    width: 100%;
}
.dwi-shell-modern .menu-link.menu-center .menu-icon {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    flex: 1;
    display: block;
}
.dwi-shell-modern .menu-link.menu-center .menu-icon .svg-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    height: auto !important;
}
.dwi-shell-modern .menu-link.menu-center .menu-icon [class*="bi-"]:not(.svg-icon),
.dwi-shell-modern .menu-link.menu-center .menu-icon [class*="fa-"] {
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #8a90a6;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.18s ease;
}
/* Label text */
.dwi-shell-modern .menu-link.menu-center .menu-icon .svg-icon > div {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 500;
    color: #3f4254;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.1px;
    transition: color 0.18s ease, font-weight 0.18s ease;
}
/* Active state */
.dwi-shell-modern .menu-link.menu-center.active {
    background: rgba(var(--kt-primary-rgb, 57, 209, 255), 0.12) !important;
}
.dwi-shell-modern .menu-link.menu-center.active .menu-icon [class*="bi-"]:not(.svg-icon),
.dwi-shell-modern .menu-link.menu-center.active .menu-icon [class*="fa-"] { color: var(--kt-primary) !important; }
.dwi-shell-modern .menu-link.menu-center.active .svg-icon > div { color: var(--kt-primary) !important; font-weight: 600; }

/* Hover */
.dwi-shell-modern .menu-link.menu-center:not(.active):hover { background: #f4f6fa !important; }
.dwi-shell-modern .menu-link.menu-center:not(.active):hover .menu-icon [class*="bi-"]:not(.svg-icon),
.dwi-shell-modern .menu-link.menu-center:not(.active):hover .menu-icon [class*="fa-"] { color: #1e2139; }
.dwi-shell-modern .menu-link.menu-center:not(.active):hover .svg-icon > div { color: #1e2139; }

/* Subtle group separator (after Team) */
.dwi-shell-modern #kt_aside_menu > .menu-item:nth-child(5)::after {
    content: '';
    display: block;
    height: 1px;
    background: #eef1f6;
    margin: 14px 10px;
}
/* Group dividers between sections */
.dwi-shell-modern .menu-item.dwi-menu-group-start { position: relative; padding-top: 12px; margin-top: 12px; }
.dwi-shell-modern .menu-item.dwi-menu-group-start::before {
    content: '';
    position: absolute;
    top: 0; left: 8px; right: 8px;
    height: 1px;
    background: #eef0f5;
}

/* Aside footer / Upgrade card */
.dwi-shell-modern .aside-footer { padding: 14px 14px 16px !important; gap: 10px; }
.dwi-upgrade-card {
    width: 100%;
    background: #f5f7ff;
    border: 1px solid #e6e9f5;
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
}
.dwi-upgrade-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7239EA, #5014D0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
    text-decoration: none;
    cursor: pointer;
}
.dwi-upgrade-icon:hover { color: #fff; }
.dwi-upgrade-title {
    font-size: 13px;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 2px;
}
.dwi-upgrade-sub {
    font-size: 11px;
    color: #7e8299;
    line-height: 1.35;
    margin-bottom: 10px;
}
.dwi-upgrade-btn {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    background: #6c5dd3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.dwi-upgrade-btn:hover { background: #5b4dc8; color: #fff; }

/* Reusable feature-lock CTA (partials/feature_lock.html). Reuses the purple
   dwi-upgrade-* palette so in-page locked states match the sidebar upgrade
   card instead of introducing a second (amber) theme. */
.dwi-feature-lock-card {
    width: 100%;
    background: #f5f7ff;
    border: 1px solid #e6e9f5;
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
}
.dwi-feature-lock-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7239EA, #5014D0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.dwi-feature-lock-title {
    font-size: 15px;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 4px;
}
.dwi-feature-lock-desc {
    font-size: 12px;
    color: #7e8299;
    line-height: 1.4;
    max-width: 460px;
    margin: 0 auto 14px;
}
.dwi-feature-lock-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #6c5dd3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}
.dwi-feature-lock-btn:hover { background: #5b4dc8; color: #fff; }
/* Compact inline pill for tight action areas. */
.dwi-feature-lock-compact {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f7ff;
    border: 1px solid #e6e9f5;
    color: #6c5dd3;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.dwi-feature-lock-compact:hover { background: #ecebff; border-color: #d6d9ef; color: #5b4dc8; }

.dwi-feedback-wrap { width: 100%; }
.dwi-feedback-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e6e9f5;
    background: #fff;
    color: #7239EA;
    font-size: 12px;
    font-weight: 600;
}
.dwi-feedback-btn:hover { background: #f5f7ff; color: #5014D0; }

/* Wrapper margin-left to match wider aside */
.dwi-shell-modern.aside-secondary-disabled.aside-fixed .wrapper { padding-left: 240px; }
@media (max-width: 991.98px) {
    .dwi-shell-modern.aside-secondary-disabled.aside-fixed .wrapper { padding-left: 0; }
}

/* ── Modern Shell: Header tweaks ────────────────────────────── */
.dwi-shell-modern .header { box-shadow: none; border-bottom: 1px solid #eef0f5; }
.dwi-shell-modern .dwi-header-title-row { min-height: 40px; }
.dwi-shell-modern .dwi-aside-desktop-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e6e9f5;
    background: #fff;
    color: #4a4f6d;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.2s;
}
.dwi-shell-modern .dwi-aside-desktop-toggle:hover {
    background: #f5f8fc;
    color: var(--kt-primary);
    border-color: #d8e8fb;
}
.dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-aside-desktop-toggle i { transform: scaleX(-1); }
.dwi-shell-modern #kt_docs_search_handler_basic { width: 380px; max-width: 36vw; }
.dwi-shell-modern #kt_docs_search_handler_basic .form-control {
    border-radius: 999px !important;
    background: #f4f6fb !important;
    border: 1px solid transparent;
    height: 42px !important;
    font-size: 13px !important;
}
.dwi-shell-modern #kt_docs_search_handler_basic .form-control:focus {
    background: #fff !important;
    border-color: #c8d4ec;
}

/* ── Action Card buttons: cyan primary, neutral outline secondary ─
   The previous design used a saturated darker cyan for primary and a
   lavender Analyze button — both fought the brand palette. The new
   pairing is a single brand-cyan filled button plus a quiet outline,
   so the action card reads as a single voice rather than two competing
   campaigns. */
.dwi-shell-modern .db-action-card { padding-top: 24px; }
.dwi-shell-modern .db-action-card::before { display: none; }
.dwi-shell-modern .db-action-card::after { display: none; }
.dwi-shell-modern .db-action-card-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #eaf9ff;
    box-shadow: none;
}
.dwi-shell-modern .db-action-card-icon i { color: var(--kt-primary); font-size: 20px; }

.dwi-shell-modern .db-btn-find,
.dwi-shell-modern .db-btn-analyze {
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dwi-shell-modern .db-btn-find {
    background: var(--kt-primary);
    color: #fff;
    border: 1px solid var(--kt-primary);
}
.dwi-shell-modern .db-btn-find:hover {
    background: var(--kt-primary-active);
    border-color: var(--kt-primary-active);
    color: #fff;
    box-shadow: none;
}
.dwi-shell-modern .db-btn-find .db-btn-icon { color: #fff; }

.dwi-shell-modern .db-btn-analyze {
    background: #fff;
    color: #102F44;
    border: 1px solid #e4e6ef;
}
.dwi-shell-modern .db-btn-analyze:hover {
    background: #f7f8fb;
    color: #102F44;
    border-color: #c7e8f7;
    box-shadow: none;
}
/* Cyan sparkle icon kept as a small accent — signals "AI-assisted" without
   pulling the whole button into a second color theme. */
.dwi-shell-modern .db-btn-analyze .db-btn-icon { color: var(--kt-primary); }

@media (min-width: 992px) {
    .dwi-shell-modern[data-kt-aside-minimize="on"].aside-secondary-disabled .aside,
    .dwi-shell-modern[data-kt-aside-minimize="on"].aside-secondary-disabled .aside.aside-extended {
        width: 96px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"].aside-secondary-disabled .aside .aside-primary {
        width: 96px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"].aside-secondary-disabled.aside-fixed .wrapper {
        padding-left: 96px;
    }

    .dwi-shell-modern.aside-fixed.aside-secondary-disabled[data-kt-sticky-header=on] .header {
        left: 240px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"].aside-fixed.aside-secondary-disabled[data-kt-sticky-header=on] .header {
        left: 96px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .aside-logo {
        justify-content: center !important;
        padding: 20px 10px 18px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-logo-link {
        justify-content: center;
        width: 100%;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-logo-text,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-link.menu-center .menu-icon .svg-icon > div,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-title,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-sub,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-btn,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-feedback-btn span {
        display: none !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .aside-nav {
        padding-top: 4px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-link.menu-center {
        justify-content: center !important;
        padding: 12px 10px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-link.menu-center .menu-icon {
        flex: 0 0 auto;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-link.menu-center .menu-icon .svg-icon {
        justify-content: center !important;
        gap: 0 !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-item.dwi-menu-group-start {
        padding-top: 10px;
        margin-top: 10px;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .menu-item.dwi-menu-group-start::before,
    .dwi-shell-modern[data-kt-aside-minimize="on"] #kt_aside_menu > .menu-item:nth-child(5)::after {
        left: 18px;
        right: 18px;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .aside-footer {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-card,
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-feedback-btn {
        padding-left: 0;
        padding-right: 0;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-card {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
    }
    .dwi-shell-modern[data-kt-aside-minimize="on"] .dwi-upgrade-icon {
        margin-bottom: 0;
    }
}

/* Chips: lighter tone */
.dwi-shell-modern .db-chip {
    background: #f3f5fa;
    border-color: #eaecf3;
    color: #5e6278;
    padding: 5px 10px;
    font-size: 12px;
}

/* ── Hero stat refinements (icon in dark square, bigger numbers) ─ */
.dwi-shell-modern .db-hero { padding: 32px 36px; }
.dwi-shell-modern .db-hero-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 20px 16px;
    border-radius: 14px;
    text-align: center;
}
.dwi-shell-modern .db-hero-stat-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    margin: 0 auto 12px;
    color: rgba(255,255,255,0.85);
}
.dwi-shell-modern .db-hero-stat.stat-blue   .db-hero-stat-icon i { color: #5fb5fb; }
.dwi-shell-modern .db-hero-stat.stat-yellow .db-hero-stat-icon i { color: #ffd34d; }
.dwi-shell-modern .db-hero-stat.stat-purple .db-hero-stat-icon i { color: #c5a8ff; }
.dwi-shell-modern .db-hero-stat-val { font-size: 36px; font-weight: 800; }
.dwi-shell-modern .db-hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.dwi-shell-modern .db-hero-stat-delta {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 8px;
    margin-top: 4px;
    width: 100%;
    font-size: 12px;
}

/* KPI cards – tighter spacing per mockup. Colored .kpi-blue/.kpi-purple/etc.
   variants are intentionally NOT overridden here so the minimalistic tint
   shows through. */
.dwi-shell-modern .db-kpi-card { padding: 16px 18px 14px; gap: 8px; }
.dwi-shell-modern .db-kpi-main {
    align-items: center;
    gap: 10px;
}
.dwi-shell-modern .db-kpi-value { font-size: 26px; }
.dwi-shell-modern .db-kpi-sub { font-size: 12px; }
.dwi-shell-modern .db-kpi-legend { font-size: 11.5px; row-gap: 4px; }

/* New Deal picker modal redesign */
#kt_modal_new_deal_picker .modal-dialog {
    max-width: 680px;
}

/* ── Analyze New Deal Picker — refined ───────────────────── */
#kt_modal_new_deal_picker .nd-modal-content {
    border: 1px solid #eaecf0;
    border-radius: 16px;
    box-shadow: 0 24px 56px -12px rgba(16, 24, 40, 0.18), 0 4px 10px rgba(16, 24, 40, 0.05);
    padding: 28px 28px 24px;
    background: #fff;
}

#kt_modal_new_deal_picker .nd-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
#kt_modal_new_deal_picker .nd-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #101828;
    line-height: 1.25;
    letter-spacing: -0.3px;
    margin: 0 0 4px;
}
#kt_modal_new_deal_picker .nd-modal-subtitle {
    font-size: 13px;
    color: #667085;
    margin: 0;
    line-height: 1.45;
}
#kt_modal_new_deal_picker .nd-modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #667085;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 14px;
    flex-shrink: 0;
}
#kt_modal_new_deal_picker .nd-modal-close:hover {
    background: #f2f4f7;
    color: #101828;
}

/* Filter pill bar — segmented control */
#kt_modal_new_deal_picker .nd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 10px;
    margin-bottom: 20px;
}
#kt_modal_new_deal_picker .nd-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.05px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
#kt_modal_new_deal_picker .nd-filter-pill i {
    font-size: 13px;
    opacity: 0.65;
}
#kt_modal_new_deal_picker .nd-filter-pill:hover { color: #101828; }
#kt_modal_new_deal_picker .nd-filter-pill.active {
    background: #fff;
    color: #101828;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
#kt_modal_new_deal_picker .nd-filter-pill.active i { opacity: 1; }

/* Cards grid */
#kt_modal_new_deal_picker .nd-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 991.98px) {
    #kt_modal_new_deal_picker .nd-deals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    #kt_modal_new_deal_picker .nd-deals-grid { grid-template-columns: 1fr; }
}

/* Deal card */
#kt_modal_new_deal_picker .nd-deal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
#kt_modal_new_deal_picker .nd-deal-card:hover {
    transform: translateY(-1px);
    border-color: #d0d5dd;
    box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
    color: inherit;
    text-decoration: none;
}

#kt_modal_new_deal_picker .nd-deal-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: #98a2b3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

#kt_modal_new_deal_picker .nd-deal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1;
}
#kt_modal_new_deal_picker .nd-deal-icon i { line-height: 1; color: inherit !important; }
#kt_modal_new_deal_picker .nd-deal-icon-primary { background: #eaf5ff !important; color: #1e9eff !important; }
#kt_modal_new_deal_picker .nd-deal-icon-warning { background: #fef6e7 !important; color: #dc8800 !important; }
#kt_modal_new_deal_picker .nd-deal-icon-violet  { background: #f1ecff !important; color: #7239EA !important; }
#kt_modal_new_deal_picker .nd-deal-icon-success { background: #e7f6ee !important; color: #079455 !important; }
#kt_modal_new_deal_picker .nd-deal-icon-danger  { background: #fdecef !important; color: #d12559 !important; }

#kt_modal_new_deal_picker .nd-deal-title {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
    line-height: 1.35;
    letter-spacing: -0.15px;
    margin-bottom: 4px;
}
#kt_modal_new_deal_picker .nd-deal-desc {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #667085;
    flex: 1;
}
#kt_modal_new_deal_picker .nd-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    letter-spacing: -0.1px;
    margin-top: auto;
    transition: color 0.15s ease, gap 0.15s ease;
}
#kt_modal_new_deal_picker .nd-deal-cta i {
    font-size: 12px;
    color: #98a2b3;
    transition: transform 0.15s ease, color 0.15s ease;
}
#kt_modal_new_deal_picker .nd-deal-card:hover .nd-deal-cta { gap: 8px; color: var(--kt-primary); }
#kt_modal_new_deal_picker .nd-deal-card:hover .nd-deal-cta i { transform: translateX(2px); color: var(--kt-primary); }

/* Unified framework asset picker — the shared _framework_asset_picker.html partial,
   rendered BOTH in the New Deal modal and on the standalone /property/intake page.
   Self-contained (NOT scoped to #kt_modal_new_deal_picker) so it looks identical on
   both surfaces; visually distinct from the legacy .nd-deal-card grid it sits above. */
.nd-deals-grid--framework { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 768px) { .nd-deals-grid--framework { grid-template-columns: 1fr; } }
.nd-framework-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--kt-border-color, #eaecf0); border-radius: 12px; background: var(--kt-body-bg, #fff); text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a.nd-framework-card:hover { border-color: var(--kt-primary, #0E6E59); box-shadow: 0 4px 16px rgba(16, 24, 40, .08); transform: translateY(-1px); color: inherit; }
.nd-framework-card .nd-deal-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; background: var(--kt-gray-100, #f5f7f6); }
.nd-framework-card .nd-deal-tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--kt-gray-600, #6b7570); }
.nd-framework-card .nd-deal-title { font-size: 17px; font-weight: 600; margin-top: 4px; }
.nd-framework-card .nd-deal-desc { font-size: 14px; color: var(--kt-gray-600, #6b7570); margin: 0; }
.nd-framework-card .nd-deal-cta { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--kt-primary, #0E6E59); }
/* Not-yet-available assets: visible but muted and non-interactive (rendered as <div>). */
.nd-framework-card.nd-deal-card--soon { opacity: .6; cursor: default; }
.nd-framework-card.nd-deal-card--soon:hover { border-color: var(--kt-border-color, #eaecf0); box-shadow: none; transform: none; }

/* Most popular badge — subtle tinted pill */
#kt_modal_new_deal_picker .nd-deal-popular {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 600;
    color: #1e9eff;
    background: #eaf5ff;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
    text-transform: none;
    z-index: 2;
}
#kt_modal_new_deal_picker .nd-deal-card--popular {
    border-color: rgba(30, 158, 255, 0.35);
}

/* Empty state */
#kt_modal_new_deal_picker .nd-deals-empty {
    text-align: center;
    padding: 32px 20px;
    color: #98a2b3;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fafbfc;
}
#kt_modal_new_deal_picker .nd-deals-empty i { font-size: 24px; color: #d0d5dd; display: block; margin-bottom: 8px; }
#kt_modal_new_deal_picker .nd-deals-empty-title { font-size: 14px; font-weight: 600; color: #344054; }
#kt_modal_new_deal_picker .nd-deals-empty-sub { font-size: 12.5px; margin-top: 4px; color: #667085; }

/* Help strip */
#kt_modal_new_deal_picker .nd-help-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eaecf0;
}
#kt_modal_new_deal_picker .nd-help-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
#kt_modal_new_deal_picker .nd-help-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eaf5ff;
    color: #1e9eff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
#kt_modal_new_deal_picker .nd-help-title {
    font-size: 13px;
    font-weight: 600;
    color: #101828;
    letter-spacing: -0.1px;
}
#kt_modal_new_deal_picker .nd-help-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #667085;
    line-height: 1.4;
}
#kt_modal_new_deal_picker .nd-help-sub b { color: #344054; font-weight: 600; }
#kt_modal_new_deal_picker .nd-help-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #344054;
    border: 0;
    text-decoration: none;
    padding: 6px 4px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -0.1px;
    white-space: nowrap;
    transition: color 0.15s ease;
}
#kt_modal_new_deal_picker .nd-help-btn i { transition: transform 0.15s ease; }
#kt_modal_new_deal_picker .nd-help-btn:hover { color: var(--kt-primary); }
#kt_modal_new_deal_picker .nd-help-btn:hover i { transform: translateX(2px); }

@media (max-width: 767.98px) {
    #kt_modal_new_deal_picker .nd-modal-content { padding: 22px 18px 18px; }
    #kt_modal_new_deal_picker .nd-modal-title { font-size: 19px; }
    #kt_modal_new_deal_picker .nd-help-strip {
        flex-direction: column;
        align-items: stretch;
    }
    #kt_modal_new_deal_picker .nd-help-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ── Compare Strategies page ────────────────────────────────── */
/* Page header */
.cs-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eaecf0;
}
.cs-eyebrow {
    font-size: 12px;
    color: #98a2b3;
    font-weight: 500;
    letter-spacing: 0.1px;
    margin-bottom: 8px;
}
.cs-eyebrow a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.cs-eyebrow a:hover { color: var(--kt-primary); }
.cs-page-title {
    font-size: 30px;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin: 0 0 8px;
}
.cs-page-subtitle {
    font-size: 14px;
    color: #667085;
    line-height: 1.6;
    max-width: 680px;
    margin: 0;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #eaecf0;
    background: #fff;
    color: #344054;
    text-decoration: none;
    letter-spacing: -0.1px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cs-btn:hover { color: #101828; border-color: #d0d5dd; text-decoration: none; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.cs-btn-ghost { background: transparent; }
.cs-btn-primary {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(var(--kt-primary-rgb), 0.5);
}
.cs-btn-primary:hover { background: var(--kt-primary-active); border-color: var(--kt-primary-active); color: #fff; transform: translateY(-1px); }
.cs-btn i { font-size: 13px; }

/* Guidance row */
.cs-guide-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.cs-guide-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cs-guide-card:hover {
    border-color: #d0d5dd;
    box-shadow: 0 4px 8px -2px rgba(16, 24, 40, 0.06);
    transform: translateY(-1px);
}
.cs-guide-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}
.cs-guide-icon i { line-height: 1; color: inherit !important; }
.cs-guide-icon-cyan   { background: #eaf5ff !important; color: #1e9eff !important; }
.cs-guide-icon-violet { background: #f1ecff !important; color: #7239EA !important; }
.cs-guide-icon-amber  { background: #fef6e7 !important; color: #dc8800 !important; }
.cs-guide-content { min-width: 0; }
.cs-guide-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #98a2b3;
    margin-bottom: 4px;
}
.cs-guide-value {
    font-size: 15px;
    font-weight: 600;
    color: #101828;
    letter-spacing: -0.15px;
    margin-bottom: 6px;
}
.cs-guide-value b { color: var(--kt-primary); font-weight: 700; }
.cs-guide-desc {
    font-size: 13px;
    color: #667085;
    line-height: 1.5;
}

/* Comparison table */
.cs-table-wrap {
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    margin-bottom: 32px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -16px rgba(16, 24, 40, 0.08);
    overflow-x: auto;
    overflow-y: visible;
}
.cs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1320px;
    table-layout: fixed;
}
.cs-table colgroup col.cs-col-feature { width: 220px; }
.cs-table colgroup col.cs-col-strategy { width: auto; }

.cs-table th,
.cs-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #f2f4f7;
    font-size: 13px;
    color: #344054;
    line-height: 1.5;
}
.cs-table tbody tr:last-child td { border-bottom: 0; }

/* Row hover */
.cs-table tbody tr:not(.cs-row-section):not(.cs-row-cta):hover td:not(.cs-feature) { background: #fafbfc; }

/* Header */
.cs-table thead th {
    background: #fcfcfd;
    border-bottom: 1px solid #eaecf0;
    padding: 20px 16px 18px;
    vertical-align: top;
}
.cs-th-feature {
    color: #98a2b3 !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    vertical-align: bottom;
    padding-bottom: 20px !important;
}
.cs-th-card {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cs-th-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
    line-height: 1;
}
.cs-th-icon i { line-height: 1; color: inherit !important; }
.cs-icon-primary { background: #eaf5ff !important; color: #1e9eff !important; }
.cs-icon-warning { background: #fef6e7 !important; color: #dc8800 !important; }
.cs-icon-violet  { background: #f1ecff !important; color: #7239EA !important; }
.cs-icon-success { background: #e7f6ee !important; color: #079455 !important; }
.cs-icon-danger  { background: #fdecef !important; color: #d12559 !important; }
.cs-th-name {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    letter-spacing: -0.15px;
    line-height: 1.3;
}
.cs-th-sub {
    font-size: 12px;
    color: #667085;
    font-weight: 500;
    margin-top: 2px;
}

/* Popular column highlight — full-column treatment */
.cs-table thead th:nth-child(4) {
    background: #f7fcff;
    border-top: 3px solid var(--kt-primary);
    padding-top: 42px;
    position: relative;
}
.cs-table tbody td:nth-child(4) { background: #fbfdff; }
.cs-table tbody tr.cs-row-section td:nth-child(4),
.cs-table tbody tr.cs-row-cta td:nth-child(4) { background: #f3faff; }
.cs-th-popular {
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--kt-primary), var(--kt-primary-active));
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 8px -2px rgba(var(--kt-primary-rgb), 0.5);
    z-index: 2;
}
.cs-th-card--popular .cs-th-name { color: #101828; }

/* Section rows */
.cs-row-section td {
    background: #fafbfc;
    color: #98a2b3;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 11px 16px;
    border-bottom: 1px solid #eaecf0;
    border-top: 1px solid #eaecf0;
}

/* Feature (left) column */
.cs-feature {
    color: #344054;
    font-weight: 600;
    background: #fafbfc;
    border-right: 1px solid #f2f4f7;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 1;
}
.cs-table tbody tr:hover .cs-feature { background: #fafbfc; }

/* Cell icons */
.cs-yes { color: #079455; font-size: 17px; line-height: 1; }
.cs-no  { color: #d0d5dd; font-size: 17px; line-height: 1; }
.cs-soft {
    font-size: 12.5px;
    color: #667085;
    font-weight: 500;
}

/* Pills (time) */
.cs-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    letter-spacing: 0.1px;
    line-height: 1.5;
}
.cs-pill-fast { background: #e7f6ee; color: #079455; }
.cs-pill-deep { background: #f1ecff; color: #7239EA; }

/* CTA row */
.cs-row-cta td { padding-top: 18px; padding-bottom: 20px; background: #fcfcfd; }
.cs-row-cta .cs-feature { background: #fafbfc; }
.cs-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #eaecf0;
    background: #fff;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cs-cta:hover {
    color: #101828;
    border-color: #d0d5dd;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 4px 12px -4px rgba(16,24,40,0.1);
    transform: translateY(-1px);
}
.cs-cta i { font-size: 12px; transition: transform 0.15s ease; color: #98a2b3; }
.cs-cta:hover i { transform: translateX(2px); color: var(--kt-primary); }
.cs-cta-primary {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(var(--kt-primary-rgb), 0.5);
}
.cs-cta-primary i { color: rgba(255,255,255,0.85); }
.cs-cta-primary:hover { background: var(--kt-primary-active); border-color: var(--kt-primary-active); color: #fff; }
.cs-cta-primary:hover i { color: #fff; }
/* Popular column gets the primary CTA automatically */
.cs-table tbody tr.cs-row-cta td:nth-child(4) .cs-cta:not(.cs-cta-primary) {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(var(--kt-primary-rgb), 0.5);
}
.cs-table tbody tr.cs-row-cta td:nth-child(4) .cs-cta:not(.cs-cta-primary) i { color: rgba(255,255,255,0.85); }
.cs-table tbody tr.cs-row-cta td:nth-child(4) .cs-cta:not(.cs-cta-primary):hover { background: var(--kt-primary-active); border-color: var(--kt-primary-active); }
.cs-table tbody tr.cs-row-cta td:nth-child(4) .cs-cta:not(.cs-cta-primary):hover i { color: #fff; }

/* Footer */
.cs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(var(--kt-primary-rgb), 0.04) 0%, rgba(114, 57, 234, 0.04) 100%);
    border: 1px solid #eaecf0;
    border-radius: 14px;
    margin-bottom: 32px;
}
.cs-footer-title {
    font-size: 16px;
    font-weight: 700;
    color: #101828;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}
.cs-footer-sub {
    font-size: 13px;
    color: #667085;
    line-height: 1.5;
    max-width: 680px;
}

@media (max-width: 991.98px) {
    .cs-guide-row { grid-template-columns: 1fr; }
    .cs-page-head { flex-direction: column; align-items: flex-start; }
    .cs-page-title { font-size: 24px; }
    .cs-footer { flex-direction: column; align-items: flex-start; }
    .cs-feature { position: static; }
}

/* =====================================================   Underwriting Analysis Panel — clean, professional polish
   Scoped to .property_summary-content so other pages stay intact
   ============================================================ */

.property_summary-content {
    /* background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%); */
    /* border: 1px solid #eaf2f7; */
    border-radius: 16px;
    /* box-shadow:
        0 1px 2px rgba(16, 47, 68, 0.04),
        0 12px 28px -18px rgba(16, 47, 68, 0.18); */
    padding: 14px !important;

    /* Sidebar scroll-then-stick.
       `position: sticky` is declared here (not via the .position-sticky
       Bootstrap class) because some views — e.g. property_report_quick.html
       — render this element without that class.
       The panel sits in flow at its natural position and scrolls with the
       page until its top reaches `top` from the viewport. At that point
       it pins, and the rest of the page (main content column) keeps
       scrolling past. The `top` value clears Metronic's 65px sticky header
       (defined in style.bundle.css ~line 48856) with a small breathing gap. */
    position: sticky;
    top: 75px;
    align-self: flex-start;
}

/* ----------------------------------------------------------
   Left content column — sticky only when shorter than right.
   `#underwriting_data` and `#research_data` are the col-sm-8
   wrappers used across all property report views (property.html,
   property_report_quick.html, property_report_flip.html,
   property_report_wholesale.html).

   `align-self: flex-start` opts this column out of the flex row's
   default `align-items: stretch`. As a result:
     - If the LEFT content is SHORTER than the right panel: the
       column keeps its natural content height, the row stretches
       to match the taller right column, and `position: sticky`
       has range to operate — the left column pins below the
       Metronic header as the user scrolls past.
     - If the LEFT content is TALLER than the right panel: the
       column fills the entire row's cross-axis size, leaving
       sticky with zero scroll range — sticky becomes a no-op and
       the column scrolls naturally with the page.
   The 75px `top` value matches `.property_summary-content` so
   both panels pin to the same line under the sticky 65px header. */
#underwriting_data,
#research_data {
    position: sticky;
    top: 75px;
    align-self: flex-start;
}

/* --- Property header card (image + owner info) --- */
.property_summary-content #view_my_property:not(.dwi-an-owner) {
    background: #ffffff;
    border: 1px solid #eef3f7;
    border-radius: 14px;
    padding: 12px;
    margin: 0 0 16px 0 !important;
    align-items: stretch !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.property_summary-content #view_my_property:not(.dwi-an-owner):hover {
    border-color: rgba(var(--kt-primary-rgb), 0.55);
    box-shadow: 0 6px 18px -10px rgba(var(--kt-primary-rgb), 0.35);
    transform: translateY(-1px);
}

/* Property image wrapper — fix the height so a long owner name can't stretch it */
.property_summary-content #view_my_property:not(.dwi-an-owner) > .col-lg-4 {
    flex: 0 0 110px;
    max-width: 110px;
    padding-right: 12px !important;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) > .col-lg-4 > .d-flex {
    height: 110px !important;
    width: 100%;
}
.property_summary-content .property_img,
.property_summary-content .streetview_img {
    height: 110px !important;
    width: 100% !important;
    border-radius: 10px !important;
    border: 1px solid #e6eef4 !important;
    background: #f4f9fc;
    object-fit: cover;
}

/* Owner info column takes remaining width */
.property_summary-content #view_my_property:not(.dwi-an-owner) > .col-lg-8 {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
}

/* Owner info column — kill the heavy gray borders, give it air */
.property_summary-content #view_my_property:not(.dwi-an-owner) .border,
.property_summary-content #view_my_property:not(.dwi-an-owner) .border-end-0,
.property_summary-content #view_my_property:not(.dwi-an-owner) .border-start-0 {
    border: 0 !important;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .col-lg-8 > div {
    padding: 0 !important;
}

/* Stack label above value so long company names can use full width */
.property_summary-content #view_my_property:not(.dwi-an-owner) .d-flex.flex-stack {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 2px;
    padding: 4px 0 !important;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .text-gray-800 {
    color: #6c7a87 !important;
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 1.3;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .d-flex.align-items-center {
    align-items: flex-start !important;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .badge {
    background: transparent !important;
    color: #102F44 !important;
    font-weight: 600;
    font-size: 12.5px;
    padding: 0 !important;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .badge .bi-dash-lg {
    font-size: 14px !important;
    color: #b6c2cd !important;
}
.property_summary-content #view_my_property:not(.dwi-an-owner) .separator.separator-dashed {
    border-color: #eef3f7 !important;
    border-style: solid !important;
    opacity: 1;
    margin: 6px 0 !important;
}

/* --- Financial summary block (GOI → Debt Cost) --- */
.property_summary-content .summary > .rounded.border.border-dashed {
    background: #ffffff !important;
    border: 1px solid #eaf2f7 !important;
    border-style: solid !important;
    border-radius: 14px !important;
    padding: 12px 12px !important;
    box-shadow: 0 1px 2px rgba(16, 47, 68, 0.04);
}
.property_summary-content .summary > .rounded.border.border-dashed .text-gray-800,
.property_summary-content .summary > .rounded.border.border-dashed .text-gray-800m {
    color: #475467 !important;
    font-weight: 500;
    font-size: 11.5px;
    line-height: 1.35;
}
.property_summary-content .summary > .rounded.border.border-dashed .fw-boldest .text-gray-800,
.property_summary-content .summary > .rounded.border.border-dashed .fw-boldest .text-gray-800m {
    color: #102F44 !important;
    font-weight: 700;
}
.property_summary-content .summary > .rounded.border.border-dashed .separator.separator-dashed {
    border-color: #f0f4f8 !important;
    border-style: solid !important;
    opacity: 1;
    margin: 2px 0 !important;
}

/* Money badges on the right — quiet but readable */
.property_summary-content .summary > .rounded.border.border-dashed .badge.badge-light {
    background: #f5f9fc !important;
    color: #102F44 !important;
    border: 1px solid #e6eef4;
    font-weight: 600;
    font-size: 11.5px;
    padding: 4px 8px;
    border-radius: 8px;
    min-width: 72px;
    text-align: right;
    white-space: nowrap;
}
/* Highlight the NOI row */
.property_summary-content .summary > .rounded.border.border-dashed .fw-boldest .badge.badge-light {
    background: linear-gradient(180deg, #eaf8ff 0%, #d8f1ff 100%) !important;
    color: #0E2A3D !important;
    border-color: rgba(var(--kt-primary-rgb), 0.45);
    box-shadow: 0 1px 2px rgba(var(--kt-primary-rgb), 0.15);
}

/* Small inline percentage pills (the 45% / 55% chips next to labels) */
.property_summary-content .summary > .rounded.border.border-dashed .badge.fs-9.badge-light-primary,
.property_summary-content .summary > .rounded.border.border-dashed .badge.fs-9.badge-light {
    background: rgba(var(--kt-primary-rgb), 0.14) !important;
    color: #0E2A3D !important;
    border: 1px solid rgba(var(--kt-primary-rgb), 0.28);
    font-weight: 700;
    font-size: 9.5px !important;
    padding: 0 5px !important;
    border-radius: 999px;
    line-height: 1.5;
    vertical-align: 1px;
    display: inline-block;
    white-space: nowrap;
    margin-left: 2px !important;
}
.property_summary-content .summary > .rounded.border.border-dashed .badge.fs-9.badge-light-danger {
    background: rgba(244, 63, 94, 0.10) !important;
    color: #B42318 !important;
    border: 1px solid rgba(244, 63, 94, 0.28);
    font-weight: 700;
    font-size: 9.5px !important;
    padding: 0 5px !important;
    border-radius: 999px;
    line-height: 1.5;
    vertical-align: 1px;
    display: inline-block;
    white-space: nowrap;
    margin-left: 2px !important;
}

/* Keep label + inline chip + money badge on the same baseline; tight gap */
.property_summary-content .summary > .rounded.border.border-dashed .d-flex.flex-stack {
    align-items: center !important;
    gap: 8px;
    padding: 5px 0;
}
.property_summary-content .summary > .rounded.border.border-dashed .d-flex.flex-stack > .text-gray-800,
.property_summary-content .summary > .rounded.border.border-dashed .d-flex.flex-stack > .text-gray-800m {
    min-width: 0;
    flex: 1 1 auto;
}

/* Inline icons (info circle) — small, attached to label, never break to new line */
.property_summary-content .summary > .rounded.border.border-dashed .fa-exclamation-circle {
    font-size: 10px !important;
    margin-left: 4px !important;
    padding-top: 0 !important;
    vertical-align: 1px;
    display: inline-block;
}

/* Info icons next to labels — softer, aligned */
.property_summary-content .fa-exclamation-circle {
    color: #a3b1bd !important;
    transition: color 0.15s ease;
}
.property_summary-content .fa-exclamation-circle:hover {
    color: var(--kt-primary) !important;
}

/* --- DSCR / FCF / COC card --- */
.property_summary-content .card.card-flush.bg-lighta {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%) !important;
    border: 1px solid #eaf2f7 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 47, 68, 0.04);
    overflow: hidden;
}
.property_summary-content .card.card-flush.bg-lighta .card-header {
    padding: 12px 14px !important;
}
.property_summary-content .card.card-flush.bg-lighta .card-body {
    padding: 12px 14px !important;
}
.property_summary-content .card.card-flush.bg-lighta .separator.separator-dashed {
    border-color: #eef3f7 !important;
    border-style: solid !important;
    opacity: 1;
}

/* --- Key Operating Ratios card (IRR, EM, GRM, etc.) --- */
.property_summary-content .summary > .rounded.border.border-dashed.card-flush {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%) !important;
    border: 1px solid #eaf2f7 !important;
    border-style: solid !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 47, 68, 0.04);
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .card-header {
    padding: 12px 14px 8px !important;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .card-header .fs-1 {
    font-size: 15px !important;
    color: #102F44 !important;
    letter-spacing: -0.01em;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .card-body {
    padding: 8px 14px 14px !important;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .border-bottom {
    border-color: #eef3f7 !important;
    padding-bottom: 6px;
    margin-bottom: 6px !important;
    font-size: 10.5px !important;
    color: #6c7a87;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .border-bottom .text-primary {
    font-size: 10.5px !important;
    color: var(--kt-primary) !important;
}

/* Each ratio row — keep label + icon + values on a single line */
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .d-flex.fw-semibold.align-items-center {
    padding: 5px 0;
    gap: 6px;
    margin-top: 0 !important;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .bullet {
    flex: 0 0 8px;
    margin-right: 8px !important;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .text-gray-800.flex-grow-1 {
    color: #475467 !important;
    font-weight: 500 !important;
    font-size: 11.5px !important;
    line-height: 1.3;
    min-width: 0;
    margin-right: 8px !important;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .text-gray-800.flex-grow-1 .fa-exclamation-circle {
    font-size: 10px !important;
    margin-left: 4px !important;
    vertical-align: 1px;
    display: inline-block;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .d-flex.fw-semibold.align-items-center > .d-flex.align-items-center {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11.5px;
    gap: 2px;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .d-flex.fw-semibold.align-items-center > .d-flex.align-items-center .fw-bolder {
    font-size: 12px;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .d-flex.fw-semibold.align-items-center > .d-flex.align-items-center .bi-arrow-right {
    font-size: 10px !important;
    padding: 0 2px !important;
    color: #b6c2cd;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .d-flex.fw-semibold.align-items-center > .d-flex.align-items-center .w-25px {
    width: auto !important;
    min-width: 24px;
    color: #6c7a87;
}
.property_summary-content .summary > .rounded.border.border-dashed.card-flush .separator {
    border-color: #f0f4f8 !important;
    opacity: 1;
    margin: 0 !important;
}

/* =====================================================   Property Data (Research) panel shell
   ------------------------------------------------------------
   The property-data tab used to mount legacy chrome (a small
   "RESEARCH DATA" title + dashed rule + tiny nav-line-tabs)
   directly on the grey app body, so it read as unfinished next
   to the white #sub_nav tab-bar card and the Market Insights
   panel. This wraps the whole tab in ONE white card surface and
   gives it an icon + title header + clean underline sub-tabs, in
   the same visual language as Market Insights (mi-v2).
   Applied to the stable #research_data container so the loading
   skeleton and the loaded shell share the same white sheet.
   ============================================================ */
#research_data {
    background: #ffffff;
    border: 1px solid #E7E9EE;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 40, 68, 0.04), 0 1px 1px rgba(16, 40, 68, 0.03);
    padding: 22px 26px 26px;
    margin-bottom: 1.5rem;
}
@media (max-width: 767.98px) {
    #research_data { padding: 16px 14px 20px; border-radius: 12px; }
}
/* nav.html's inner col-12 wrapper — strip the bootstrap gutter and
   any legacy margin so the header sits flush inside the card. */
#research_data [id^="research_data_"] {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ---- Header (icon badge + title + subtitle) ---- */
.pd-shell-hd { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-shell-hd-txt { min-width: 0; }
.pd-shell-ico {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: #E4F3EE; border: 1px solid rgba(14, 110, 89, 0.18);
    color: #0E6E59; font-size: 16px;
}
.pd-shell-title {
    font-size: 22px; font-weight: 700; color: #102F44;
    margin: 0; letter-spacing: -0.015em; line-height: 1.2;
}
.pd-shell-sub { font-size: 13px; color: #60646C; margin-top: 2px; }

/* ---- Sub-tabs: clean underline tabs on a full-width rail ---- */
.pd-subnav.nav {
    display: flex; flex-wrap: wrap; gap: 2px;
    border-bottom: 1px solid #E7E9EE;
    margin: 0 0 22px; padding: 0;
}
.pd-subnav .nav-item { margin-bottom: -1px; }
.pd-subnav .nav-link.research_tab {
    position: relative; border: 0; background: transparent; border-radius: 0;
    padding: 9px 14px; margin: 0;
    font-size: 13.5px; font-weight: 600; color: #60646C; white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.pd-subnav .nav-link.research_tab:hover { color: #102F44; }
.pd-subnav .nav-link.research_tab.active {
    color: #0E6E59; background: transparent; border-bottom-color: #0E6E59;
}
@media (max-width: 575.98px) {
    .pd-shell-title { font-size: 19px; }
    .pd-subnav .nav-link.research_tab { padding: 8px 10px; font-size: 12.5px; }
}

/* ---- No public record (property/research/pd_unavailable.html) ----
   A static outline of the sub-tab's layout under one explanatory note.
   Deliberately NOT the .ov-skel shimmer: nothing is loading. */
.pd-unavail { position: relative; min-height: 440px; }
.pd-unavail-skel {
    display: flex; flex-direction: column; gap: 16px;
    opacity: .6; pointer-events: none; user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.pd-unavail .pdu-card,
.pd-unavail .pdu-tile {
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--r-border, #D8D9E0); border-radius: 8px;
}
.pd-unavail .pdu-card { padding: 16px; gap: 12px; }
.pd-unavail .pdu-tile { padding: 14px; }
.pd-unavail .pdu-bar { display: block; height: 10px; border-radius: 4px; background: #E8E9ED; }
.pd-unavail .pdu-bar-lg { height: 16px; }
.pd-unavail .pdu-bar-head { height: 12px; margin-bottom: 4px; }
.pd-unavail .pdu-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pd-unavail .pdu-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pd-unavail .pdu-media { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; }
.pd-unavail .pdu-box { min-height: 180px; border-radius: 6px; background: #EEEFF2; }
.pd-unavail .pdu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd-unavail .pdu-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid #F0F1F3; }
.pd-unavail .pdu-end { margin-left: auto; }
.pd-unavail .pdu-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.pd-unavail .pdu-field { display: flex; flex-direction: column; gap: 8px; }
.pd-unavail .pdu-person { display: flex; align-items: center; gap: 14px; }
.pd-unavail .pdu-stack { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.pd-unavail .pdu-dot { display: block; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: #E8E9ED; }
.pd-unavail .pdu-track { position: relative; height: 28px; }
.pd-unavail .pdu-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #E8E9ED; }
.pd-unavail .pdu-track .pdu-dot { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.pd-unavail .pdu-track .pdu-dot-sm { width: 10px; height: 10px; }
.pd-unavail-note {
    position: absolute; top: 88px; left: 50%; transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    padding: 22px 24px; text-align: center;
    background: #fff; border: 1px solid var(--r-border, #D8D9E0); border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}
.pd-unavail-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: #F1F2F4;
}
.pd-unavail-ico i { color: #60646C !important; font-size: 18px !important; }
.pd-unavail-title { font-size: 15px; font-weight: 700; color: var(--r-text, #102F44); }
.pd-unavail-sub { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--r-text-muted, #60646C); }
.pd-unavail-note .dwi-help-cta { justify-content: center; }
@media (max-width: 767.98px) {
    .pd-unavail .pdu-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-unavail .pdu-media { grid-template-columns: 1fr; }
    .pd-unavail .pdu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd-unavail .pdu-fields { grid-template-columns: 1fr; }
    .pd-unavail-note { top: 40px; padding: 18px; }
}

/* =====================================================   Research Overview — minimalist, typography-led
   Scoped to .research-overview
   ------------------------------------------------------------
   Color tokens use the Radix Colors light-mode scales
   (https://www.radix-ui.com/colors) for perceptually uniform
   greys and status hues. No platform colors are touched here —
   the brand navy `--r-text` and brand cyan default for
   `--r-accent` stay in place, and `--r-accent` is wrapped in a
   var() so any platform's style.bundle.css can override it by
   declaring `--app-accent` without editing this file.
   ============================================================ */
.research-overview {
    /* Neutral palette — Radix Slate (cool grey) */
    --r-bg:            #FCFCFD;  /* slate-1  */
    --r-bg-soft:       #F9F9FB;  /* slate-2  */
    --r-bg-hover:      #EFF0F3;  /* slate-3  */
    --r-border:        #D8D9E0;  /* slate-6  */
    --r-border-strong: #CDCED7;  /* slate-7  */
    --r-text-faint:    #8B8D98;  /* slate-9  */
    --r-text-muted:    #60646C;  /* slate-11 */
    --r-text:          #102F44;  /* brand navy — preserved */

    --r-accent:        var(--app-accent, var(--kt-primary));

    /* Status — Radix step-11 (low-contrast text/icon, accessible on white) */
    --r-success:       #2A7E3B;  /* grass-11 */
    --r-danger:        #CE2C31;  /* red-11   */
    --r-warning:       #AD5700;  /* amber-11 */

    --r-radius: 4px;
    /* padding-top: 4px; */
}

/* ---------- Section ---------- */
.research-overview .research-section {
    background: var(--r-bg);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.research-overview .research-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--r-border);
}
.research-overview .research-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--r-text);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* .research-section-icon removed — section titles are typography-only */
.research-overview .research-section-icon { display: none; }

.research-overview .research-section-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--r-text);
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    background: transparent;
    border: 1px solid var(--r-border);
    padding: 5px 10px;
    border-radius: var(--r-radius);
    transition: border-color 0.15s ease, color 0.15s ease;
}
.research-overview .research-section-action:hover {
    border-color: var(--r-border-strong);
    color: var(--r-accent);
}
.research-overview .research-section-action i {
    font-size: 12px;
    color: var(--r-text-muted);
}

/* ---------- Property image ---------- */
.research-overview .research-img-wrap {
    border-radius: var(--r-radius);
    overflow: hidden;
    border: 1px solid var(--r-border);
    background: var(--r-bg-soft);
    position: relative;
    height: 100%;
    min-height: 200px;
}
/* The image is wrapped in a link, and street-view stills are square. Left in
   normal flow the anchor shrink-wraps to the image's intrinsic width (which
   letterboxed the column) and the square image then dictates the column's
   height instead of filling it. Taking the anchor out of flow removes the
   image from height/width resolution altogether: the row -- or the sibling
   column -- sets the box, and the image covers it. */
.research-overview .research-img-wrap > a {
    position: absolute;
    inset: 0;
    display: block;
}
.research-overview .research-property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Field grid ---------- */
.research-overview .research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}
.research-overview .research-grid.research-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.research-overview .research-grid.research-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.research-overview .research-grid.research-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) {
    .research-overview .research-grid,
    .research-overview .research-grid.research-grid-2,
    .research-overview .research-grid.research-grid-3,
    .research-overview .research-grid.research-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .research-overview .research-grid,
    .research-overview .research-grid.research-grid-2,
    .research-overview .research-grid.research-grid-3,
    .research-overview .research-grid.research-grid-4 {
        grid-template-columns: 1fr;
    }
}
.research-overview .research-field {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}
.research-overview .research-field-label {
    color: var(--r-text-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.3;
}
.research-overview .research-field-value {
    color: var(--r-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-variant-numeric: tabular-nums;
}
.research-overview .research-field-unit {
    color: var(--r-text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
}
.research-overview .research-field-empty {
    color: var(--r-text-faint);
    font-weight: 500;
}

/* ---------- Sub-heading inside a section ---------- */
.research-overview .research-subheading {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--r-text-muted);
    margin: 22px 0 12px;
    padding-bottom: 0;
    border-bottom: 0;
}
.research-overview .research-subheading:first-child { margin-top: 0; }

/* ---------- Skip-trace button — UNIVERSAL state machine.
              Applies to every `.skiptrace` button regardless of where it
              lives (modal header strip uses Bootstrap .btn .btn-info;
              section header uses the custom .research-skiptrace-btn
              pill). Sync logic lives in research_data.js so clicking
              either button drives the same state on both. */
button.skiptrace .indicator-progress { display: none; }
button.skiptrace.show-progress .indicator-label { display: none; }
button.skiptrace.show-progress .indicator-progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* "Unavailable" state — Skip Trace failed in a way we can't recover
   from in the current session (subscription inactive, API scope, etc).
   Buttons render as a plain disabled gray pill with NO chip — the
   reason lives in a tooltip + a toast at the time of failure, and the
   "Unavailable" pills inside the Ownership tab communicate the state.
   The button itself stays quiet. */
button.skiptrace.skiptrace--unavailable {
    background: #F5F5F7 !important;
    background-image: none !important;
    color: #99A1B7 !important;
    border-color: rgba(159, 165, 178, 0.34) !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    transform: none !important;
}
button.skiptrace.skiptrace--unavailable::after {
    /* Override the ::after pill content from the other disabled states
       (the green "✓ traced" and the gray "no data") so the unavailable
       button is a clean disabled control with no decorative chip. */
    content: none !important;
    display: none !important;
}
button.skiptrace.skiptrace--unavailable i {
    color: #99A1B7 !important;
}

/* ---------- Skip-trace button (redesigned: brand cyan pill, credit
              cost inline, green "traced" pill on disabled state) ---------- */
.research-overview .research-skiptrace-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--kt-primary);
    background: var(--kt-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 8px 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(var(--kt-primary-rgb), 0.32);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.research-overview .research-skiptrace-btn:hover:not(:disabled) {
    background: var(--kt-primary-active);
    border-color: var(--kt-primary-active);
    box-shadow: 0 3px 10px rgba(var(--kt-primary-rgb), 0.42);
    transform: translateY(-1px);
}
.research-overview .research-skiptrace-btn:active:not(:disabled) { transform: translateY(0); }
.research-overview .research-skiptrace-btn:disabled {
    background: rgba(80, 205, 137, 0.12);
    color: #1F8C5C;
    border-color: rgba(80, 205, 137, 0.36);
    cursor: default;
    box-shadow: none;
}
.research-overview .research-skiptrace-btn::after {
    content: "1 cr";
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.22);
    color: inherit;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    line-height: 1;
}
.research-overview .research-skiptrace-btn:disabled::after {
    content: "✓ traced";
    background: rgba(80, 205, 137, 0.22);
    color: #1F8C5C;
    padding: 2px 8px;
    font-size: 10px;
}
/* "Traced but no contact data on file" — visually distinct from the
   green success state. Same disabled affordance, but messaging makes
   clear there's nothing to re-fetch. */
.research-overview .research-skiptrace-btn.skiptrace--no-data:disabled {
    background: rgba(159, 165, 178, 0.10);
    color: #6F727E;
    border-color: rgba(159, 165, 178, 0.34);
}
.research-overview .research-skiptrace-btn.skiptrace--no-data:disabled::after {
    content: "no data";
    background: rgba(159, 165, 178, 0.22);
    color: #6F727E;
}
.research-overview .research-skiptrace-btn i {
    font-size: 13px;
}
.research-overview .research-skiptrace-btn .indicator-progress { display: none; }
.research-overview .research-skiptrace-btn.show-progress .indicator-label { display: none; }
.research-overview .research-skiptrace-btn.show-progress .indicator-progress { display: inline-flex; align-items: center; }
.research-overview .research-skiptrace-btn.show-progress::after { display: none; }

/* ---------- Redacted hidden text — clickable hint card.
              Hovering signals "click to reveal", and the JS handler in
              research_data.js routes the click through the section's
              own .skiptrace button (so TCPA dialog + flow stay intact). */
.research-overview .research-redacted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(var(--kt-primary-rgb), 0.06);
    color: #6F727E;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 600;
    border: 1px dashed rgba(var(--kt-primary-rgb), 0.42);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
    user-select: none;
}
.research-overview .research-redacted:hover {
    background: rgba(var(--kt-primary-rgb), 0.14);
    color: #102F44;
    border-color: var(--kt-primary);
    transform: translateY(-1px);
}
.research-overview .research-redacted:active { transform: translateY(0); }
.research-overview .research-redacted::before {
    content: "\F47A"; /* bi-lock-fill */
    font-family: "bootstrap-icons";
    font-style: normal;
    font-size: 10px;
    color: var(--kt-primary);
}

/* "Skip Trace unavailable" pill — drop-in replacement for
   .research-redacted when the API can't run. Visually neutral (gray,
   not cyan), no hover lift, cursor:not-allowed. Critically it does NOT
   carry the .research-redacted class, so the delegated click handler
   in research_data.js stops matching and these pills become inert. */
.research-overview .research-redacted-unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(159, 165, 178, 0.08);
    color: #99A1B7;
    font-size: 11.5px;
    font-weight: 500;
    border: 1px dashed rgba(159, 165, 178, 0.45);
    cursor: not-allowed;
    user-select: none;
}
.research-overview .research-redacted-unavailable::before {
    content: "\F47A"; /* bi-lock-fill */
    font-family: "bootstrap-icons";
    font-style: normal;
    font-size: 10px;
    color: #99A1B7;
}

/* ---------- Corporate associated-people roster (Phase 7) ----------
   Rendered for entity-owned properties skip-traced via v2/CorporateSkip.
   Each card = one principal or registered agent; agents are visually
   demoted and explicitly labelled "Not verified as owner". */
.research-overview .st-people { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.research-overview .st-person {
    border: 1px solid rgba(159,165,178,0.30);
    border-left: 3px solid var(--kt-primary);
    border-radius: 8px;
    padding: 9px 12px;
    background: rgba(var(--kt-primary-rgb), 0.03);
}
.research-overview .st-person--agent {
    border-left-color: #99A1B7;
    background: rgba(159,165,178,0.06);
}
.research-overview .st-person-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.research-overview .st-person-name { font-weight: 700; color: #102F44; font-size: 13.5px; }
.research-overview .st-person-role { color: #6F727E; font-size: 11.5px; font-weight: 600; }
.research-overview .st-person-flag {
    font-size: 10.5px; font-weight: 700; color: #B54708;
    background: #FEF0C7; border-radius: 5px; padding: 1px 7px;
}
.research-overview .st-person-verified {
    font-size: 10.5px; font-weight: 700; color: #067647;
    background: #DCFAE6; border-radius: 5px; padding: 1px 7px;
}
.research-overview .st-person-contacts { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.research-overview .st-person-contacts li { font-size: 12px; color: #3F4254; font-variant-numeric: tabular-nums; }
.research-overview .st-ctype { color: #99A1B7; font-size: 10.5px; text-transform: capitalize; }
.research-overview .st-dnc { color: #B42318; font-size: 10px; font-weight: 700; background: #FEE4E2; border-radius: 4px; padding: 0 5px; }
.research-overview .st-person-nocontact { margin-top: 6px; font-size: 11.5px; color: #99A1B7; font-style: italic; }

/* =====================================================   Ownership tab — redesigned owner card / verified contact /
   associated-people table (property/research/owner.html).
   Section labels sit ABOVE white cards; scoped to .research-owner-v2
   so the legacy .research-section styles above are untouched.
   ============================================================ */
.research-overview.research-owner-v2 {
    --rown-green:       #0E6E59;   /* DealWorthIt emerald */
    --rown-green-soft:  #E4F3EE;
    --rown-green-text:  #067647;
    --rown-avatar-bg:   #1F2A37;   /* near-black chip */
}

/* ---- Block (label + card) ---- */
.research-owner-v2 .rown-block { margin-bottom: 22px; }
.research-owner-v2 .rown-block:last-child { margin-bottom: 0; }
.research-owner-v2 .rown-block-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 10px;
}
.research-owner-v2 .rown-block-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--r-text-faint);
    margin-bottom: 10px;
}
.research-owner-v2 .rown-block-head .rown-block-label { margin-bottom: 0; }
.research-owner-v2 .rown-card {
    background: #ffffff; border: 1px solid var(--r-border);
    border-radius: 8px; padding: 18px 20px;
}
.research-owner-v2 .rown-card--flush { padding: 0; overflow: hidden; }
.research-owner-v2 .rown-dash { color: var(--r-text-faint); font-weight: 500; }

/* ---- Owner header row ---- */
.research-owner-v2 .rown-owner {
    display: flex; align-items: flex-start; gap: 14px;
    padding-bottom: 16px; margin-bottom: 16px;
    border-bottom: 1px solid var(--r-border);
}
.research-owner-v2 .rown-avatar {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
    background: var(--rown-avatar-bg); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.research-owner-v2 .rown-owner-main { min-width: 0; flex: 1 1 auto; }
.research-owner-v2 .rown-owner-top {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.research-owner-v2 .rown-owner-name {
    font-size: 16px; font-weight: 700; color: var(--r-text); line-height: 1.25;
}
.research-owner-v2 .rown-owner-sub {
    display: flex; flex-wrap: wrap; align-items: center;
    margin-top: 6px; color: var(--r-text-muted);
    font-size: 12.5px; font-weight: 500;
}
.research-owner-v2 .rown-chip { display: inline-flex; align-items: center; }

/* Force-refresh control — top-right of the owner card. Re-runs the skip
   trace with fresh provider data (bypasses the server cache, uses a credit). */
.research-owner-v2 .rown-refresh {
    flex: 0 0 auto; margin-left: auto; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--r-border); background: #fff;
    color: var(--r-text-muted); font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.research-owner-v2 .rown-refresh:hover:not(:disabled) {
    border-color: var(--rown-green); color: var(--rown-green);
    background: var(--rown-green-soft);
}
.research-owner-v2 .rown-refresh i { font-size: 12px; }
.research-owner-v2 .rown-refresh .indicator-progress { align-items: center; }

/* Primary Skip Trace CTA in the owner header row (untraced state) — reuses the
   green .rown-reveal button skin; this just anchors it top-right like the
   .rown-refresh control it replaces. */
.research-owner-v2 .rown-skip-cta {
    flex: 0 0 auto; margin-left: auto; align-self: flex-start;
}

/* Truthful skip-trace state notice (no_match / failed / partial / stale) — a
   quiet explainer so an empty/outdated result never reads as a clean success. */
.research-owner-v2 .rown-state-note {
    font-size: 12.5px; line-height: 1.5; color: var(--r-text-muted);
    background: var(--r-bg-soft); border: 1px solid var(--r-border);
    border-radius: 8px; padding: 11px 14px;
}
.research-owner-v2 .rown-state-note--info {
    color: var(--rown-green-text); background: var(--rown-green-soft);
    border-color: rgba(6, 118, 71, 0.18);
}
.research-owner-v2 .rown-sep { color: var(--r-border-strong); margin: 0 8px; }
.research-owner-v2 .rown-status { display: inline-flex; align-items: center; }
.research-owner-v2 .rown-dot {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    margin-right: 6px; flex: 0 0 auto;
}
.research-owner-v2 .rown-dot--green { background: #17B26A; }
.research-owner-v2 .rown-dot--amber { background: #F79009; }
.research-owner-v2 .rown-dot--red   { background: #F04438; }
.research-owner-v2 .rown-dot--gray  { background: #98A2B3; }

/* ---- Green badges ("Owner of record", "Verified") ---- */
.research-owner-v2 .rown-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    line-height: 1.2;
}
.research-owner-v2 .rown-badge--green {
    color: var(--rown-green-text); background: var(--rown-green-soft);
    border: 1px solid rgba(6, 118, 71, 0.18);
}
.research-owner-v2 .rown-badge--green i { font-size: 11px; }

/* ---- Meta grid (mailing / other / ownership type) ---- */
.research-owner-v2 .rown-metagrid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--r-bg-soft); border: 1px solid var(--r-border);
    border-radius: 6px; overflow: hidden;
}
.research-owner-v2 .rown-metacell {
    padding: 12px 16px; border-left: 1px solid var(--r-border); min-width: 0;
}
.research-owner-v2 .rown-metacell:first-child { border-left: 0; }
.research-owner-v2 .rown-metalabel {
    font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--r-text-muted); margin-bottom: 5px;
}
.research-owner-v2 .rown-metaval {
    font-size: 13px; font-weight: 600; color: var(--r-text); line-height: 1.4;
    word-wrap: break-word; overflow-wrap: break-word;
}
.research-owner-v2 .rown-metaval-soft { color: var(--r-text-muted); font-weight: 500; }
.research-owner-v2 .rown-metanote {
    margin-top: 5px; font-size: 11.5px; font-weight: 500; color: var(--r-text-muted);
}
@media (max-width: 767.98px) {
    .research-owner-v2 .rown-metagrid { grid-template-columns: 1fr; }
    .research-owner-v2 .rown-metacell { border-left: 0; border-top: 1px solid var(--r-border); }
    .research-owner-v2 .rown-metacell:first-child { border-top: 0; }
}

/* ---- Shared table wrapper + cells (verified + people) ---- */
.research-owner-v2 .rown-tablewrap { width: 100%; overflow-x: auto; }
.research-owner-v2 .rown-vc,
.research-owner-v2 .rown-ptable {
    width: 100%; border-collapse: collapse; font-size: 12.5px;
}
.research-owner-v2 .rown-vc thead th,
.research-owner-v2 .rown-ptable thead th {
    text-align: left; background: var(--r-bg-soft);
    font-size: 10px; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--r-text-muted);
    padding: 9px 12px; border-bottom: 1px solid var(--r-border); white-space: nowrap;
}
.research-owner-v2 .rown-vc td,
.research-owner-v2 .rown-ptable td {
    padding: 11px 12px; vertical-align: top; color: var(--r-text);
    border-bottom: 1px solid var(--r-border);
}
.research-owner-v2 .rown-ptable tbody tr:last-child td,
.research-owner-v2 .rown-vc tbody tr:last-child td { border-bottom: 0; }
.research-owner-v2 .rown-ptable tbody tr:hover td { background: var(--r-bg-soft); }
.research-owner-v2 .rown-contact-line {
    line-height: 1.5; font-variant-numeric: tabular-nums;
    white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.research-owner-v2 .rown-contact-line + .rown-contact-line { margin-top: 3px; }
/* Masked value shows by default; the "Reveal contacts" toggle swaps in the
   full value by adding .is-revealed to the enclosing .rown-assoc. */
.research-owner-v2 .rown-masked { color: var(--r-text-muted); font-weight: 500; letter-spacing: 0.02em; }
.research-owner-v2 .rown-full { display: none; color: var(--r-text); font-weight: 600; }
.research-owner-v2 .rown-assoc.is-revealed .rown-masked { display: none; }
.research-owner-v2 .rown-assoc.is-revealed .rown-full { display: inline; }
.research-owner-v2 a.rown-phone,
.research-owner-v2 a.rown-email {
    color: var(--r-text); font-weight: 600; text-decoration: none;
    transition: color .15s ease;
}
.research-owner-v2 a.rown-phone:hover,
.research-owner-v2 a.rown-email:hover { color: var(--rown-green); }
.research-owner-v2 .rown-masked, .research-owner-v2 .rown-full { overflow-wrap: anywhere; }
.research-owner-v2 .rown-dnc {
    color: #B42318; font-size: 9.5px; font-weight: 700; background: #FEE4E2;
    border-radius: 4px; padding: 1px 5px; letter-spacing: 0.03em;
    text-transform: uppercase; flex: 0 0 auto;
}
.research-owner-v2 .rown-inline-empty {
    padding: 16px 20px; color: var(--r-text-muted); font-size: 13px;
}

/* ---- Associated People toolbar (filters + reveal) ---- */
.research-owner-v2 .rown-assoc-headline {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
    margin-bottom: 12px;
}
.research-owner-v2 .rown-assoc-headline .rown-block-label { margin-bottom: 0; }
.research-owner-v2 .rown-assoc-caption {
    font-size: 12px; font-weight: 500; color: var(--r-text-muted);
    text-transform: none; letter-spacing: 0;
}
.research-owner-v2 .rown-assoc-toolbar {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.research-owner-v2 .rown-filters {
    display: inline-flex; background: var(--r-bg-soft);
    border: 1px solid var(--r-border); border-radius: 8px; padding: 3px;
}
.research-owner-v2 .rown-filter {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--r-text-muted);
    padding: 5px 12px; border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.research-owner-v2 .rown-filter:hover { color: var(--r-text); }
.research-owner-v2 .rown-filter.is-active {
    background: #ffffff; color: var(--r-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.research-owner-v2 .rown-filter-count {
    font-size: 11px; font-weight: 700; color: var(--r-text-faint);
    font-variant-numeric: tabular-nums;
}
.research-owner-v2 .rown-filter.is-active .rown-filter-count { color: var(--rown-green); }

/* Reveal contacts — green primary. Reuses the .skiptrace state machine
   (research_data.js), so it carries the universal progress spans below. */
.research-owner-v2 .rown-reveal {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--rown-green); background: var(--rown-green);
    color: #ffffff; font-weight: 600; font-size: 12.5px;
    padding: 8px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(14, 110, 89, 0.28);
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.research-owner-v2 .rown-reveal:hover:not(:disabled) {
    background: #0B5A49; border-color: #0B5A49;
    box-shadow: 0 3px 9px rgba(14, 110, 89, 0.36); transform: translateY(-1px);
}
.research-owner-v2 .rown-reveal:active:not(:disabled) { transform: translateY(0); }
.research-owner-v2 .rown-reveal:disabled {
    background: var(--rown-green-soft); color: var(--rown-green-text);
    border-color: rgba(6, 118, 71, 0.2); box-shadow: none; cursor: default;
}
.research-owner-v2 .rown-reveal.skiptrace--no-data:disabled {
    background: rgba(159, 165, 178, 0.10); color: #6F727E;
    border-color: rgba(159, 165, 178, 0.34);
}
.research-owner-v2 .rown-reveal i { font-size: 13px; }
.research-owner-v2 .rown-reveal .indicator-progress { display: none; }
.research-owner-v2 .rown-reveal.show-progress .indicator-label { display: none; }
.research-owner-v2 .rown-reveal.show-progress .indicator-progress { display: inline-flex; align-items: center; }
/* Revealed state of the toggle — soft green pill, matching the "Contacts
   revealed" affordance. */
.research-owner-v2 .rown-reveal-toggle.is-revealed {
    background: var(--rown-green-soft); color: var(--rown-green-text);
    border-color: rgba(6, 118, 71, 0.2); box-shadow: none;
}
.research-owner-v2 .rown-reveal-toggle.is-revealed:hover {
    background: #D6EEE5; border-color: rgba(6, 118, 71, 0.3);
    box-shadow: none; transform: none;
}

/* ---- People table name cell + confidence ---- */
.research-owner-v2 .rown-avatar--sm {
    width: 30px; height: 30px; border-radius: 8px; font-size: 11px;
}
.research-owner-v2 .rown-avatar--agent { background: #667085; }
.research-owner-v2 .rown-pname { min-width: 160px; }
/* Keep the name column a real top-aligned table cell (a display:flex <td>
   drops out of table layout and desyncs the other columns' rows). The
   avatar + name stack live in an inner flex wrapper instead. */
.research-owner-v2 td.rown-pname { vertical-align: top; }
.research-owner-v2 .rown-pname-inner { display: flex; align-items: flex-start; gap: 10px; }
.research-owner-v2 .rown-pname-main { display: flex; flex-direction: column; min-width: 0; }
.research-owner-v2 .rown-pname-name {
    font-weight: 700; color: var(--r-text); font-size: 13px; line-height: 1.3;
}
.research-owner-v2 .rown-pname-role {
    font-size: 11px; font-weight: 500; color: var(--r-text-faint); margin-top: 1px;
}
.research-owner-v2 .rown-tag {
    font-size: 9.5px; font-weight: 700; border-radius: 4px; padding: 1px 6px;
    text-transform: none; letter-spacing: 0.01em; white-space: nowrap;
}
.research-owner-v2 .rown-tag--green { color: #067647; background: #DCFAE6; }
.research-owner-v2 .rown-tag--amber { color: #B54708; background: #FEF0C7; }
.research-owner-v2 .rown-ptable-conf { white-space: nowrap; }
.research-owner-v2 td.rown-ptable-conf { color: var(--r-text-muted); font-weight: 600; font-size: 12.5px; }
.research-owner-v2 .rown-conf { font-weight: 600; }
.research-owner-v2 .rown-conf--high   { color: #067647; }
.research-owner-v2 .rown-conf--medium { color: #B54708; }
.research-owner-v2 .rown-conf--low    { color: #B42318; }

/* ---- Empty-state cards (portfolio / linked / associated) ---- */
.research-owner-v2 .rown-card--empty {
    text-align: center; padding: 34px 20px;
    background: var(--r-bg-soft);
}
.research-owner-v2 .rown-empty-title {
    font-size: 13.5px; font-weight: 600; color: var(--r-text-muted); margin-bottom: 4px;
}
.research-owner-v2 .rown-empty-sub {
    font-size: 12px; font-weight: 500; color: var(--r-text-faint);
    max-width: 460px; margin: 0 auto; line-height: 1.5;
}

/* ---------- Inline links ---------- */
.research-overview .research-link {
    color: var(--r-text);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--r-border-strong);
    transition: color 0.15s ease, border-color 0.15s ease;
}
.research-overview .research-link:hover {
    color: var(--r-accent);
    border-bottom-color: var(--r-accent);
}
.research-overview .research-link-bold { font-weight: 600; border-bottom: none; }

/* ---------- List container (empty/hidden contact states) ---------- */
.research-overview .research-list {
    background: transparent;
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 0;
}
.research-overview .research-list-empty { padding: 14px 16px; color: var(--r-text-muted); font-size: 13px; }

/* ---------- Contact cards (emails, phone numbers) ---------- */
.research-overview .research-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}
.research-overview .research-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    background: var(--r-bg-soft);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    transition: border-color .15s ease, background .15s ease;
}
.research-overview .research-contact-card:hover {
    background: #ffffff;
    border-color: var(--r-border-strong);
}
.research-overview .research-contact-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--kt-primary-rgb), 0.08);
}
.research-overview .research-contact-icon i {
    color: var(--r-accent) !important;
    font-size: 14px !important;
}
.research-overview .research-contact-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.research-overview .research-contact-value {
    color: var(--r-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
    transition: color .15s ease;
    align-self: flex-start;
}
.research-overview a.research-contact-value:hover { color: var(--r-accent); }
.research-overview .research-contact-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--r-text-muted);
    line-height: 1.3;
}
.research-overview .research-dnc-badge {
    color: #B42318;
    font-size: 10px;
    font-weight: 700;
    background: #FEE4E2;
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.03em;
    cursor: help;
}
.research-overview .research-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--r-text-faint);
    cursor: pointer;
    padding: 0;
    opacity: 0;
    transition: opacity .12s ease, background .12s ease, color .12s ease;
}
.research-overview .research-contact-card:hover .research-copy-btn,
.research-overview .research-copy-btn:focus-visible { opacity: 1; }
@media (hover: none) {
    .research-overview .research-copy-btn { opacity: 1; }
}
.research-overview .research-copy-btn:hover { background: var(--r-bg-hover); color: var(--r-text); }
.research-overview .research-copy-btn.is-copied { opacity: 1; color: var(--r-success) !important; }
.research-overview .research-copy-btn.is-copied i { color: var(--r-success) !important; }

/* ---------- Portfolio Summary stat ---------- */
.research-overview .research-stat {
    background: transparent;
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 14px 16px;
}
.research-overview .research-stat-label {
    color: var(--r-text-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.research-overview .research-stat-value {
    color: var(--r-text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.research-overview .research-stat-muted .research-stat-value {
    font-size: 16px;
    color: var(--r-text-muted);
}

/* ---------- Tables ---------- */
.research-overview .research-table-wrap {
    border-radius: var(--r-radius);
    overflow: hidden;
    background: var(--r-bg);
    max-height: 420px;
    overflow-y: auto;
}
.research-overview .research-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.research-overview .research-table thead th {
    background: var(--r-bg-soft);
    color: var(--r-text-muted);
    font-weight: 600;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 14px;
    border-bottom: 1px solid var(--r-border);
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}
.research-overview .research-table-right { text-align: right !important; font-variant-numeric: tabular-nums; }
.research-overview .research-table-num    { width: 38px; text-align: center !important; color: var(--r-text-muted); font-weight: 500; }
.research-overview .research-table-thumb  { width: 76px; }
.research-overview .research-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--r-border);
    color: var(--r-text);
    vertical-align: middle;
}
.research-overview .research-table tbody tr:last-child td { border-bottom: 0; }
.research-overview .research-table-row { cursor: pointer; transition: background 0.12s ease; }
.research-overview .research-table-row:hover { background: var(--r-bg-soft); }
.research-overview .research-table-strong { font-weight: 600; color: var(--r-text); }
.research-overview .research-table-img-wrap {
    width: 56px;
    height: 38px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--r-border);
    background: var(--r-bg-soft);
}
.research-overview .research-table-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lazy-loaded table row: soft fade so the reveal feels intentional, not a flicker. */
.research-overview .research-table-row.research-lazy-row-revealed,
.research-overview .research-table tbody > tr.research-lazy-row-revealed {
    animation: research-row-fadein 0.24s ease;
}
@keyframes research-row-fadein {
    from { opacity: 0; transform: translateY(3px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Pipeline lazy loader (pipeline_lazy.js): items past the reveal threshold
   are hidden with this class rather than inline style.display, which the
   board's filter panel owns. !important so a filter pass writing
   style.display='' on a matching card cannot un-hide a not-yet-revealed one. */
.kcard.pipeline-lazy-hidden,
.pipeline-tr.pipeline-lazy-hidden {
    display: none !important;
}

/* Lazy-reveal animation for pipeline kanban cards and table rows. */
.kcard.pipeline-lazy-revealed,
.pipeline-tr.pipeline-lazy-revealed {
    animation: pipeline-row-fadein 0.24s ease;
}
@keyframes pipeline-row-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Date inputs in the Flip report (Listing Date, Project Start / End)
   render with `class="badge badge-light-primary px-5 py-3 editable_sf"`.
   The badge's intrinsic shrink-to-content sizing combined with the
   native date input's mm/dd/yyyy + calendar-picker chrome cuts off the
   last digit of the year. Guarantee enough width to render the full
   value plus the dropdown affordance regardless of the browser. */
input[type="date"].editable_sf {
    min-width: 175px;
    width: auto;
    font-variant-numeric: tabular-nums;
}

/* Property Finder lazy-load affordances (search_lazy.js).
   The "Loading more…" row uses Bootstrap's spinner-border, and the
   "all results loaded" row is a quiet uppercase marker so users know
   they've reached the end of an infinite scroll list. */
#map_results .search-lazy-loading {
    padding: 14px 8px;
    text-align: center;
    color: #6c7a87;
    font-size: 12px;
}
#map_results .search-lazy-end {
    padding: 18px 8px;
    text-align: center;
    color: #9aa5b1;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: 1px solid #eef0f2;
    margin-top: 8px;
}

/* ---------- Empty state ---------- */
.research-overview .research-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--r-text-muted);
    font-size: 13px;
    background: var(--r-bg-soft);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
}

/* ---------- Status (dot + text) ---------- */
/* New canonical class */
.research-overview .research-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--r-text);
    line-height: 1.4;
    background: transparent;
    border: 0;
    padding: 0;
}
.research-overview .research-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot, var(--r-text-muted));
    flex: 0 0 7px;
}
.research-overview .research-status-success { --dot: var(--r-success); }
.research-overview .research-status-danger  { --dot: var(--r-danger); }
.research-overview .research-status-warning { --dot: var(--r-warning); }
.research-overview .research-status-info    { --dot: var(--r-accent); }
.research-overview .research-status-muted   { --dot: var(--r-text-faint); }

/* Old .research-pill* aliased to the new dot+text style */
.research-overview .research-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--r-text); background: transparent; border: 0; padding: 0; border-radius: 0; line-height: 1.4; }
.research-overview .research-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--r-text-muted)); flex: 0 0 7px; }
.research-overview .research-pill-success { --dot: var(--r-success); }
.research-overview .research-pill-danger  { --dot: var(--r-danger); }
.research-overview .research-pill-warning { --dot: var(--r-warning); }
.research-overview .research-pill-info    { --dot: var(--r-accent); }
.research-overview .research-pill-muted   { --dot: var(--r-text-faint); }

/* ---------- KPI hero tiles ---------- */
.research-overview .research-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
@media (max-width: 991.98px) {
    .research-overview .research-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .research-overview .research-kpi-row { grid-template-columns: 1fr; }
}
.research-overview .research-kpi {
    background: var(--r-bg);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 16px 18px;
}
.research-overview .research-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.research-overview .research-kpi-label {
    color: var(--r-text-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
/* Drop KPI icon entirely */
.research-overview .research-kpi-icon { display: none; }
.research-overview .research-kpi-value {
    color: var(--r-text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.research-overview .research-kpi-sub {
    color: var(--r-text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    min-height: 16px;
}
.research-overview .research-kpi-sub .research-pill,
.research-overview .research-kpi-sub .research-status { font-size: 11px; }
.research-overview .research-kpi-trend-up    { color: var(--r-success); }
.research-overview .research-kpi-trend-down  { color: var(--r-danger); }
.research-overview .research-kpi-trend-flat  { color: var(--r-text-muted); }

/* ---------- Equity / LTV bar ---------- */
.research-overview .research-bar {
    height: 6px;
    border-radius: 2px;
    background: var(--r-bg-hover);
    overflow: hidden;
    position: relative;
    margin: 8px 0 6px;
}
.research-overview .research-bar-fill {
    height: 100%;
    background: var(--r-text);
    transition: width 0.4s ease;
}
.research-overview .research-bar-fill-warn   { background: var(--r-warning); }
.research-overview .research-bar-fill-danger { background: var(--r-danger); }
.research-overview .research-bar-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    color: var(--r-text-muted);
    font-weight: 500;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}
.research-overview .research-bar-legend strong { color: var(--r-text); font-weight: 600; }

/* ---------- Icon-stat row ---------- */
.research-overview .research-iconstat-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    /* The 1px grid gap is the "line" between cells — the grid container's
       border-color background bleeds through. This produces perfectly
       aligned crosshair hairlines for any column count / item count
       (1-col, 2-col, 3-col, 6-col, 5 items, 6 items, 12 items, etc.)
       without needing nth-child arithmetic to strip right/bottom edges. */
    gap: 1px;
    background: var(--r-border);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    overflow: hidden;
}
@media (max-width: 991.98px) {
    .research-overview .research-iconstat-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 575.98px) {
    .research-overview .research-iconstat-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.research-overview .research-iconstat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    /* Solid cell background covers the grid container's "line color"
       backdrop everywhere except the 1px gaps between cells, which then
       read as hairlines. */
    background: var(--r-bg);
    border: 0;
    border-radius: 0;
}
.research-overview .research-iconstat-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--r-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: 0 0 auto;
}
.research-overview .research-iconstat-body { min-width: 0; }
.research-overview .research-iconstat-label {
    color: var(--r-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.research-overview .research-iconstat-value {
    color: var(--r-text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    font-variant-numeric: tabular-nums;
}

/* ---------- Map / chart blocks ---------- */
.research-overview .research-map {
    height: 360px;
    width: 100%;
    border-radius: var(--r-radius);
    overflow: hidden;
    border: 1px solid var(--r-border);
    background: var(--r-bg-soft);
}
.research-overview .research-map-sm { height: 200px; }

/* Media row (Location tab) -- the street-view image and the map are peers and
   must fill the row equally. The row carries the ONE definite height; each
   child resolves height:100% against it, so neither the image's intrinsic
   aspect nor the map's own height can leave a gap beneath the other. Stacked
   below lg, where the columns are full-width and sit one above the other. */
.research-overview .research-media-row { height: 360px; }
.research-overview .research-media-row > [class*="col-"] { height: 100%; }
.research-overview .research-media-row .research-img-wrap,
.research-overview .research-media-row .research-map { height: 100%; }
@media (max-width: 991.98px) {
    .research-overview .research-media-row { height: auto; }
    .research-overview .research-media-row > [class*="col-"] { height: 280px; }
}

/* Property Info section — keep the map's bottom aligned with the
   property image on the left. The right column stacks an icon-stat grid
   over a map; without flex-grow on the map the right column's content
   falls short of the image's full-stretch height, leaving a visible
   gap. Making the column a flex container and letting the map flex-grow
   pins the bottoms together regardless of the image's intrinsic size. */
.research-overview .research-section-body.row > .col-lg-7 {
    display: flex;
    flex-direction: column;
}
.research-overview .research-section-body.row > .col-lg-7 > .research-map {
    flex: 1 1 auto;
    height: auto;       /* override the fixed `research-map-sm` height  */
    min-height: 220px;  /* but keep a sensible floor on small screens   */
}
.research-overview .research-chart-wrap {
    background: var(--r-bg);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 14px 16px;
}
.research-overview .research-chart-canvas { width: 100%; height: 240px; display: block; }
.research-overview .research-chart-sm { height: 80px; }

/* ---------- Sale price timeline ---------- */
.research-overview .research-timeline {
    position: relative;
    padding: 28px 16px 38px;
    background: var(--r-bg-soft);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    min-height: 130px;
}
.research-overview .research-timeline-axis {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 26px;
    height: 1px;
    background: var(--r-border-strong);
}
.research-overview .research-timeline-dot {
    position: absolute;
    bottom: 22px;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r-text);
    cursor: pointer;
}
.research-overview .research-timeline-dot-lg { width: 12px; height: 12px; bottom: 20px; background: var(--r-accent); }
.research-overview .research-timeline-dot-sm { width: 6px; height: 6px; bottom: 23px; }
.research-overview .research-timeline-label {
    position: absolute;
    transform: translateX(-50%);
    top: 6px;
    color: var(--r-text);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.research-overview .research-timeline-meta {
    position: absolute;
    transform: translateX(-50%);
    bottom: 4px;
    color: var(--r-text-muted);
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
}

/* ---------- School rating dots ---------- */
.research-overview .research-rating { display: inline-flex; align-items: center; gap: 6px; }
.research-overview .research-rating-dots { display: inline-flex; gap: 3px; }
.research-overview .research-rating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--r-bg-hover);
}
.research-overview .research-rating-dot.is-on { background: var(--r-text); }
.research-overview .research-rating-num { color: var(--r-text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- School level chips ---------- */
.research-overview .research-level-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.research-overview .research-level-chip {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    background: transparent;
    color: var(--r-text-muted);
    border: 1px solid var(--r-border);
    text-transform: capitalize;
}

/* ---------- Mortgage card ---------- */
.research-overview .research-mortgage-card {
    background: var(--r-bg);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.research-overview .research-mortgage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--r-border);
}
.research-overview .research-mortgage-lender { font-size: 14px; font-weight: 600; color: var(--r-text); }
.research-overview .research-mortgage-amount { font-size: 16px; font-weight: 700; color: var(--r-text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.research-overview .research-mortgage-body {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 991.98px) { .research-overview .research-mortgage-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .research-overview .research-mortgage-body { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.research-overview .research-mortgage-more {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--r-border);
    display: none;
}
.research-overview .research-mortgage-toggle {
    background: none;
    border: none;
    color: var(--r-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    padding: 8px 0 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}
.research-overview .research-mortgage-toggle:hover { color: var(--r-accent); }
.research-overview .research-mortgage-card.is-open .research-mortgage-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.research-overview .research-mortgage-toggle i { font-size: 11px; }

/* ---------- Skeleton loaders (pulse, not shimmer) ---------- */
@keyframes research-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}
.research-overview .research-skeleton {
    background: var(--r-bg-hover);
    border-radius: 3px;
    animation: research-pulse 1.6s ease-in-out infinite;
    height: 12px;
    margin-bottom: 8px;
}
.research-overview .research-skeleton-lg { height: 24px; }
.research-overview .research-skeleton-block { height: 140px; }
.research-overview .research-skeleton-w-25 { width: 25%; }
.research-overview .research-skeleton-w-50 { width: 50%; }
.research-overview .research-skeleton-w-75 { width: 75%; }

/* ---------- Segmented control (Sale / Rent toggle) ---------- */
.research-overview .research-segmented {
    display: inline-flex;
    background: var(--r-bg-soft);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 2px;
    gap: 0;
}
.research-overview .research-segmented-item {
    border: 0;
    background: transparent;
    color: var(--r-text-muted);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}
.research-overview .research-segmented-item:hover { color: var(--r-text); }
.research-overview .research-segmented-item.is-active {
    background: var(--r-bg);
    color: var(--r-text);
    box-shadow: inset 0 0 0 1px var(--r-border);
}

/* ---------- Building feature group cards ---------- */
.research-overview .research-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 767.98px) {
    .research-overview .research-group-grid { grid-template-columns: 1fr; }
}
.research-overview .research-group {
    background: var(--r-bg);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 16px 18px;
}
.research-overview .research-group-title {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--r-text);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.research-overview .research-group-title i { color: var(--r-text-muted); font-size: 12px; }
.research-overview .research-group-rows { display: flex; flex-direction: column; gap: 0; }
.research-overview .research-group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--r-border);
    font-size: 13px;
}
.research-overview .research-group-row:last-child { border-bottom: 0; }
.research-overview .research-group-row .label { color: var(--r-text-muted); font-weight: 500; }
.research-overview .research-group-row .value { color: var(--r-text); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Copy-to-clipboard ---------- */
.research-overview .research-copybtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--r-border);
    background: transparent;
    color: var(--r-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.research-overview .research-copybtn:hover {
    border-color: var(--r-border-strong);
    color: var(--r-text);
}

/* ---------- Section-level hint ---------- */
.research-overview .research-hint {
    color: var(--r-text-muted);
    font-size: 11.5px;
    font-style: normal;
    font-weight: 500;
}

/* Field-level provenance note (e.g. "this field is not an AVM"). Sits
   directly under the figure it qualifies, so it must not compete with it. */
.research-overview .research-field-hint {
    color: var(--r-text-muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 3px;
}

/* =====================================================   Property Details Modal — minimal/classy retrofit
   ============================================================ */

/* Modal header */
#kt_modal_search_property_details .modal-content {
    border-radius: 6px;
}
#kt_modal_search_property_details .modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #e8eaed;
}
#kt_modal_search_property_details .modal-header .fs-3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #102F44;
}

/* "Research Data" sub-header bar (above the tabs) */
#kt_modal_search_property_details .card-title.fs-6.text-uppercase {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #102F44;
}
#kt_modal_search_property_details .card-title.fs-6.text-uppercase > i.bi-search {
    display: none;
}
#kt_modal_search_property_details .card-title.fs-6.text-uppercase .text-gray-600 {
    color: #60646C !important;
    font-weight: 500 !important;
}

/* Soften the dashed separator under "Research Data" */
#kt_modal_search_property_details .separator.separator-dashed {
    border-top-style: solid !important;
    border-top-color: #e8eaed !important;
    opacity: 1;
}

/* Tab nav refinement */
#kt_modal_search_property_details .nav-tabs .nav-link {
    color: #60646C;
    font-weight: 500;
    font-size: 12.5px;
    letter-spacing: 0.01em;
    padding: 8px 12px;
}
#kt_modal_search_property_details .nav-tabs .nav-link.active {
    color: #102F44;
    font-weight: 600;
}

/* Section headers in tab content — hide the bi-icons + reset the
   legacy `mt-n8 ms-6` overlay-positioning trick the templates use. */
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 > i.bi {
    display: none;
}
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em;
    color: #102F44;
    margin-top: 24px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8eaed;
}
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 > .mt-n8.ms-6 {
    margin-top: 0 !important;
    margin-left: 0 !important;
}
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 .float-end a {
    font-weight: 500 !important;
    font-size: 12px !important;
    color: #60646C !important;
}
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 .float-end a:hover {
    color: var(--kt-primary) !important;
}
#kt_modal_search_property_details .card-header .card-title .fw-bold.text-uppercase.fs-3 .float-end a i.bi {
    display: none;  /* hide the signpost icon inline with "Street View Map" */
}

/* Tab content label/value pairs — use Slate-derived neutrals so
   the tone matches the redesigned research tab. */
#kt_modal_search_property_details .text-gray-700.fw-semibold.fs-7,
#kt_modal_search_property_details .text-gray-700.fw-semibold {
    color: #60646C !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#kt_modal_search_property_details .text-gray-900.fw-bold.fs-7,
#kt_modal_search_property_details .text-gray-900.fw-bold {
    color: #102F44 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-variant-numeric: tabular-nums;
}

#kt_modal_search_property_details .btn {
    border-radius: 4px !important;
    background-image: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    letter-spacing: 0;
}
#kt_modal_search_property_details .btn:hover {
    box-shadow: none !important;
}
#kt_modal_search_property_details .btn.user_authentication svg {
    fill: currentColor !important;
}

/* Skip Trace disabled state */
#kt_modal_search_property_details .btn.skiptrace[disabled] {
    background: #f1f4f7 !important;
    color: #60646C !important;
    border-color: #e8eaed !important;
}

/* Soften the row borders and dashed separators inside tab content */
#kt_modal_search_property_details .border-y.border-gray-100,
#kt_modal_search_property_details .border-y {
    border-top-color: #e8eaed !important;
    border-bottom-color: #e8eaed !important;
}
#kt_modal_search_property_details .border-bottom.border-gray-200 {
    border-bottom-color: #e8eaed !important;
}

/* Tables inside the modal */
#kt_modal_search_property_details .table {
    font-size: 13px;
}
#kt_modal_search_property_details .table thead tr.fw-bolder,
#kt_modal_search_property_details .table thead tr.fw-bold {
    color: #60646C !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    font-size: 10.5px !important;
}
#kt_modal_search_property_details .table-row-dashed > tbody > tr {
    border-bottom: 1px solid #e8eaed !important;
}

/* The "Save This Property" checkbox container — tighten */
#kt_modal_search_property_details .form-check.select_property {
    align-items: center;
}

.tab-content>.tab-pane {
    padding: 0 !important;
}

/* Property image / streetview / map blocks — minimal corners */
#kt_modal_search_property_details .streetview_img,
#kt_modal_search_property_details .property_img,
#kt_modal_search_property_details .divMap_search,
#kt_modal_search_property_details #divMap_location_search,
#kt_modal_search_property_details #divMap {
    border-radius: 4px !important;
}

/* Empty/dash placeholders */
#kt_modal_search_property_details .bi-dash-lg {
    color: #9aa5b1 !important;
    font-size: 14px !important;
}

/* Avoid duplication: owner.html section has its own Skip Trace button,
   but the modal chrome already provides one at the top — hide the inner. */
#kt_modal_search_property_details .research-skiptrace-btn {
    display: none !important;
}

/* The modal modal-body has padding that fights with research-overview's
   own padding-top. Trim a bit so sections don't double-pad at the top. */
#kt_modal_search_property_details .search_property_body .research-overview {
    padding-top: 20px;
}

/* Move-to-pipeline submenu (dynamic, uses --pl-color / --pl-bg per item) */
.move_to_pipeline_sub {
    max-height: 320px;
    overflow-y: auto;
}
.move_to_pipeline_sub .pipeline_menu_link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    border-radius: 8px;
    color: #475467;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.move_to_pipeline_sub .pipeline_menu_link:hover {
    background: var(--pl-bg, #f5f9fc) !important;
    color: var(--pl-color, #102F44) !important;
}
.move_to_pipeline_sub .pipeline_menu_link .text-truncate {
    flex: 1 1 auto;
    min-width: 0;
}

/* ===== Property Finder — filter row ===== */
.finder-filter-card {
    background: #fff;
}
.finder-filter {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    color: #252F4A;
    transition: border-color .15s ease;
}
.finder-filter:hover,
.finder-filter:focus,
.finder-filter:focus-within {
    border-color: #B5B5C3;
}
.finder-filter--stacked {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 6px 12px 4px;
    min-height: 52px;
}
.finder-filter__caption {
    display: block;
    color: #99A1B7;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin: 0 0 1px;
}
#search_filter .finder-filter--stacked > .select2-hidden-accessible {
    display: none !important;
}
.finder-filter--stacked .select2-container {
    width: 100% !important;
}
.finder-filter--stacked .select2-container .select2-selection {
    border: 0 !important;
    background: transparent !important;
    min-height: 22px !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
.finder-filter--stacked .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
    line-height: 1.3 !important;
}
.finder-filter--stacked .select2-search--inline,
.finder-filter--stacked .select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    padding-left: 0 !important;
}
.finder-filter--stacked .select2-search--inline .select2-search__field {
    min-height: 22px !important;
}
.finder-filter--stacked .select2-selection__placeholder {
    color: #252F4A !important;
    font-weight: 500;
    line-height: 1.3 !important;
}
/* Inline layout: label on the left, value right-aligned (Min/Max Value) */
.finder-filter--inline {
    justify-content: space-between;
    gap: 10px;
}
.finder-filter__inline-label {
    color: #99A1B7;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
    flex: 0 0 auto;
}
.finder-filter__inline-input {
    flex: 1 1 auto;
    width: auto;
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: right;
    font-weight: 600;
    color: #252F4A;
    box-shadow: none !important;
}
.finder-filter__inline-input:focus {
    border: 0;
    box-shadow: none;
    background: transparent;
}
/* Button cells: Property Type toggle and More Filters trigger */
button.finder-filter--button {
    justify-content: space-between;
    color: #252F4A;
    font-weight: 500;
}
.finder-filter__label {
    flex: 1 1 auto;
    color: #252F4A;
    font-weight: 500;
}
.finder-filter__caret {
    color: #99A1B7;
    margin-left: 8px;
    font-size: 14px;
}
.finder-filter--button:hover {
    background: #F9F9F9;
}

/* =====================================================   Property Finder — search results sidebar (Tier 2.4-ish UX polish)
   ============================================================ */
.results-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 6px 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #F0F1F4;
}
.results-header__count {
    font-size: 12.5px;
    color: #6F727E;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.results-header__count strong { color: #102F44; font-weight: 700; font-variant-numeric: tabular-nums; }
.results-header__count-muted { color: #99A1B7; font-weight: 500; margin: 0 2px; }

.results-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px;
    border-bottom: 1px solid #F0F1F4;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.results-toolbar__selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #1F8DB3;
    border: 1px solid rgba(var(--kt-primary-rgb), 0.32);
    border-radius: 999px;
    padding: 5px 12px 5px 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
    margin-right: auto;
}
.results-toolbar__selected i { font-size: 13px; }
.results-toolbar__selected .select_property_count {
    background: rgba(var(--kt-primary-rgb), 0.18);
    color: #1F8DB3;
    border-radius: 999px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.results-toolbar__selected-label { text-transform: lowercase; font-weight: 600; opacity: 0.85; }
.results-toolbar__selected:hover {
    background: rgba(var(--kt-primary-rgb), 0.16);
    border-color: rgba(var(--kt-primary-rgb), 0.50);
    transform: translateY(-1px);
}

.results-toolbar__divider { width: 1px; height: 18px; background: #E1E3EA; }

.results-toolbar__sort {
    background: #fff;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    padding: 5px 28px 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #252F4A;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='%2399A1B7'><path d='M3.204 5L8 10.481 12.796 5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.results-toolbar__sort:hover { border-color: #B5B5C3; }
.results-toolbar__sort:focus { outline: 0; border-color: var(--kt-primary); box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb),0.15); }

.results-toolbar__select-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #6F727E;
    font-size: 12px;
    font-weight: 600;
    user-select: none;
    margin: 0;
}
.results-toolbar__select-all-input {
    width: 15px; height: 15px;
    border: 1px solid #DBDFE9;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--kt-primary);
}

/* ---------- The property result row (flat list) ----------
   Rows read as one continuous list: hairline separators between them,
   a checkbox on the left, a small thumbnail, address + tags in the
   middle, and the Est. Value right-aligned. Selected rows get a soft
   tint plus a solid accent bar on the left edge.
   `.is-table-view` overrides further below reflow this into a dense
   column table and are unaffected by these base rules. */
.property_box.result-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #dbdcde;
    border-radius: 0;
    padding: 14px 14px 14px 13px;
    margin-bottom: 0;
    transition: background .15s ease, border-color .15s ease;
}
.property_box.result-card:last-child { border-bottom: 0; }
/* Whole-row hover / map-marker highlight — background only, no border.
   `.is-marker-active` is toggled by search.js when a map marker or list
   row is hovered so the two panels stay in sync. */
.property_box.result-card:hover,
.property_box.result-card.is-marker-active {
    background: rgba(var(--kt-primary-rgb), 0.10);
}
.property_box.result-card:has(.result-card__check:checked) {
    background: rgba(var(--kt-primary-rgb), 0.06);
}
/* Hovering an already-selected row needs a darker tint than the resting
   selected state, otherwise the two are identical and hover looks dead. */
.property_box.result-card:hover:has(.result-card__check:checked),
.property_box.result-card.is-marker-active:has(.result-card__check:checked) {
    background: rgba(var(--kt-primary-rgb), 0.16);
}
/* Neutralise the legacy Metronic highlight classes in case any stale
   markup still carries them — the row-level rules above own the state now. */
.property_box.result-card .find_property_details.border,
.property_box.result-card .find_property_details.rounded {
    border: 0 !important;
    border-radius: 0 !important;
}
.property_box.result-card .find_property_details.bg-light-primary {
    background: transparent !important;
}

.result-card__check {
    position: static;
    flex-shrink: 0;
    align-self: flex-start;
    margin: 3px 0 0 0;
    width: 18px; height: 18px;
    cursor: pointer;
    border: 1.5px solid #DBDFE9;
    border-radius: 4px;
    accent-color: var(--kt-primary);
    background-color: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.result-card__check:hover { border-color: var(--kt-primary); }
.result-card__check:checked {
    background-color: var(--kt-primary);
    border-color: var(--kt-primary);
}

/* Result row body — thumbnail (col 1), address/locale/tags stacked in
   col 2, Est. Value pinned to col 3. Value spans regardless of its DOM
   order thanks to explicit grid placement. */
.property_box.result-card .result-card__body {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 3px;
    align-items: start;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    cursor: pointer;
}
.property_box.result-card .result-card__image  { grid-column: 1; grid-row: 1 / -1; }
.property_box.result-card .result-card__street { grid-column: 2; grid-row: 1; }
.property_box.result-card .result-card__locale { grid-column: 2; grid-row: 2; }
.property_box.result-card .result-card__tags   { grid-column: 2; grid-row: 3; }
.property_box.result-card .result-card__value  { grid-column: 3; grid-row: 1; justify-self: end; }

.result-card__image {
    position: relative;
    width: 60px;
    height: 60px;
    align-self: start;
    background: #F4F6F8;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    background-image: linear-gradient(110deg, #F4F6F8 30%, #EDEFF2 50%, #F4F6F8 70%);
    background-size: 200% 100%;
    animation: result-card-skeleton 1.4s ease-in-out infinite;
}
.result-card__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #F4F6F8;
}
.result-card__image-img--placeholder {
    object-fit: contain;
    padding: 22%;
    opacity: 0.5;
}
@keyframes result-card-skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Results column skeleton loader =====
   Injected into #map_results_outer while a finder search is in flight (see
   resultsSkeletonHTML / find_properties in search.js). Mirrors the
   .result-card grid so real results don't reflow when they replace it, and
   reuses the result-card-skeleton shimmer keyframe/tokens above. */
.results-skeleton { padding: 0; }
.results-skeleton__card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 13px;
    border-bottom: 1px solid #dbdcde;
}
.results-skeleton__card:last-child { border-bottom: 0; }
.results-skeleton__body {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    flex: 1 1 auto;
    min-width: 0;
}
.results-skeleton__check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 3px 0 0 0;
    border-radius: 4px;
}
.results-skeleton__image { grid-column: 1; grid-row: 1 / -1; width: 60px; height: 60px; border-radius: 8px; }
.results-skeleton__line { display: block; }
.results-skeleton__line--street { grid-column: 2; grid-row: 1; height: 14px; width: 72%; margin-top: 2px; }
.results-skeleton__line--locale { grid-column: 2; grid-row: 2; height: 11px; width: 46%; }
.results-skeleton__line--tags   { grid-column: 2; grid-row: 3; height: 20px; width: 62%; border-radius: 999px; margin-top: 2px; }
.results-skeleton__line--value  { grid-column: 3; grid-row: 1; height: 14px; width: 64px; justify-self: end; }

/* Shimmer primitive — reuses @keyframes result-card-skeleton. Uses a clearly
   visible resting gray (#D8DDE3) with a lighter sweep so placeholders read on
   the white results column (the near-white result-card thumbnail tokens are
   too faint here). */
.results-skeleton__shimmer {
    background-color: #D8DDE3;
    background-image: linear-gradient(110deg, #D8DDE3 30%, #EDF0F3 50%, #D8DDE3 70%);
    background-size: 200% 100%;
    animation: result-card-skeleton 1.4s ease-in-out infinite;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    .results-skeleton__shimmer { animation: none; }
}

.result-card__street {
    font-size: 15px;
    font-weight: 700;
    color: #102F44;
    line-height: 1.3;
    margin-bottom: 0;
    word-break: break-word;
}
.result-card__locale {
    font-size: 12px;
    color: #6F727E;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.result-card__value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 1px;
    margin: 0;
    padding-left: 12px;
}
.result-card__value-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #99A1B7;
    font-weight: 700;
    white-space: nowrap;
}
.result-card__value-amount {
    font-size: 15px;
    font-weight: 800;
    color: #102F44;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.result-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}
/* Outlined pills — icons dropped for the cleaner list look. */
.result-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border: 1px solid #E1E3EA;
    background: #fff;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    color: #5E6278;
    white-space: nowrap;
    /* Long propertyUse strings would otherwise blow past the row edge;
       full text exposed via `title` attribute on the element. */
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.result-card__tag i { display: none; }
.result-card__tag--type,
.result-card__tag--units {
    background: #fff;
    color: #5E6278;
}
.result-card__tag--equity {
    border-color: rgba(14, 110, 89, 0.35);
    color: #0E6E59;
    background: #fff;
}
.result-card__tag--equity-low {
    border-color: #E1E3EA;
    color: #99A1B7;
    background: #fff;
}

#search_layout_row { position: relative; }
.map-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 14px;
    margin-left: -7px;       /* center the hit area on the boundary */
    cursor: col-resize;
    /* Above Leaflet's tile (400) + overlay (600) panes. */
    z-index: 100;
    background: transparent;
    transition: background .15s ease;
}
.map-divider::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    border-radius: 1px;
    background: #E1E3EA;
    transition: background .15s ease, width .15s ease;
}
.map-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 22px;
    transform: translate(-50%, -50%);
    background-image:
        radial-gradient(circle, #99A1B7 1.2px, transparent 1.6px),
        radial-gradient(circle, #99A1B7 1.2px, transparent 1.6px),
        radial-gradient(circle, #99A1B7 1.2px, transparent 1.6px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    background-position: center top, center center, center bottom;
    opacity: 0;
    transition: opacity .15s ease;
}
.map-divider:hover,
.map-divider.is-dragging {
    background: rgba(var(--kt-primary-rgb), 0.06);
}
.map-divider:hover::before,
.map-divider.is-dragging::before {
    background: var(--kt-primary);
    width: 3px;
}
.map-divider:hover::after,
.map-divider.is-dragging::after {
    opacity: 1;
}
.map-divider:focus-visible {
    outline: 0;
    background: rgba(var(--kt-primary-rgb), 0.10);
}
body.map-resize-active,
body.map-resize-active * {
    cursor: col-resize !important;
    user-select: none !important;
}
body.map-resize-active #search_map { pointer-events: none; }

@media (max-width: 767.98px) {
    .map-divider { display: none !important; }
}

/* Layout preset buttons — snap to map-wide / even / list-wide. */
.layout-presets {
    display: inline-flex;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    height: 28px;
}
.layout-presets__btn {
    width: 30px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #6F727E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .12s ease, color .12s ease;
}
.layout-presets__btn + .layout-presets__btn { border-left: 1px solid #E1E3EA; }
.layout-presets__btn i { font-size: 12px; }
.layout-presets__btn:hover { background: #F4F6F8; color: #252F4A; }
.layout-presets__btn--active {
    background: rgba(var(--kt-primary-rgb), 0.14);
    color: #1F8DB3;
}
.layout-presets__btn--active i { color: #1F8DB3; }
.layout-presets__btn--active:hover { background: rgba(var(--kt-primary-rgb), 0.20); color: #1F8DB3; }

/* View toggle (card / table). */
.view-toggle {
    display: inline-flex;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    height: 28px;
}
.view-toggle__btn {
    width: 30px;
    height: 100%;
    border: 0;
    background: transparent;
    color: #6F727E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .12s ease, color .12s ease;
}
.view-toggle__btn + .view-toggle__btn { border-left: 1px solid #E1E3EA; }
.view-toggle__btn i { font-size: 12px; }
.view-toggle__btn:hover { background: #F4F6F8; color: #252F4A; }
.view-toggle__btn--active {
    background: rgba(var(--kt-primary-rgb), 0.14);
    color: #1F8DB3;
}
.view-toggle__btn--active i { color: #1F8DB3; }
.view-toggle__btn--active:hover { background: rgba(var(--kt-primary-rgb), 0.20); color: #1F8DB3; }

/* Table column header — only rendered under .is-table-view. Lives
   inside the same scroll container as the rows so horizontal scroll
   keeps the columns aligned. */
.results-table-head {
    display: none;
}
#map_results_outer.is-table-view .results-table-head {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 9px 14px 9px 10px;
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6F727E;
    min-width: 100%;
    width: max-content;
    position: sticky;
    top: 0;
    z-index: 2;
}
.results-table-head__col { padding-right: 12px; flex-shrink: 0; }
.results-table-head__col--check  {
    width: 24px;
    padding-right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}
.results-table-head__col--image  { width: 50px; padding-right: 0; }
.results-table-head__col--street { width: 170px; }
.results-table-head__col--locale { width: 180px; }
.results-table-head__col--value  { width: 110px; text-align: right; padding-right: 16px; }
.results-table-head__col--tags   { width: 180px; }

/* Table-header select-all matches the per-row checkbox styling. The
   toolbar's "All" checkbox is hidden in table view to avoid duplicate
   controls. */
.results-table-head__select-all {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--kt-primary);
    border: 1.5px solid #DBDFE9;
    border-radius: 4px;
}
#map_results_outer.is-table-view .results-toolbar__select-all { display: none; }

/* Table view — reformat each .result-card as a flex row with fixed
   columns. Container scrolls horizontally when content exceeds width. */
#map_results_outer.is-table-view #map_results {
    overflow-x: auto;
    padding-right: 0 !important;
    scrollbar-width: thin;
}
#map_results_outer.is-table-view .property_box.result-card {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 4px;
    padding: 10px 14px 10px 10px;
    border-radius: 8px;
    border-color: #F0F1F4;
    box-shadow: none !important;
    transform: none !important;
    min-width: 100%;
    width: max-content;
}
#map_results_outer.is-table-view .property_box.result-card:hover {
    border-color: #DBDFE9;
    background: #FBFCFD;
}
#map_results_outer.is-table-view .property_box.result-card:has(.result-card__check:checked) {
    border-color: var(--kt-primary);
    background: rgba(var(--kt-primary-rgb), 0.06);
}
/* Checkbox slot — same width as the header's check column */
#map_results_outer.is-table-view .result-card__check {
    position: static;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    margin-right: 6px;
}
#map_results_outer.is-table-view .result-card__body {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    padding: 0;
    gap: 0;
    min-width: 0;
}
#map_results_outer.is-table-view .result-card__image {
    width: 40px;
    height: 40px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    margin: 0 10px 0 0;
    border-radius: 6px;
    animation: none;
    background-image: none;
    background-color: #F4F6F8;
}
#map_results_outer.is-table-view .result-card__image-img--placeholder {
    padding: 8px;
}
#map_results_outer.is-table-view .result-card__street {
    width: 170px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #102F44;
    padding-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#map_results_outer.is-table-view .result-card__locale {
    width: 180px;
    flex-shrink: 0;
    margin: 0;
    font-size: 12px;
    color: #6F727E;
    padding-right: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#map_results_outer.is-table-view .result-card__value {
    width: 110px;
    flex-shrink: 0;
    margin: 0;
    padding-right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background: transparent;
    border: 0;
}
#map_results_outer.is-table-view .result-card__value-label {
    display: none;
}
#map_results_outer.is-table-view .result-card__value-amount {
    font-size: 13px;
    font-weight: 700;
    color: #102F44;
    font-variant-numeric: tabular-nums;
}
#map_results_outer.is-table-view .result-card__tags {
    width: 180px;
    flex-shrink: 0;
    margin: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
}
#map_results_outer.is-table-view .result-card__tag {
    font-size: 10.5px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
}
/* Units still visible in the detail panel — keep the table row dense. */
#map_results_outer.is-table-view .result-card__tag--units { display: none; }

/* ---------- Empty state ---------- */
.results-empty {
    text-align: center;
    padding: 60px 24px;
    color: #99A1B7;
}
.results-empty__icon {
    color: #DBDFE9;
    margin-bottom: 16px;
}
.results-empty__title {
    font-size: 15px;
    font-weight: 700;
    color: #252F4A;
    margin-bottom: 4px;
}
.results-empty__hint {
    font-size: 12.5px;
    color: #6F727E;
}

/* =====================================================   Property Finder — modal redesign system
   ------------------------------------------------------------
   Shared classes for the Saved Searches modal, the Save Search
   SweetAlert, the Selected Property List modal — all using one
   coherent visual system: 14px radius, soft shadow, clean header
   with subtitle, brand-cyan accents.
   ============================================================ */
.finder-modal {
    border-radius: 14px;
    border: 1px solid #E1E3EA;
    box-shadow: 0 20px 60px rgba(16, 47, 68, 0.16);
    overflow: hidden;
}
.finder-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #F0F1F4;
    background: #fff;
}
.finder-modal__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #102F44;
    letter-spacing: 0.01em;
    line-height: 1.2;
}
.finder-modal__title i { color: var(--kt-primary); font-size: 18px; }
.finder-modal__subtitle {
    color: #6F727E;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 4px;
}
.finder-modal__close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E1E3EA;
    color: #6F727E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}
.finder-modal__close i { font-size: 13px; }
.finder-modal__close:hover {
    background: #F9F9F9;
    color: #102F44;
    border-color: #B5B5C3;
}
.finder-modal__empty {
    text-align: center;
    padding: 60px 24px;
    color: #99A1B7;
}
.finder-modal__empty-icon {
    font-size: 42px;
    color: #DBDFE9;
    margin-bottom: 12px;
    display: inline-block;
}
.finder-modal__empty-title {
    font-size: 15px;
    font-weight: 700;
    color: #252F4A;
    margin-bottom: 4px;
}
.finder-modal__empty-hint {
    font-size: 12.5px;
    color: #6F727E;
    max-width: 380px;
    margin: 0 auto;
}

/* ---------- Branded loader ----------
   Replaces the ad-hoc "LOADING <img>" pattern. Centered cyan dual-ring
   spinner with a label + optional hint underneath. Used by both the
   saved-searches loader and the selected-properties table loader so
   loading states feel consistent. */
.finder-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 24px;
    color: #6F727E;
    text-align: center;
}
.finder-loader__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(var(--kt-primary-rgb), 0.18);
    border-top-color: var(--kt-primary);
    border-right-color: var(--kt-primary);
    animation: finder-loader-spin 0.85s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
    position: relative;
}
.finder-loader__spinner::after {
    /* Subtle inner ring for an extra layer of "this is alive" motion */
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: rgba(var(--kt-primary-rgb), 0.45);
    animation: finder-loader-spin 1.4s linear infinite reverse;
}
.finder-loader__label {
    font-size: 13.5px;
    font-weight: 700;
    color: #102F44;
    letter-spacing: 0.01em;
}
.finder-loader__hint {
    font-size: 12px;
    color: #99A1B7;
    font-weight: 500;
}
@keyframes finder-loader-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Selected search-type badge (inside the address field) ----------
   Absolutely positioned over the input, just after its text; the left/top are
   computed in search.js from the value measured in the input's own font.
   pointer-events: none is essential — the badge overlays a text field, and a
   click landing on it instead of the input would move the caret nowhere. */
.finder-search-badge {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}
.finder-search-badge[hidden] { display: none; }

/* ---------- Recent searches dropdown ----------
   Anchored under the address input (its .form-floating wrapper is the
   positioned ancestor). Width tracks the input rather than the whole row,
   which also carries the Search button and the action toolbar. Sits above
   the map (Leaflet panes climb into the 400s) but below Bootstrap modals
   (1055+), so opening a filter modal still covers it. */
.finder-recent {
    position: absolute;
    /* Clears the input's bottom edge with a small gap. A negative offset here
       overlapped the address field and hid what the user was typing. */
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-width: 640px;
    z-index: 1000;
    background: #fff;
    border: 1px solid #E1E3EA;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(16, 47, 68, 0.14);
    overflow: hidden;
}
.finder-recent[hidden] { display: none; }

.finder-recent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #F1F1F4;
    background: #FCFCFD;
}
.finder-recent__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #99A1B7;
}
.finder-recent__clear {
    background: transparent;
    border: 0;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 600;
    color: #7E8299;
    cursor: pointer;
    border-radius: 6px;
}
.finder-recent__clear:hover { color: #F1416C; background: rgba(241, 65, 108, 0.08); }

/* Caps the panel at ~6 visible rows; the list is already capped server-side
   (PropertyFinderRecentSearch::MAX_ENTRIES) so this only ever scrolls a little. */
.finder-recent__list {
    max-height: 336px;
    overflow-y: auto;
    padding: 6px;
}
.finder-recent__row {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
}
.finder-recent__row:hover { background: #F9F9F9; }

.finder-recent__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 10px 12px;
    text-align: left;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
}
/* .is-active is keyboard/hover selection — one shared style so arrow keys and
   the mouse never disagree about which row is current. */
.finder-recent__main.is-active,
.finder-recent__main:focus-visible {
    background: rgba(var(--kt-primary-rgb), 0.10);
    outline: none;
}
.finder-recent__main.is-loading { opacity: 0.55; cursor: progress; }

.finder-recent__icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #1F8DB3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.finder-recent__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.finder-recent__label {
    font-size: 14px;
    font-weight: 700;
    color: #102F44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finder-recent__summary {
    font-size: 11.5px;
    font-weight: 500;
    color: #7E8299;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finder-recent__date {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 500;
    color: #B5B5C3;
    white-space: nowrap;
}
.finder-recent__remove {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    padding: 0 12px;
    color: #B5B5C3;
    font-size: 11px;
    cursor: pointer;
    border-radius: 8px;
}
.finder-recent__remove:hover { color: #F1416C; background: rgba(241, 65, 108, 0.08); }

.finder-recent__empty { padding: 22px 20px 24px; text-align: center; }
.finder-recent__empty-icon { font-size: 20px; color: #C9CDD6; display: block; margin-bottom: 8px; }
.finder-recent__empty-title { font-size: 13.5px; font-weight: 700; color: #102F44; }
.finder-recent__empty-hint { font-size: 12px; color: #99A1B7; margin-top: 3px; }

/* Narrow screens: the input spans the row, so the panel should too. */
@media (max-width: 767.98px) {
    .finder-recent { max-width: none; }
    .finder-recent__date { display: none; }
}

/* ---------- Address autocomplete menu (jQuery UI) ----------
   The widget ships unstyled here, so it rendered as edge-to-edge full-bleed
   rows with no container. These rules give it the same shell as the recent-
   searches panel above — same radius, shadow, row rhythm and type badges — so
   the two dropdowns that share this input read as one control. */
/* border-radius carries !important only to beat the blanket
   `.ui-widget.ui-widget-content { border-radius: 5px !important }` at the top
   of this file (line ~176), which applies to every jQuery UI widget. Nothing
   else here needs the escape hatch. */
.ui-autocomplete.ui-menu.ui-widget-content {
    position: absolute;
    z-index: 1001;                 /* above the recents panel and the map */
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #E1E3EA;
    border-radius: 12px !important;
    box-shadow: 0 12px 34px rgba(16, 47, 68, 0.14);
    max-height: 336px;             /* ~6 rows, then scroll */
    overflow-y: auto;
    overflow-x: hidden;
}
/* The gap below the input comes from the widget's `position` option, NOT
   margin-top: jQuery UI's positioning absorbs the element's margins when it
   computes `top`, so a margin here produces no gap at all. */
.ui-autocomplete.ui-menu .ui-menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
/* The row IS the li's only child — the item template replaces jQuery UI's own
   wrapper wholesale. Don't reset padding on `> div`; that zeroed this rule. */
.ui-autocomplete.ui-menu .finder-ac-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    min-width: 0;
    line-height: normal;
}
/* Hover and keyboard selection share one highlight so they never disagree.
   jQuery UI 1.12 puts "ui-state-active" on the item WRAPPER, which is this same
   .finder-ac-row element (the item template re-tags it) — hence the compound
   selector, not a descendant one. The descendant forms cover other versions. */
.ui-autocomplete.ui-menu .ui-menu-item:hover > .finder-ac-row,
.ui-autocomplete.ui-menu .finder-ac-row.ui-state-active,
.ui-autocomplete.ui-menu .finder-ac-row.ui-state-focus,
.ui-autocomplete.ui-menu .ui-state-focus > .finder-ac-row,
.ui-autocomplete.ui-menu .ui-state-active > .finder-ac-row {
    background: rgba(var(--kt-primary-rgb), 0.10);
}
/* Neutralize jQuery UI's own active styling (theme gradient, border, bold).
   :not(.finder-ac-row) is REQUIRED, not defensive — the row carries
   "ui-menu-item-wrapper ui-state-active" itself, so an unscoped reset here ties
   the highlight rule above on specificity, wins on source order, and the
   keyboard selection silently paints transparent. */
.ui-autocomplete.ui-menu .ui-state-active:not(.finder-ac-row),
.ui-autocomplete.ui-menu .ui-state-focus:not(.finder-ac-row) {
    background: transparent;
    border: 0;
    margin: 0;
    color: inherit;
    font-weight: inherit;
}
/* Border/typography reset that is safe to apply to the row itself — it must
   never touch `background`, which the highlight rule owns. */
.ui-autocomplete.ui-menu .finder-ac-row.ui-state-active,
.ui-autocomplete.ui-menu .finder-ac-row.ui-state-focus {
    border: 0;
    margin: 0;
    color: inherit;
    font-weight: inherit;
}
.finder-ac-row__icon {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.finder-ac-row__title {
    /* flex-grow 0: the title takes only the space it needs, so the type badge
       sits just after the text instead of being flung to the far edge of a
       1400px-wide field. `auto` margin on the badge is deliberately NOT used. */
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    color: #102F44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The matched substring, so it's obvious WHY a suggestion is listed. Carries
   the emphasis on its own — hence the lighter weight on the title above. */
.finder-ac-row__title mark {
    background: transparent;
    color: inherit;
    font-weight: 800;
    padding: 0;
}
.finder-ac-row__badge {
    flex: 0 0 auto;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}
@media (max-width: 767.98px) {
    .finder-ac-row__badge { display: none; }
}

/* ---------- Saved searches list ---------- */
.finder-saved-list {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finder-saved-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border: 1px solid #E1E3EA;
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.finder-saved-row:hover {
    border-color: var(--kt-primary);
    box-shadow: 0 3px 12px rgba(var(--kt-primary-rgb), 0.12);
    transform: translateY(-1px);
}
.finder-saved-row__main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    color: inherit;
    border-radius: 10px 0 0 10px;
    min-width: 0;
}
.finder-saved-row__icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #1F8DB3;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.finder-saved-row__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.finder-saved-row__name {
    font-size: 14px;
    font-weight: 700;
    color: #102F44;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.finder-saved-row__date {
    font-size: 11.5px;
    color: #6F727E;
    font-weight: 500;
}
.finder-saved-row__chev {
    color: #99A1B7;
    font-size: 18px;
    transition: color .15s ease, transform .15s ease;
}
.finder-saved-row:hover .finder-saved-row__chev {
    color: var(--kt-primary);
    transform: translateX(2px);
}
.finder-saved-row__delete,
.finder-saved-row__action {
    flex-shrink: 0;
    width: 44px;
    background: transparent;
    border: 0;
    border-left: 1px solid #F0F1F4;
    color: #B5B5C3;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.finder-saved-row__delete i,
.finder-saved-row__action i { font-size: 14px; }
.finder-saved-row__action:hover {
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #1F8DB3;
}
.finder-saved-row__action--danger:hover,
.finder-saved-row__delete:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #DC3545;
}
/* The last action button gets the rounded right corner */
.finder-saved-row__action--danger,
.finder-saved-row__delete {
    border-radius: 0 10px 10px 0;
}

/* Danger variant of the save modal confirm (used for delete dialog) */
.swal2-confirm.finder-save-modal-confirm--danger {
    background: #DC3545 !important;
    border-color: #DC3545 !important;
    box-shadow: 0 1px 4px rgba(220, 53, 69, 0.32) !important;
}
.swal2-confirm.finder-save-modal-confirm--danger:hover {
    background: #C82333 !important;
    border-color: #C82333 !important;
}

/* ---------- In-place edit of a saved-search name ----------
   Clicking the pencil swaps the row into edit mode: the main clickable
   button + the two action buttons are hidden, and an editor takes over
   the row with an input + Save (cyan) + Cancel (gray). No second modal,
   no jarring navigation. */
.finder-saved-row.is-editing .finder-saved-row__main,
.finder-saved-row.is-editing .finder-saved-row__action {
    display: none;
}
.finder-saved-row__editor {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}
.finder-saved-row__editor-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #1F8DB3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.finder-saved-row__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #102F44;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.finder-saved-row__input:focus {
    outline: 0;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.15);
}
.finder-saved-row__input.is-error {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.finder-saved-row__input:disabled {
    background: #F9F9F9;
    color: #99A1B7;
}
.finder-saved-row__edit-action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #DBDFE9;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6F727E;
    transition: all .15s ease;
    padding: 0;
}
.finder-saved-row__edit-action i { font-size: 14px; }
.finder-saved-row__edit-action--save {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 4px rgba(var(--kt-primary-rgb), 0.32);
}
.finder-saved-row__edit-action--save i { color: #fff; }
.finder-saved-row__edit-action--save:hover:not(:disabled) {
    background: var(--kt-primary-active);
    border-color: var(--kt-primary-active);
}
.finder-saved-row__edit-action--cancel:hover:not(:disabled) {
    background: #F9F9F9;
    color: #102F44;
    border-color: #B5B5C3;
}
.finder-saved-row__edit-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ---------- Save Search SweetAlert ---------- */
.swal2-popup.finder-save-modal-popup {
    border-radius: 14px !important;
    border: 1px solid #E1E3EA;
    box-shadow: 0 20px 60px rgba(16, 47, 68, 0.16) !important;
}
.swal2-title.finder-save-modal-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #102F44 !important;
    text-align: left !important;
    padding: 0 0 6px 0 !important;
    margin: 0 0 18px 0 !important;
    border-bottom: 1px solid #F0F1F4;
    line-height: 1.2 !important;
}
.finder-save-modal { text-align: left; margin-top: 4px; }
.finder-save-modal__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #99A1B7;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.finder-save-modal__input {
    width: 100%;
    border: 1px solid #DBDFE9;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #102F44;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
    box-sizing: border-box;
}
.finder-save-modal__input::placeholder { color: #99A1B7; font-weight: 400; }
.finder-save-modal__input:focus {
    outline: none;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.15);
}
.finder-save-modal__hint {
    margin-top: 10px;
    color: #6F727E;
    font-size: 12px;
    font-weight: 500;
}
.swal2-confirm.finder-save-modal-confirm,
.swal2-cancel.finder-save-modal-cancel {
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 9px 18px !important;
    border-radius: 999px !important;
    letter-spacing: 0.01em !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}
.swal2-confirm.finder-save-modal-confirm {
    background: var(--kt-primary) !important;
    color: #fff !important;
    border: 1px solid var(--kt-primary) !important;
    box-shadow: 0 1px 4px rgba(var(--kt-primary-rgb), 0.32) !important;
}
.swal2-confirm.finder-save-modal-confirm i,
.swal2-confirm.finder-save-modal-confirm i::before {
    color: #fff !important;
    font-size: 13px;
}
.swal2-confirm.finder-save-modal-confirm:hover {
    background: var(--kt-primary-active) !important;
    border-color: var(--kt-primary-active) !important;
}
.swal2-cancel.finder-save-modal-cancel {
    background: #fff !important;
    color: #6F727E !important;
    border: 1px solid #E1E3EA !important;
}
.swal2-cancel.finder-save-modal-cancel:hover {
    background: #F9F9F9 !important;
    color: #102F44 !important;
}
/* SweetAlert places .swal2-actions buttons flush. Add gap so Cancel
   and Save Search don't visually crash into each other. */
.finder-save-modal-popup .swal2-actions {
    gap: 10px;
    justify-content: flex-end !important;
    margin-top: 18px !important;
}

/* ---------- Selected Property List toolbar ---------- */
.finder-spl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #F0F1F4;
    background: #FCFCFD;
}
.finder-spl-toolbar__search {
    position: relative;
    flex: 0 1 280px;
    min-width: 200px;
    margin-right: auto;
}
.finder-spl-toolbar__search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #99A1B7;
    font-size: 14px;
    pointer-events: none;
}
.finder-spl-toolbar__search input {
    width: 100%;
    height: 38px;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    padding: 0 12px 0 36px;
    font-size: 13px;
    font-weight: 500;
    background: #fff;
    color: #102F44;
}
.finder-spl-toolbar__search input::placeholder { color: #99A1B7; font-weight: 400; }
.finder-spl-toolbar__search input:focus {
    outline: none;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.15);
}
.finder-spl-btn {
    height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #DBDFE9;
    background: #fff;
    color: #252F4A;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s ease;
}
.finder-spl-btn i { font-size: 14px; color: #6F727E; }
.finder-spl-btn:hover:not(:disabled) {
    border-color: #B5B5C3;
    background: #F9F9F9;
}
.finder-spl-btn--primary {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    color: #fff;
    box-shadow: 0 1px 4px rgba(var(--kt-primary-rgb), 0.32);
}
.finder-spl-btn--primary i { color: #fff; }
.finder-spl-btn--primary:hover:not(:disabled) {
    background: var(--kt-primary-active);
    border-color: var(--kt-primary-active);
    color: #fff;
}
.finder-spl-btn--danger {
    border-color: rgba(220, 53, 69, 0.30);
    color: #DC3545;
    background: rgba(220, 53, 69, 0.06);
}
.finder-spl-btn--danger i { color: #DC3545; }
.finder-spl-btn--danger:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.50);
}
.finder-spl-btn__count {
    /* Neutral grey pill for plain .finder-spl-btn (e.g. Download); the
       primary/danger variants override the background below. */
    background: #EEF0F4;
    color: #4B5563;
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
}
.finder-spl-btn__count-sep { opacity: 0.55; padding: 0 1px; }
.finder-spl-btn--primary .finder-spl-btn__count { background: rgba(255, 255, 255, 0.26); color: #fff; }

/* Soft-danger variant of .finder-spl-btn for the bulk-remove action. */
.finder-spl-btn--danger-soft {
    background: #fff;
    border-color: rgba(220, 53, 69, 0.30);
    color: #DC3545;
}
.finder-spl-btn--danger-soft i { color: #DC3545; }
.finder-spl-btn--danger-soft:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.50);
}
.finder-spl-btn--danger-soft .finder-spl-btn__count {
    background: rgba(220, 53, 69, 0.12);
    color: #DC3545;
}

/* Count pill next to the Selected Properties modal title. */
.finder-modal__count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 9px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(var(--kt-primary-rgb), 0.14);
    color: #1F8DB3;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* Selected Properties datatable (.spl-table). */
.spl-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    color: #252F4A;
    font-size: 13px;
}
.spl-table thead th {
    background: #F8FAFC;
    color: #6F727E;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px 14px;
    /* No border-top: the .dataTables_scroll box already frames the header;
       a th border-top here renders a second parallel line just inside it. */
    border-bottom: 1px solid #EEF0F4;
    white-space: nowrap;
}
.spl-table thead th:first-child { padding-left: 18px; }
.spl-table thead th:last-child { padding-right: 18px; }
.spl-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid #F2F4F7;
    background: #fff;
    vertical-align: middle;
    color: #252F4A;
    font-weight: 500;
}
.spl-table tbody td:first-child { padding-left: 18px; }
.spl-table tbody td:last-child { padding-right: 18px; }
.spl-table tbody tr { transition: background-color .12s ease; }
.spl-table tbody tr:hover td { background: #F8FBFD; }
.spl-table tbody tr.spl-row--selected td {
    background: rgba(var(--kt-primary-rgb), 0.07);
}
.spl-table tbody tr.spl-row--selected:hover td {
    background: rgba(var(--kt-primary-rgb), 0.11);
}
.spl-table tbody tr td .bi-dash-lg {
    color: #DBDFE9;
    font-size: 14px;
}
.spl-col-check {
    width: 56px;
    padding-left: 18px !important;
    padding-right: 8px !important;
}
/* Freeze the select column to the left edge while the table scrolls
   horizontally. It already inherits an opaque per-state background from the
   generic th/td rules (header grey, body white, hover, selected), so scrolling
   cells slide cleanly underneath it; a hairline right divider (box-shadow, so
   it doesn't clash with the sort-arrow ::after reset) marks the frozen edge. */
.spl-table th.spl-col-check,
.spl-table td.spl-col-check {
    position: sticky;
    left: 0;
    z-index: 2;
    box-shadow: 1px 0 0 #EEF0F4;
}
/* Strip DataTables' sort indicators on the checkbox column. */
.spl-table thead th.spl-col-check.sorting,
.spl-table thead th.spl-col-check.sorting_asc,
.spl-table thead th.spl-col-check.sorting_desc,
.spl-table thead th.spl-col-check.sorting_disabled,
.spl-table thead th.spl-col-check {
    background-image: none !important;
    cursor: default;
}
.spl-table thead th.spl-col-check::before,
.spl-table thead th.spl-col-check::after {
    display: none !important;
}

/* Hover "Analyze" action pinned to the right edge of the scroll area.
   The cell is sticky + transparent so it never paints over data while
   the table scrolls horizontally. On row hover the cell gains a
   left-fading scrim matched to the row hover color, so the button sits
   on a clean surface instead of directly on the underlying cell text. */
.spl-table th.spl-col-action,
.spl-table td.spl-col-action {
    position: sticky;
    right: 0;
    z-index: 2;
    width: 148px;
    min-width: 148px;
    text-align: right;
    padding: 0 16px !important;
    pointer-events: none;
}
.spl-table thead th.spl-col-action,
.spl-table tbody td.spl-col-action {
    background: transparent;
}
.spl-table tbody tr:hover td.spl-col-action {
    background: linear-gradient(to right, rgba(248, 251, 253, 0), #F8FBFD 42%);
}
.spl-table tbody tr.spl-row--selected td.spl-col-action {
    background: transparent;
}
.spl-table tbody tr.spl-row--selected:hover td.spl-col-action {
    background: linear-gradient(to right,
        rgba(255, 255, 255, 0),
        color-mix(in srgb, var(--kt-primary) 11%, #fff) 42%);
}
.spl-table thead th.spl-col-action.sorting,
.spl-table thead th.spl-col-action.sorting_disabled,
.spl-table thead th.spl-col-action {
    background-image: none !important;
    cursor: default;
}
.spl-table thead th.spl-col-action::before,
.spl-table thead th.spl-col-action::after {
    display: none !important;
}
.spl-analyze-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    white-space: nowrap;
    color: #fff;
    background: var(--kt-primary);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18), 0 4px 10px rgba(16, 24, 40, 0.14);
    cursor: pointer;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
/* Metronic globals restyle .bi inside buttons — pin size/color here. */
.spl-analyze-btn i {
    font-size: 13px !important;
    color: #fff !important;
    line-height: 1;
}
.spl-table tbody tr:hover .spl-analyze-btn,
.spl-analyze-btn:focus-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.spl-analyze-btn:hover { filter: brightness(0.92); }
.spl-analyze-btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.28), 0 4px 10px rgba(16, 24, 40, 0.14);
}

/* Custom checkbox for the SPL table. The check glyph is opacity:0
   when unchecked so neighbouring icon-color rules can't bleed through
   and create a "ghost check" appearance. */
.spl-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
    line-height: 1;
}
.spl-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.spl-check__box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #DBDFE9;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .12s ease;
    box-sizing: border-box;
}
.spl-check__box i {
    color: #fff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity .12s ease, transform .12s ease;
    line-height: 1;
}
.spl-check:hover .spl-check__box { border-color: #B5B5C3; }
.spl-check input:checked + .spl-check__box {
    background: var(--kt-primary);
    border-color: var(--kt-primary);
    box-shadow: 0 1px 3px rgba(var(--kt-primary-rgb), 0.36);
}
.spl-check input:checked + .spl-check__box i {
    opacity: 1;
    transform: scale(1);
}
.spl-check input:focus-visible + .spl-check__box {
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.22);
}
/* Indeterminate: render an em-dash on a tinted square (some selected). */
.spl-check input:indeterminate + .spl-check__box {
    background: rgba(var(--kt-primary-rgb), 0.16);
    border-color: var(--kt-primary);
}
.spl-check input:indeterminate + .spl-check__box i {
    /* display:none (not just opacity) so the hidden checkmark doesn't occupy
       flex space and push the ::after dash off-center. */
    display: none;
}
.spl-check input:indeterminate + .spl-check__box::after {
    content: '';
    width: 9px;
    height: 2px;
    background: var(--kt-primary);
    border-radius: 1px;
}

/* DataTables pagination + length picker — restyled to match modal. */
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #DBDFE9;
    padding: 4px 28px 4px 10px;
    font-size: 12.5px;
    color: #102F44;
    font-weight: 600;
    background-color: #fff;
}
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    margin: 0 2px !important;
    padding: 4px 10px !important;
    font-size: 12.5px;
    font-weight: 600;
    color: #6F727E !important;
    border: 1px solid transparent !important;
    background: transparent !important;
}
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #F4F6F8 !important;
    color: #102F44 !important;
    border-color: #E1E3EA !important;
}
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button.current,
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--kt-primary) !important;
    color: #fff !important;
    border-color: var(--kt-primary) !important;
    box-shadow: 0 1px 3px rgba(var(--kt-primary-rgb), 0.36);
}
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
#kt_modal_selected_property_list .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4;
    background: transparent !important;
    color: #B5B5C3 !important;
    border-color: transparent !important;
}

#kt_modal_selected_property_list .dataTables_wrapper {
    padding: 0 20px 16px;
}
#kt_modal_selected_property_list .dataTables_scroll {
    border: 1px solid #EEF0F4;
    border-radius: 10px;
    overflow: hidden;
    }
#kt_modal_selected_property_list .dataTables_scrollHead {
    background: #F8FAFC;
}
#kt_modal_selected_property_list .dataTables_scrollBody {
    background: #fff;
}
#kt_modal_selected_property_list .dataTables_wrapper .row:last-child {
    margin-top: 12px;
    padding: 0 4px;
}

/* Property Details modal — prev/next nav arrows. */
.property-details-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1060;
    /* Bootstrap sets .modal-dialog { pointer-events: none } so backdrop
       clicks dismiss the modal; .modal-content re-enables them. These
       buttons are siblings of .modal-content and would inherit the
       disabled state without this. */
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #DBDFE9;
    box-shadow: 0 6px 20px rgba(16, 47, 68, 0.18);
    color: #102F44;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.property-details-nav i { font-size: 18px; line-height: 1; }
.property-details-nav:hover:not(:disabled) {
    background: var(--kt-primary);
    color: #fff;
    border-color: var(--kt-primary);
    transform: translateY(-50%) scale(1.06);
}
.property-details-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(16, 47, 68, 0.08);
}
.property-details-nav--prev { left: 18px; }
.property-details-nav--next { right: 18px; }
@media (max-width: 767.98px) {
    .property-details-nav { width: 38px; height: 38px; }
    .property-details-nav i { font-size: 15px; }
    .property-details-nav--prev { left: 6px; }
    .property-details-nav--next { right: 6px; }
}

/* =====================================================   Underwriting page redesign (anchor: Overview card + right
   panel header). Scoped to .uw-modern, applied to #kt_content
   on the editable underwriting view (property.html).
   Linear/Stripe-style: neutral grays, 1px hairlines, sentence
   case, generous whitespace, cyan reserved for accents.
   ============================================================ */

/* Design tokens — kept inline to avoid a new variables sheet. */
.uw-modern {
    --uwm-text-strong: #101828;
    --uwm-text: #344054;
    --uwm-text-muted: #667085;
    --uwm-text-faint: #98A2B3;
    --uwm-border: #EAECF0;
    --uwm-border-strong: #D0D5DD;
    --uwm-surface: #FFFFFF;
    --uwm-surface-sunken: #F9FAFB;
    --uwm-accent: var(--kt-primary);
    --uwm-accent-strong: #0EA5C7;
    --uwm-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* ── Section card frame (the collapsible "Property Information"
   wrapper). The cyan-on-light-blue header bar becomes a clean
   hairline-separated header. ─────────────────────────────── */
.uw-modern .sub_inner_tab {
    background: var(--uwm-surface);
    border: 1px solid var(--uwm-border) !important;
    border-radius: 10px;
    box-shadow: var(--uwm-shadow);
    overflow: hidden;
    margin: 16px 0 !important;
}
.uw-modern .sub_inner_tab > .card-header.collapsible {
    background: var(--uwm-surface) !important;
    border-bottom: 1px solid var(--uwm-border);
    padding: 16px 20px;
    min-height: 0;
    transition: background-color .15s ease;
}
.uw-modern .sub_inner_tab > .card-header.collapsible.collapsed {
    border-bottom-color: transparent;
}
.uw-modern .sub_inner_tab > .card-header.collapsible:hover {
    background: var(--uwm-surface-sunken) !important;
}
.uw-modern .sub_inner_tab > .card-header.collapsible .card-title {
    color: var(--uwm-text-strong) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Red asterisk → quiet "Required" pill. font-size:0 hides the
   "*" text node; ::before supplies the visible label. */
.uw-modern .sub_inner_tab > .card-header.collapsible .card-title .text-danger {
    background: #FEF3F2 !important;
    color: #B42318 !important;
    margin-left: 6px !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0 !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
}
.uw-modern .sub_inner_tab > .card-header.collapsible .card-title .text-danger::before {
    content: "Required";
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.uw-modern .sub_inner_tab > .card-header.collapsible .card-title .cursor-help {
    color: var(--uwm-text-faint) !important;
    font-size: 12px !important;
}
.uw-modern .sub_inner_tab > .card-header.collapsible .card-toolbar .svg-icon svg path {
    fill: var(--uwm-text-muted);
}
.uw-modern .sub_inner_tab > .card-header.collapsible .card-toolbar .svg-icon {
    transition: transform .15s ease;
}

/* Card body padding */
.uw-modern .sub_inner_tab .card-body {
    padding: 20px !important;
}

/* ── Inline label rows ("How will the property be valued?") ── */
.uw-modern .sub_inner_tab .row.fv-row.py-5.my-5.border-bottom {
    padding: 0 0 16px 0 !important;
    margin: 0 0 16px 0 !important;
    border-bottom: 1px solid var(--uwm-border) !important;
    align-items: center;
}
.uw-modern .sub_inner_tab .row.fv-row.py-5.my-5.border-bottom label {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--uwm-text) !important;
}
.uw-modern .sub_inner_tab .row.fv-row.py-5.my-5.border-bottom label .text-uppercase {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Lighter select-inside-overview */
.uw-modern .sub_inner_tab .form-select-solid {
    background-color: var(--uwm-surface) !important;
    border: 1px solid var(--uwm-border) !important;
    color: var(--uwm-text-strong) !important;
    font-weight: 500 !important;
    text-transform: none !important;
    border-radius: 8px !important;
}
.uw-modern .sub_inner_tab .select2-selection {
    border: 1px solid var(--uwm-border) !important;
    background: var(--uwm-surface) !important;
}
.uw-modern .sub_inner_tab .select2-selection__rendered {
    color: var(--uwm-text-strong) !important;
    font-weight: 500 !important;
    text-transform: none !important;
}

/* ── Overview key:value table (Property Name / FMV / Cap Rate) ── */
.uw-modern .sub_inner_tab .table.table-row-dashed {
    margin: 0 !important;
}
.uw-modern .sub_inner_tab .table.table-row-dashed thead th {
    border: 0 !important;
    padding: 4px 8px 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em !important;
    color: var(--uwm-text-muted) !important;
    text-transform: uppercase !important;
}
.uw-modern .sub_inner_tab .table.table-row-dashed tbody td {
    border-top: 1px solid var(--uwm-border) !important;
    border-bottom: 0 !important;
    padding: 12px 8px !important;
    background: transparent !important;
}

.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.editable,
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.badge,
/* MF Phase 11: tax reassessment fields are a grid (not a table) but reuse the
   same editable pencil + disabled treatment as the table-based sections. */
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] input.editable {
    background-color: var(--uwm-surface) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 12px !important;
    border: 1px solid var(--uwm-border) !important;
    color: var(--uwm-text-strong) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 32px 8px 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-transform: none !important;
    height: auto !important;
    line-height: 1.4;
    cursor: text;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

/* Only the Overview card (data-id="1") has 3 wide columns where
   it's safe to stretch inputs to fill the cell. Other sub_inner_tab
   tables (Rental Income / Other Income / Expenses) have 8-10 narrow
   columns; forcing 160px there pushes column widths past the card
   and crowds the headers ("POTENTIAL RENT (MNTH)" etc.). */
.uw-modern .sub_inner_tab[data-id="1"] .table.table-row-dashed tbody input.editable,
.uw-modern .sub_inner_tab[data-id="1"] .table.table-row-dashed tbody input.badge {
    width: 100% !important;
    min-width: 160px !important;
    max-width: 100% !important;
}
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.editable:hover,
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.badge:hover,
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] input.editable:hover {
    border-color: var(--uwm-border-strong) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'/><path d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'/></svg>") !important;
    /* Re-assert single-icon background here: the theme's input[type=text].editable:hover
       uses the `background` shorthand (resets repeat to `repeat`) and outranks the base
       rule on hover for grid (non-table) fields, which tiled the pencil. */
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 12px !important;
}
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.editable:focus,
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.badge:focus,
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] input.editable:focus {
    border-color: var(--uwm-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.15) !important;
    outline: none !important;
    background-image: none !important;
    padding-right: 12px !important;
}
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.editable[disabled],
.uw-modern .sub_inner_tab .table.table-row-dashed tbody input.badge[disabled],
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] input.editable[disabled] {
    background-color: var(--uwm-surface-sunken) !important;
    color: var(--uwm-text-muted) !important;
    background-image: none !important;
    padding-right: 12px !important;
    cursor: not-allowed;
}
/* MF Phase 11: a disabled Basis dropdown matches the disabled inputs (sunken,
   muted, not-allowed) while keeping its caret affordance. */
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] select.editable[disabled] {
    background-color: var(--uwm-surface-sunken) !important;
    color: var(--uwm-text-muted) !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}
/* MF Phase 11: disabled (non-editable) tax value inputs show a lock glyph — same
   padlock used for read-only cells like Cap Rate — instead of the edit pencil. */
.uw-modern .sub_inner_tab[data-section-key="tax_reassessment"] input.editable[disabled] {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: left 10px center !important;
    background-size: 11px 11px !important;
    padding: 8px 12px 8px 30px !important;
}

/* Read-only display cell — calculated values shown without an
   input affordance, with a small lock glyph for clarity. */
.uw-modern .sub_inner_tab .table.table-row-dashed tbody .fw-bold.text-gray-800 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--uwm-text-strong) !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    background: var(--uwm-surface-sunken);
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: default;
    font-variant-numeric: tabular-nums;
}
.uw-modern .sub_inner_tab .table.table-row-dashed tbody .fw-bold.text-gray-800::before {
    content: "";
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A2B3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
}

/* ── Right panel: property header card (image + owner / type / date) ── */
.uw-modern .property_summary-content {
    padding: 0 !important;
    margin-right: 0 !important;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 {
    background: var(--uwm-surface);
    border: 1px solid var(--uwm-border);
    border-radius: 12px;
    box-shadow: var(--uwm-shadow);
    overflow: hidden;
    padding: 16px;
    margin: 0 0 16px 0 !important;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: stretch;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 > .col-lg-4 {
    flex: 0 0 110px;
    max-width: 110px;
    padding: 0 !important;
}
.uw-modern .property_summary-content .streetview_img,
.uw-modern .property_summary-content .property_img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover;
    border-radius: 8px !important;
    border: 1px solid var(--uwm-border) !important;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 > .col-lg-8 {
    flex: 1 1 auto;
    padding: 0 !important;
    display: block;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 > .col-lg-8 > .px-5 {
    padding: 0 !important;
    border: 0 !important;
    font-size: 13px !important;
}

/* Key:value rows in the header card */
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack {
    padding: 8px 0;
    align-items: flex-start;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack + .separator-dashed {
    border-top: 1px solid var(--uwm-border) !important;
    border-bottom: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack > .text-gray-800 {
    color: var(--uwm-text-muted) !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
    flex: 0 0 auto;
    max-width: 40%;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack > .d-flex.align-items-center {
    flex: 1 1 auto;
    justify-content: flex-end;
}
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack .badge.badge-light {
    background: transparent !important;
    color: var(--uwm-text-strong) !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    padding: 0 !important;
    text-align: right;
    text-transform: none !important;
    line-height: 1.4;
    max-width: 100%;
    white-space: normal;
}
/* Empty-state dash */
.uw-modern .property_summary-content > .col-xxl-12.row.mb-5 .d-flex.flex-stack .bi-dash-lg {
    color: var(--uwm-text-faint);
    font-size: 14px !important;
}

/* ── Analysis preview tokens & shared card frame ─────────────── */
.uw-modern .summary {
    --uwm-pass: #12B76A;
    --uwm-pass-soft: #ECFDF3;
    --uwm-fail: #F04438;
    --uwm-fail-soft: #FEF3F2;
    --uwm-warn: #F79009;
    --uwm-warn-soft: #FFFAEB;
    --uwm-neutral: #98A2B3;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.uw-modern .uw-card {
    background: var(--uwm-surface);
    border: 1px solid var(--uwm-border);
    border-radius: 12px;
    box-shadow: var(--uwm-shadow);
    overflow: hidden;
}
.uw-modern .uw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--uwm-border);
}
.uw-modern .uw-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    letter-spacing: 0;
}
/* collapse toggle — expand/collapse a card body, matching "Show the Math" */
.uw-modern .uw-card-toggle { cursor: pointer; user-select: none; }
.uw-modern .uw-card-chev {
    font-size: 11px;
    color: var(--uwm-text-faint);
    margin-left: 4px;
    transition: transform .2s ease;
    display: inline-block;
}
.uw-modern .uw-card-toggle.collapsed .uw-card-chev,
.uw-modern .uw-card-header.collapsed .uw-card-chev { transform: rotate(180deg); }
.uw-modern .uw-card-body {
    padding: 16px;
}
.uw-modern .uw-info {
    color: var(--uwm-text-faint);
    font-size: 11px;
    margin-left: 4px;
    cursor: help;
    vertical-align: middle;
}
.uw-modern .uw-info:hover { color: var(--uwm-text-muted); }

/* ── Cash Flow Snapshot ─────────────────────────────────────── */
.uw-modern .uw-flow-card .uw-card-body { padding: 18px 16px 16px; }
.uw-modern .uw-hero { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.uw-modern .uw-hero-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-hero-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    line-height: 1.1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-flow-bar {
    display: flex;
    width: 100%;
    height: 8px;
    background: var(--uwm-surface-sunken);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 14px;
}
.uw-modern .uw-flow-bar-noi {
    background: linear-gradient(90deg, #12B76A 0%, #039855 100%);
    transition: width .3s ease;
}
.uw-modern .uw-flow-bar-opex {
    background: linear-gradient(90deg, #FDA29B 0%, #F04438 100%);
    transition: width .3s ease;
}
.uw-modern .uw-legend { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.uw-modern .uw-legend-row {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    gap: 10px;
    align-items: center;
    font-size: 12.5px;
}
.uw-modern .uw-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: 2px; }
.uw-modern .uw-legend-row--noi .uw-dot { background: #12B76A; }
.uw-modern .uw-legend-row--opex .uw-dot { background: #F04438; }
.uw-modern .uw-legend-label { color: var(--uwm-text); font-weight: 500; }
.uw-modern .uw-legend-label--muted { color: var(--uwm-text-muted); font-weight: 400; }
.uw-modern .uw-legend-pct {
    color: var(--uwm-text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-width: 50px;
    text-align: right;
}
.uw-modern .uw-legend-value {
    color: var(--uwm-text-strong);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    min-width: 80px;
    text-align: right;
}
.uw-modern .uw-legend-row--reserve {
    grid-template-columns: 1fr auto;
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px dashed var(--uwm-border);
}

/* ── Cash Flow Snapshot: NOI hero + subtraction ledger + period toggle ──────
   The card leads with the metric the deal is judged on (NOI) and shows the
   arithmetic that produced it, rather than leading with GOI and leaving the
   reader to do the subtraction. `--uw-cf-pad` mirrors the card-body padding so
   the result row can bleed to the card edges. */
.uw-modern .uw-cf { --uw-cf-pad: 16px; --uw-cf-pos: #039855; --uw-cf-neg: #B42318; --uw-cf-pos-soft: #ECFDF3; }
.uw-modern .uw-cf .uw-card-header.uw-cf-head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
.uw-modern .uw-cf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--uwm-text-muted);
}
/* Period toggle */
.uw-modern .uw-cf-seg {
    display: inline-flex;
    flex-shrink: 0;
    border: 1px solid var(--uwm-border-strong);
    border-radius: 7px;
    overflow: hidden;
    background: var(--uwm-surface);
}
.uw-modern .uw-cf-segbtn {
    border: none;
    background: none;
    padding: 4px 10px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-muted);
    cursor: pointer;
    transition: background .12s, color .12s;
}
.uw-modern .uw-cf-segbtn:hover { color: var(--uwm-text-strong); }
.uw-modern .uw-cf-segbtn.is-on {
    background: var(--uw-cf-pos);
    color: #fff;
    font-weight: 600;
}
.uw-modern .uw-cf-segbtn.is-on:hover { color: #fff; }

/* Hero + margin / alternate-period line */
.uw-modern .uw-cf-hero {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    font-variant-numeric: tabular-nums;
    color: var(--uw-cf-pos);
}
.uw-modern .uw-cf-hero.is-neg { color: var(--uw-cf-neg); }
.uw-modern .uw-cf-sub {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 9px 0 14px;
    font-size: 12px;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-cf-margin {
    background: var(--uw-cf-pos-soft);
    color: var(--uw-cf-pos);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11.5px;
}
.uw-modern .uw-cf-margin b { font-weight: 600; font-variant-numeric: tabular-nums; }
/* Negative results keep their minus sign and take the fail tone — never the
   positive green — in the margin badge, the result row and the ratio strips. */
.uw-modern .uw-cf-margin--neg { background: var(--uwm-fail-soft); color: var(--uw-cf-neg); }
.uw-modern .uw-cf .uw-cf-row--noi.is-neg { background: var(--uwm-fail-soft); }
.uw-modern .uw-cf .uw-cf-row--noi .uw-cf-val.is-neg { color: var(--uw-cf-neg); }
.uw-modern .uw-ratio-current.is-neg,
.uw-modern .uw-lb-stat-value.is-neg,
.uw-modern .uw-sm-row-value.is-neg,
.uw-modern .uw-neg .uw-ratio-current,
.uw-modern .uw-neg .uw-lb-stat-value,
.uw-modern .uw-neg .uw-fin-dscr-value { color: var(--uwm-fail); }
/* When expenses exceed income there is no composition to draw: the bar gives
   way to the one fact that matters, in the period the card is showing. */
.uw-modern .uw-cf-exceed {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--uwm-fail-soft);
    color: var(--uw-cf-neg);
    font-size: 11.5px;
    line-height: 1.5;
}
.uw-modern .uw-cf-exceed-ico { flex: 0 0 auto; font-weight: 700; line-height: 1.4; }
.uw-modern .uw-cf-exceed b { font-weight: 600; font-variant-numeric: tabular-nums; }
.uw-modern .uw-cf-alt { font-variant-numeric: tabular-nums; }
.uw-modern .uw-cf-alt b { font-weight: 500; color: var(--uwm-text); }
.uw-modern .uw-cf-sep { color: var(--uwm-text-faint); margin: 0 3px; }

/* Subtraction ledger */
.uw-modern .uw-cf .uw-cf-ledger {
    display: block;
    margin-bottom: 16px;
    border-top: 1px solid var(--uwm-border);
}
.uw-modern .uw-cf .uw-cf-row {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin: 0;
    border-top: none;
    font-size: 12.5px;
}
.uw-modern .uw-cf .uw-cf-row + .uw-cf-row { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-cf-op {
    font-variant-numeric: tabular-nums;
    color: var(--uwm-text-faint);
    text-align: center;
}
.uw-modern .uw-cf .uw-cf-lbl { color: var(--uwm-text); font-weight: 400; display: inline-flex; align-items: center; gap: 6px; }
.uw-modern .uw-cf-pct { font-style: normal; font-size: 11.5px; color: var(--uwm-text-faint); font-variant-numeric: tabular-nums; }
.uw-modern .uw-cf .uw-cf-val { min-width: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--uwm-text-strong); }
.uw-modern .uw-cf .uw-cf-row--opex .uw-cf-val,
.uw-modern .uw-cf .uw-cf-row--opex .uw-cf-op { color: var(--uw-cf-neg); }
/* The result row is the answer: tinted, bolder, and bled to the card edges. */
.uw-modern .uw-cf .uw-cf-row--noi {
    background: var(--uw-cf-pos-soft);
    margin-inline: calc(var(--uw-cf-pad) * -1);
    padding-inline: var(--uw-cf-pad);
}
.uw-modern .uw-cf .uw-cf-row--noi .uw-cf-lbl { font-weight: 600; color: var(--uwm-text-strong); }
.uw-modern .uw-cf .uw-cf-row--noi .uw-cf-val { font-weight: 600; color: var(--uw-cf-pos); }
.uw-modern .uw-cf .uw-cf-row--noi .uw-cf-op { color: var(--uwm-text-muted); }

/* Bar legend */
.uw-modern .uw-cf-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px 0 16px;
    font-size: 11.5px;
    color: var(--uwm-text);
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-cf-lg { display: inline-flex; align-items: center; gap: 8px; }
.uw-modern .uw-cf-lg .uw-dot { width: 8px; height: 8px; border-radius: 2px; margin: 0; flex-shrink: 0; }
.uw-modern .uw-cf-lg--noi .uw-dot { background: var(--uw-cf-pos); }
.uw-modern .uw-cf-lg--opex .uw-dot { background: var(--uwm-border-strong); }

.uw-modern .uw-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--uwm-border);
}
.uw-modern .uw-stack-item { display: flex; flex-direction: column; gap: 2px; }
.uw-modern .uw-stack-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-stack-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
}
/* Advisory note under the stack grid (cap-rate mode): implied value does not drive returns. */
.uw-modern .uw-stack-note {
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-stack-note i { color: var(--uwm-text-muted); }

/* ── Performance card (DSCR + FCF + COC) ────────────────────── */
.uw-modern .uw-perf-card .uw-perf-hero {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--uwm-border);
    background: var(--uwm-surface);
}
.uw-modern .uw-perf-hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.uw-modern .uw-perf-hero-meta { display: flex; flex-direction: column; gap: 6px; }
.uw-modern .uw-perf-hero-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-perf-hero-pill {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.uw-modern .uw-perf-hero--up .uw-perf-hero-pill {
    background: var(--uwm-pass-soft);
    color: var(--uwm-pass);
}
.uw-modern .uw-perf-hero--down .uw-perf-hero-pill {
    background: var(--uwm-fail-soft);
    color: var(--uwm-fail);
}
.uw-modern .uw-perf-hero-value {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-perf-hero--up .uw-perf-hero-value { color: var(--uwm-pass); }
.uw-modern .uw-perf-hero--down .uw-perf-hero-value { color: var(--uwm-fail); }
.uw-modern .uw-gauge {
    position: relative;
    height: 8px;
    background: var(--uwm-surface-sunken);
    border-radius: 999px;
    overflow: visible;
    margin-bottom: 6px;
}
.uw-modern .uw-gauge-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: linear-gradient(90deg, #6CE9A6 0%, #12B76A 100%);
    border-radius: 999px;
    transition: width .35s cubic-bezier(.4,0,.2,1);
}
.uw-modern .uw-perf-hero--down .uw-gauge-fill {
    background: linear-gradient(90deg, #FDA29B 0%, #F04438 100%);
}
.uw-modern .uw-gauge-target {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    background: var(--uwm-text-strong);
    transform: translateX(-1px);
    border-radius: 1px;
}
.uw-modern .uw-gauge-axis {
    position: relative;
    height: 14px;
    font-size: 10px;
    color: var(--uwm-text-faint);
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-gauge-axis > span:first-child { position: absolute; left: 0; }
.uw-modern .uw-gauge-axis > span:last-child { position: absolute; right: 0; }
.uw-modern .uw-gauge-axis-target {
    position: absolute;
    transform: translateX(-50%);
    color: var(--uwm-text-muted);
    font-weight: 500;
    white-space: nowrap;
}
.uw-modern .uw-perf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.uw-modern .uw-perf-stat {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.uw-modern .uw-perf-stat + .uw-perf-stat { border-left: 1px solid var(--uwm-border); }
.uw-modern .uw-perf-stat-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-perf-stat-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    color: var(--uwm-text-strong);
}
.uw-modern .uw-perf-stat-value.is-up   { color: var(--uwm-pass); }
.uw-modern .uw-perf-stat-value.is-down { color: var(--uwm-fail); }
.uw-modern .uw-perf-stat-value.is-warn { color: var(--uwm-warn); }

/* ── Key Operating Ratios ───────────────────────────────────── */
.uw-modern .uw-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-muted);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}
.uw-modern .uw-edit-link:hover {
    background: var(--uwm-surface-sunken);
    color: var(--uwm-text-strong);
}
.uw-modern .uw-edit-link .bi { font-size: 12px; }
.uw-modern .uw-ratios-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: var(--uwm-text-faint);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--uwm-border);
    margin-bottom: 8px;
}
.uw-modern .uw-ratios-axis .bi { font-size: 10px; }
.uw-modern .uw-ratios-list { display: flex; flex-direction: column; }
.uw-modern .uw-ratio {
    display: grid;
    grid-template-columns: 10px 1.4fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--uwm-border);
    font-size: 12.5px;
}
.uw-modern .uw-ratio:last-child { border-bottom: 0; }
.uw-modern .uw-ratio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--uwm-neutral);
    margin-left: 2px;
}
.uw-modern .uw-ratio--pass .uw-ratio-dot { background: var(--uwm-pass); }
.uw-modern .uw-ratio--fail .uw-ratio-dot { background: var(--uwm-fail); }
.uw-modern .uw-ratio--miss .uw-ratio-dot { background: var(--uwm-warn); }
.uw-modern .uw-ratio--neutral .uw-ratio-dot { background: var(--uwm-neutral); }
.uw-modern .uw-ratio-label {
    color: var(--uwm-text);
    font-weight: 500;
    line-height: 1.3;
}
.uw-modern .uw-ratio-progress {
    position: relative;
    height: 6px;
    background: var(--uwm-surface-sunken);
    border-radius: 999px;
}
.uw-modern .uw-ratio-progress.is-empty { background: transparent; }
.uw-modern .uw-ratio-progress-bar {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--uwm-pass);
    border-radius: 999px;
    transition: width .3s ease;
}
.uw-modern .uw-ratio--fail .uw-ratio-progress-bar { background: var(--uwm-fail); }
.uw-modern .uw-ratio--miss .uw-ratio-progress-bar { background: var(--uwm-warn); }
.uw-modern .uw-ratio-progress--inverse .uw-ratio-progress-bar { background: var(--uwm-fail); }
.uw-modern .uw-ratio--pass .uw-ratio-progress--inverse .uw-ratio-progress-bar { background: var(--uwm-pass); }
.uw-modern .uw-ratio-progress-target {
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    background: var(--uwm-text-muted);
    transform: translateX(-1px);
    border-radius: 1px;
}
.uw-modern .uw-ratio-values {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    justify-content: flex-end;
}
.uw-modern .uw-ratio-current {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--uwm-text-strong);
}
.uw-modern .uw-ratio--pass .uw-ratio-current { color: var(--uwm-pass); }
.uw-modern .uw-ratio--fail .uw-ratio-current { color: var(--uwm-fail); }
.uw-modern .uw-ratio--miss .uw-ratio-current { color: var(--uwm-warn); }
.uw-modern .uw-ratio--neutral .uw-ratio-current { color: var(--uwm-text-strong); }
.uw-modern .uw-ratio-target {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-faint);
    min-width: 36px;
    text-align: right;
}
.uw-modern .uw-ratio--no-target .uw-ratio-target { visibility: hidden; }

/* ── Lender basis card ──────────────────────────────────────── */
/* Leads with the one call the reader has to make — does a lender size off a
   different NOI than they do — then the two columns, then the footnote. */
.uw-modern .summary {
    --uwm-warn-ink: #B54708;
    --uwm-warn-line: #FEDF89;
    --uwm-warn-mark: #DC9A04;
}
.uw-modern .uw-lb-card .uw-card-body { padding: 16px; }
.uw-modern .uw-lb-pill {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
}
.uw-modern .uw-lb-pill--differs { background: var(--uwm-warn-soft); color: var(--uwm-warn-ink); border: 1px solid var(--uwm-warn-line); }
.uw-modern .uw-lb-pill--matches { background: var(--uwm-surface-sunken); color: var(--uwm-text-muted); border: 1px solid var(--uwm-border); }
.uw-modern .uw-lb-callout {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 16px;
}
.uw-modern .uw-lb-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1;
    color: #FFFFFF;
}
.uw-modern .uw-lb-callout--differs .uw-lb-ico { background: var(--uwm-warn-mark); }
.uw-modern .uw-lb-callout--matches .uw-lb-ico { background: var(--uwm-pass); }
.uw-modern .uw-lb-copy-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    line-height: 1.35;
    margin-bottom: 4px;
}
.uw-modern .uw-lb-copy-text {
    font-size: 12px;
    line-height: 1.5;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-lb-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--uwm-border);
}
.uw-modern .uw-lb-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.uw-modern .uw-lb-stat-label {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--uwm-text-faint);
}
.uw-modern .uw-lb-stat-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}
.uw-modern .uw-lb-table {
    width: 100%;
    margin: 4px 0 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-lb-table th,
.uw-modern .uw-lb-table td { padding: 9px 0; text-align: right; }
.uw-modern .uw-lb-table th:first-child,
.uw-modern .uw-lb-table td:first-child { text-align: left; }
.uw-modern .uw-lb-table thead th {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--uwm-text-faint);
    padding-top: 12px;
}
.uw-modern .uw-lb-table tbody tr { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-lb-table tbody th {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--uwm-text);
}
.uw-modern .uw-lb-table tbody td {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--uwm-text-strong);
}
.uw-modern .uw-lb-table tbody td.uw-lb-ld { font-weight: 600; }
.uw-modern .uw-lb-table .uw-lb-delta {
    color: var(--uwm-warn-ink);
    font-weight: 500;
    font-size: 11.5px;
    padding-left: 12px;
    white-space: nowrap;
}
.uw-modern .uw-lb-note {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--uwm-text-faint);
}
.uw-modern .uw-lb-table + .uw-lb-note {
    padding-top: 12px;
    border-top: 1px solid var(--uwm-border);
}

/* ── Against your targets ───────────────────────────────────── */
/* Same row engine as the older ratios list, minus the status dot: the bar and
   the value already carry pass/fail, so a third encoding of it is noise. */
.uw-modern .uw-tg-body { padding-bottom: 6px; }
.uw-modern .uw-tg-list .uw-ratio {
    grid-template-columns: minmax(0, 1.35fr) minmax(48px, 0.8fr) auto;
    gap: 10px;
    padding: 11px 0;
}
.uw-modern .uw-tg-list .uw-ratio:first-child { padding-top: 2px; }
.uw-modern .uw-tg-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 16px 16px;
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--uwm-warn-soft);
    border: 1px solid var(--uwm-warn-line);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-warn-ink);
}
.uw-modern .uw-tg-note-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.uw-modern .uw-tg-note-link:hover { color: inherit; text-decoration: none; }
.uw-modern .uw-tg-note-link .bi { font-size: 10px; }
.uw-modern .uw-tg-note-ico {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--uwm-warn-ink);
    line-height: 1.4;
}
.uw-modern .uw-tg-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--uwm-border);
}
.uw-modern .uw-tg-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 13px 16px;
    min-width: 0;
}
.uw-modern .uw-tg-stat:nth-child(odd) { border-right: 1px solid var(--uwm-border); }
.uw-modern .uw-tg-stat:nth-child(n+3) { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-tg-stat-label {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--uwm-text-faint);
}
.uw-modern .uw-tg-stat .uw-ratio-current {
    font-size: 15px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ── Panel hierarchy: verdict pill, card footers, summary tiles ──
   The Live Analysis panel reads top-down — performance summary, targets,
   ceiling price, operating, financing, math. These rules only add the few
   pieces that ordering needs: a verdict pill on the summary card, a quiet
   footer row for help / "show the math" links, a 2x2 tile grid, and target
   rows whose outcome is a word and an icon as well as a colour. */
.uw-modern .uw-verdict {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 3px 8px;
    border-radius: 999px;
    /* "3 met · 1 missed · 1 unavailable" may need two lines beside the title. */
    white-space: normal;
    text-align: right;
    line-height: 1.3;
    flex: 0 1 auto;
    margin-left: 12px;
    background: var(--uwm-surface-sunken);
    color: var(--uwm-text-muted);
    border: 1px solid var(--uwm-border);
}
.uw-modern .uw-verdict .bi { font-size: 10px; flex: 0 0 auto; }
.uw-modern .uw-verdict--pass { background: var(--uwm-pass-soft); color: var(--uwm-pass); border-color: var(--uwm-pass-soft); }
.uw-modern .uw-verdict--at   { background: var(--uwm-warn-soft); color: var(--uwm-warn-ink); border-color: var(--uwm-warn-line); }
.uw-modern .uw-verdict--fail { background: var(--uwm-fail-soft); color: var(--uwm-fail); border-color: var(--uwm-fail-soft); }
/* Collapse chevron at the far right of the header, after any action link or
   pill; the title stays the (keyboard) trigger, the chevron is a second
   trigger for the same body so Bootstrap keeps both in step. */
.uw-modern .uw-card-header--chev { gap: 10px; }
.uw-modern .uw-card-header--chev > .uw-card-title { flex: 1 1 auto; min-width: 0; }
.uw-modern .uw-card-chev-end {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 2px 0 2px 2px;
}
.uw-modern .uw-card-chev-end .uw-card-chev { margin-left: 0; }
/* Max purchase price: the chevron shares the title row; the pill and the
   Edit-targets link take the row beneath, so the chevron is always far right. */
.uw-modern .uw-mpp-head.uw-card-header--chev .uw-mpp-head-right { flex: 1 0 100%; order: 3; }
.uw-modern .uw-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--uwm-border);
    font-size: 11.5px;
}
.uw-modern .uw-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-muted);
    text-decoration: none;
}
.uw-modern .uw-foot-link:hover { color: var(--uwm-text-strong); text-decoration: underline; }
.uw-modern .uw-foot-link .bi { font-size: 11px; }

/* Summary tiles: two columns, two rows — four readings at a size that stays
   legible at the rail's real width instead of four across. */
.uw-modern .uw-perf-grid--2x2 { grid-template-columns: 1fr 1fr; }
.uw-modern .uw-perf-grid--2x2 .uw-perf-stat { gap: 4px; min-width: 0; }
.uw-modern .uw-perf-grid--2x2 .uw-perf-stat + .uw-perf-stat { border-left: 0; }
.uw-modern .uw-perf-grid--2x2 .uw-perf-stat:nth-child(even) { border-left: 1px solid var(--uwm-border); }
.uw-modern .uw-perf-grid--2x2 .uw-perf-stat:nth-child(n+3) { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-perf-grid--2x2 .uw-perf-stat-value { font-size: 20px; }
.uw-modern .uw-perf-stat-value.is-na { color: var(--uwm-text-faint); font-weight: 500; }
.uw-modern .uw-perf-stat-sub {
    font-size: 11px;
    line-height: 1.35;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-perf-stat-sub .bi { font-size: 10px; margin-right: 3px; }
.uw-modern .uw-perf-stat-sub--pass { color: var(--uwm-pass); }
.uw-modern .uw-perf-stat-sub--at   { color: var(--uwm-warn-ink); }
.uw-modern .uw-perf-stat-sub--fail { color: var(--uwm-fail); }
.uw-modern .uw-perf-stat-sub--na   { color: var(--uwm-text-faint); }
.uw-modern .uw-tg-note--flush { margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.uw-modern .uw-tg-note--quiet { background: var(--uwm-surface-sunken); border-color: var(--uwm-border); color: var(--uwm-text-muted); }
.uw-modern .uw-tg-note--quiet .uw-tg-note-ico { color: var(--uwm-text-muted); }
/* Incomplete-input states: a neutral pointer in the row or the stack note,
   never a warning tone — an empty form is not a problem with the deal. */
.uw-modern .uw-tg-status-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.uw-modern .uw-tg-status-link:hover { color: inherit; text-decoration: none; }
.uw-modern .uw-tg-status-link .bi { font-size: 10px; }
.uw-modern .uw-stack-value.is-na { color: var(--uwm-text-faint); font-weight: 500; }
.uw-modern .uw-stack-note .uw-tg-note-link { color: inherit; }
.uw-modern .uw-fin-note .uw-tg-note-link { color: var(--uwm-text); }

/* Target rows: icon | label + reading / outcome + target. */
.uw-modern .uw-tg-rows { display: flex; flex-direction: column; padding: 4px 16px 6px; }
.uw-modern .uw-tg-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--uwm-border);
}
.uw-modern .uw-tg-row:last-child { border-bottom: 0; }
.uw-modern .uw-tg-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1;
    color: #FFFFFF;
    background: var(--uwm-neutral);
}
.uw-modern .uw-tg-row--pass .uw-tg-ico { background: var(--uwm-pass); }
.uw-modern .uw-tg-row--at   .uw-tg-ico { background: var(--uwm-warn-mark); }
.uw-modern .uw-tg-row--fail .uw-tg-ico { background: var(--uwm-fail); }
.uw-modern .uw-tg-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.uw-modern .uw-tg-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.uw-modern .uw-tg-label { font-size: 12.5px; font-weight: 500; color: var(--uwm-text); min-width: 0; }
.uw-modern .uw-tg-row .uw-tg-val { font-size: 13.5px; white-space: nowrap; }
.uw-modern .uw-tg-row--at .uw-ratio-current { color: var(--uwm-warn-ink); }
.uw-modern .uw-tg-row--na .uw-ratio-current { color: var(--uwm-text-faint); font-weight: 500; }
.uw-modern .uw-tg-line--sub { font-size: 11px; line-height: 1.35; }
.uw-modern .uw-tg-status { font-weight: 500; color: var(--uwm-text-muted); }
.uw-modern .uw-tg-row--pass .uw-tg-status { color: var(--uwm-pass); }
.uw-modern .uw-tg-row--at   .uw-tg-status { color: var(--uwm-warn-ink); }
.uw-modern .uw-tg-row--fail .uw-tg-status { color: var(--uwm-fail); }
.uw-modern .uw-tg-target { color: var(--uwm-text-faint); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }

/* Operating card: the NOI eyebrow and its period control sit inside the body,
   directly above the amounts the control switches; the ratio strip under the
   ledger is annual and outside its reach. */
.uw-modern .uw-cf-head--inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.uw-modern .uw-ops-strip { padding: 14px 16px; border-top: 1px solid var(--uwm-border); border-bottom: 0; }
.uw-modern .uw-ops-strip .uw-ratio-current {
    font-size: 15px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    letter-spacing: -0.01em;
}

/* Financing card: basis / equity / debt service, then DSCR explained, then the
   operating strip and the lender comparison (only when it differs). */
.uw-modern .uw-stack-grid--top { padding-top: 0; border-top: 0; }
.uw-modern .uw-fin-dscr {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid var(--uwm-border);
    border-radius: 9px;
    background: var(--uwm-surface-sunken);
}
.uw-modern .uw-fin-dscr-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.uw-modern .uw-fin-dscr-label { font-size: 12px; font-weight: 500; color: var(--uwm-text-muted); }
.uw-modern .uw-fin-dscr-value {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--uwm-text-strong);
}
.uw-modern .uw-fin-dscr--fail .uw-fin-dscr-value { color: var(--uwm-fail); }
.uw-modern .uw-fin-dscr--na .uw-fin-dscr-value { color: var(--uwm-text-faint); font-weight: 500; }
.uw-modern .uw-fin-dscr-sub { margin-top: 4px; font-size: 11.5px; }
.uw-modern .uw-fin-dscr-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: var(--uwm-text-muted); }
.uw-modern .uw-fin-dscr-status .bi { font-size: 10px; }
.uw-modern .uw-fin-dscr--pass .uw-fin-dscr-status { color: var(--uwm-pass); }
.uw-modern .uw-fin-dscr--at   .uw-fin-dscr-status { color: var(--uwm-warn-ink); }
.uw-modern .uw-fin-dscr--fail .uw-fin-dscr-status { color: var(--uwm-fail); }
.uw-modern .uw-fin-dscr-math { margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--uwm-text-faint); font-variant-numeric: tabular-nums; }
.uw-modern .uw-fin .uw-lb-strip { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-fin .uw-lb-strip:last-child { padding-bottom: 0; border-bottom: 0; }
.uw-modern .uw-fin .uw-lb-callout { margin: 14px 0 0; }
.uw-modern .uw-lb-callout--compact .uw-lb-copy-text { font-size: 11.5px; }
.uw-modern .uw-fin .uw-lb-table { margin-top: 12px; }

/* ── Maximum purchase price ─────────────────────────────────── */
/* One card: the header pill carries the answer; the selected criteria line is
   always visible and discloses the target picker beneath it; the result stays
   on screen while the picker is open and is marked STALE the moment the
   selection stops matching the run. Staleness is a banner because it has to
   say what to do about it. */
.uw-modern .uw-mpp-pill--calc  { background: var(--uwm-surface-sunken); color: var(--uwm-text-muted); border: 1px solid var(--uwm-border); }
.uw-modern .uw-mpp-pill--stale { background: var(--uwm-warn-soft); color: var(--uwm-warn-ink); border: 1px solid var(--uwm-warn-line); }
.uw-modern .uw-mpp-pill--error { background: var(--uwm-fail-soft); color: var(--uwm-fail); border: 1px solid var(--uwm-fail-soft); }
.uw-modern .uw-mpp-sel .mpp-choose-targets { border: 0; background: none; font: inherit; }
.uw-modern .uw-mpp-setup .uw-card-body { border-bottom: 1px solid var(--uwm-border); }
.uw-modern .uw-mpp-cta { padding: 12px 16px; }
.uw-modern .uw-mpp-intro { padding: 12px 16px 0; }
.uw-modern .uw-mpp-intro .uw-mpp-lede { margin-bottom: 12px; }
/* A missing prerequisite: the action stays where it is, disabled, with the
   reason and the way to the input right under it. */
.uw-modern .uw-mpp-cta .mpp-calculate:disabled { opacity: 0.55; cursor: not-allowed; }
.uw-modern .uw-mpp-prereq {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-mpp-prereq-ico { flex: 0 0 auto; font-weight: 700; line-height: 1.4; }
.uw-modern .uw-mpp-prereq .uw-tg-note-link { color: var(--uwm-text); }
.uw-modern .dwi-mpp .mpp-target-list { margin-bottom: 0; }
.uw-modern .uw-mpp-card .uw-card-body { padding: 16px; }
.uw-modern .uw-mpp-head { flex-wrap: wrap; gap: 8px; }
.uw-modern .uw-mpp-head .uw-card-title { flex: 1 1 auto; min-width: 0; }
.uw-modern .uw-mpp-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}
.uw-modern .uw-mpp-head-right .uw-edit-link { padding: 4px 0; white-space: nowrap; }
.uw-modern .uw-mpp-pill {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.uw-modern .uw-mpp-pill--none {
    background: var(--uwm-surface-sunken);
    color: var(--uwm-text-faint);
    border: 1px solid var(--uwm-border);
}
.uw-modern .uw-mpp-pill--value {
    background: var(--uwm-pass-soft);
    color: var(--uwm-text-strong);
    border: 1px solid var(--uwm-border);
}
.uw-modern .uw-mpp-stale {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 16px;
    background: var(--uwm-warn-soft);
    border-bottom: 1px solid var(--uwm-warn-line);
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-warn-ink);
}
.uw-modern .uw-mpp-stale-ico { flex: 0 0 auto; font-weight: 700; line-height: 1.4; }
.uw-modern .uw-mpp-sel {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--uwm-border);
}
.uw-modern .uw-mpp-sel-list {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    line-height: 1.6;
    color: var(--uwm-text);
    min-width: 0;
}
.uw-modern .uw-mpp-sel .uw-edit-link { flex: 0 0 auto; padding: 0; }
.uw-modern .uw-mpp-lede {
    font-size: 12px;
    line-height: 1.5;
    color: var(--uwm-text-muted);
    margin-bottom: 12px;
}
.uw-modern .uw-mpp-caveat,
.uw-modern .uw-mpp-empty {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-text-faint);
    margin-bottom: 12px;
}
.uw-modern .uw-mpp-eyebrow {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--uwm-text-faint);
    margin-bottom: 5px;
}
.uw-modern .uw-mpp-eyebrow--row {
    margin: 0;
    padding: 12px 16px 6px;
}
.uw-modern .uw-mpp-main { padding: 16px; }
.uw-modern .uw-mpp-hero {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-mpp-sub {
    margin-top: 6px;
    font-size: 11.5px;
    color: var(--uwm-text-muted);
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-mpp-bar {
    position: relative;
    height: 8px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--uwm-pass-soft);
    overflow: hidden;
}
.uw-modern .uw-mpp-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: 999px;
    background: var(--uwm-pass);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}
/* Over the ceiling: the run that is still inside the ceiling stays green, the
   track behind it is the overshoot. */
.uw-modern .uw-mpp-bar--over { background: var(--uwm-fail-soft); }
.uw-modern .uw-mpp-ends {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}
.uw-modern .uw-mpp-end { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.uw-modern .uw-mpp-end--right { text-align: right; }
.uw-modern .uw-mpp-end-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-mpp-end--right .uw-mpp-end-label { color: var(--uwm-text-strong); font-weight: 600; }
.uw-modern .uw-mpp-end-value {
    font-size: 12px;
    color: var(--uwm-text-muted);
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-mpp-end--right .uw-mpp-end-value { color: var(--uwm-text-strong); font-weight: 600; }
.uw-modern .uw-mpp-binding {
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid var(--uwm-border);
    border-radius: 9px;
    background: var(--uwm-surface-sunken);
}
.uw-modern .uw-mpp-binding-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    line-height: 1.35;
    margin-bottom: 4px;
}
.uw-modern .uw-mpp-binding-text {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-text-muted);
}
/* Ledger: the three plain readings the ceiling is judged by. */
.uw-modern .uw-mpp-lrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--uwm-border);
    font-size: 12.5px;
}
.uw-modern .uw-mpp-lrow-label { color: var(--uwm-text); min-width: 0; }
.uw-modern .uw-mpp-lrow-value {
    font-weight: 600;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.uw-modern .uw-mpp-badge {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
.uw-modern .uw-mpp-badge--pass { background: var(--uwm-pass-soft); color: var(--uwm-text-strong); border: 1px solid var(--uwm-border); }
.uw-modern .uw-mpp-badge--fail { background: var(--uwm-fail-soft); color: var(--uwm-fail); border: 1px solid var(--uwm-fail-soft); }
.uw-modern .uw-mpp-details { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-mpp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto 14px;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--uwm-border);
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}
.uw-modern .uw-mpp-row.is-binding { background: var(--uwm-pass-soft); font-weight: 600; }
.uw-modern .uw-mpp-row-label { color: var(--uwm-text); min-width: 0; }
.uw-modern .uw-mpp-row.is-binding .uw-mpp-row-label { color: var(--uwm-text-strong); }
.uw-modern .uw-mpp-row-value { font-weight: 600; color: var(--uwm-text-strong); }
.uw-modern .uw-mpp-row-vs { font-size: 11px; color: var(--uwm-text-faint); }
.uw-modern .uw-mpp-row-mark { color: var(--uwm-pass); font-weight: 700; text-align: right; }
.uw-modern .uw-mpp-row-mark.is-fail { color: var(--uwm-fail); }
.uw-modern .uw-mpp-verdict {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--uwm-text-strong);
    font-weight: 500;
}
.uw-modern .uw-mpp-disclaimer {
    padding: 12px 16px 14px;
    border-top: 1px solid var(--uwm-border);
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--uwm-text-faint);
}
.uw-modern .uw-mpp-disclaimer p { margin: 0; }
.uw-modern .uw-mpp-disclaimer p + p { margin-top: 6px; }
.uw-modern .uw-mpp-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--uwm-border);
}
/* Deep link to the Purchase Price sensitivity card (Sensitivity Analysis). */
.uw-modern .uw-mpp-viewsens {
    padding: 10px 16px 12px;
    border-top: 1px solid var(--uwm-border);
    font-size: 11.5px;
}
/* The create attempt's message line. It sits between the secondary row and
   the primary button and collapses to nothing when empty, so the button
   does not move as messages come and go. */
.uw-modern .uw-mpp-cnote {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-mpp-cnote:empty { display: none; }
.uw-modern .uw-mpp-cnote.is-error { color: var(--uwm-fail); }
/* The way out reads as part of the sentence that refused them, so it is a
   link in the message rather than a second button competing with the
   primary one below it. Same element either way — <a> for checkout,
   <button> for the in-app switch dialog. */
.uw-modern .uw-mpp-upgrade {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--uwm-fail);
    text-decoration: underline;
    cursor: pointer;
}
.uw-modern .uw-mpp-upgrade:hover { color: var(--uwm-fail); text-decoration: none; }
.uw-modern .uw-mpp-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
/* The details toggle reveals content, so it reads as an outlined control;
   Recalculate re-runs what is already shown and stays a flat light button.
   Same weight, different job — the border is the only thing separating them. */
.uw-modern .uw-mpp-actions .mpp-details-toggle {
    background: var(--uwm-surface) !important;
    border: 1px solid var(--uwm-border) !important;
    color: var(--uwm-text-strong) !important;
}
.uw-modern .uw-mpp-actions .mpp-details-toggle:hover { background: var(--uwm-surface-sunken) !important; }
/* Target picker */
.uw-modern .dwi-mpp .mpp-target-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.uw-modern .dwi-mpp .mpp-target-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--uwm-border);
    border-radius: 9px;
    background: var(--uwm-surface);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
/* A checked target is one the ceiling has to satisfy — tint the whole row so
   the selection reads at a glance, not one checkbox at a time. */
.uw-modern .dwi-mpp .mpp-target-row:has(.mpp-target-check:checked) {
    background: var(--uwm-pass-soft);
    border-color: var(--uwm-pass-soft);
}
/* Metronic sizes .form-check-input off its .form-check wrapper, which this
   row does not use — size it here so the box matches the row's type scale. */
.uw-modern .dwi-mpp .mpp-target-check {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    border-radius: 5px;
}
.uw-modern .dwi-mpp .mpp-target-name { font-size: 12.5px; color: var(--uwm-text-strong); }
.uw-modern .dwi-mpp .mpp-target-val {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11.5px;
    color: var(--uwm-text-muted);
    font-variant-numeric: tabular-nums;
}
.uw-modern .dwi-mpp .mpp-status { font-size: 11.5px; color: var(--uwm-text-muted); padding: 0 16px 12px; }
.uw-modern .dwi-mpp .mpp-status.is-error { color: var(--uwm-fail); }
.uw-modern .dwi-mpp .mpp-status:empty { display: none; }

/* ── Show the math ──────────────────────────────────────────────
   The panel's reference section: eight headline metrics, each one
   opening into the formula, the ledger it was read off, the worked
   result and the conventions that shaped it. It is read, not acted
   on, so it stays quiet at rest — a flat list of name/value rows,
   monospaced numerals, and no color until a number is negative or a
   line does not reconcile. */
.uw-modern .uw-sm-head { gap: 12px; }
.uw-modern .uw-sm-title { display: inline-flex; align-items: center; gap: 9px; }
.uw-modern .uw-sm-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--uwm-pass-soft);
    /* The tile reads as a "calculated" mark, not as brand chrome: the deep
       positive ink is the one green every theme (white-labels included) keeps,
       and the brand accent would sit badly on a green tint. */
    color: var(--dwi-color-positive, #067647);
    font-size: 12px;
    line-height: 1;
    flex: 0 0 26px;
}
.uw-modern .uw-sm-chip,
.uw-modern .uw-sm-tag {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    background: var(--uwm-surface-sunken);
    color: var(--uwm-text-faint);
    border: 1px solid var(--uwm-border);
}
/* The lede states what the section is and hands over the one control
   it has. Both live above the list, outside its dividers. */
.uw-modern .uw-sm-lede {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--uwm-border);
}
.uw-modern .uw-sm-lede-text {
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--uwm-text-muted);
}
.uw-modern .uw-sm-all {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--uwm-text-muted);
    white-space: nowrap;
    cursor: pointer;
}
.uw-modern .uw-sm-all:hover { color: var(--uwm-text-strong); text-decoration: underline; }
.uw-modern .uw-sm-item + .uw-sm-item { border-top: 1px solid var(--uwm-border); }
.uw-modern .uw-sm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 12px;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    user-select: none;
    transition: background .15s ease;
}
.uw-modern .uw-sm-row:hover { background: var(--uwm-surface-sunken); }
.uw-modern .uw-sm-row-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    min-width: 0;
}
.uw-modern .uw-sm-row-value {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
/* Nothing was modeled — the row still exists, because its absence is
   itself an answer, but it is not a reading. */
.uw-modern .uw-sm-row-value.is-empty { font-weight: 500; color: var(--uwm-text-faint); }
.uw-modern .uw-sm-row-chev {
    font-size: 10px;
    color: var(--uwm-text-faint);
    transition: transform .2s ease;
    justify-self: end;
}
.uw-modern .uw-sm-row:not(.collapsed) .uw-sm-row-chev { transform: rotate(180deg); }
.uw-modern .uw-sm-item--conv .uw-sm-row-label { font-weight: 600; color: var(--uwm-text); }
.uw-modern .uw-sm-detail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 2px 16px 18px;
}
.uw-modern .uw-sm-formula {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    line-height: 1.6;
    color: var(--uwm-text);
    background: var(--uwm-surface-sunken);
    border: 1px solid var(--uwm-border);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}
/* The ledger. Operators sit in their own gutter so the names stay in
   one column and the reader can run down the arithmetic. */
.uw-modern .uw-sm-ledger { display: flex; flex-direction: column; }
.uw-modern .uw-sm-lrow {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 9px;
    padding: 7px 0;
}
.uw-modern .uw-sm-lop {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    color: var(--uwm-text-faint);
    text-align: center;
}
.uw-modern .uw-sm-lname { font-size: 12px; color: var(--uwm-text); min-width: 0; }
.uw-modern .uw-sm-lnote { font-size: 10.5px; color: var(--uwm-text-faint); }
.uw-modern .uw-sm-lval {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 12px;
    font-weight: 500;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.uw-modern .uw-sm-lrow.is-total {
    border-top: 1px solid var(--uwm-border);
    margin-top: 3px;
    padding-top: 9px;
}
.uw-modern .uw-sm-lrow.is-total .uw-sm-lname { font-weight: 600; color: var(--uwm-text-strong); }
.uw-modern .uw-sm-lrow.is-total .uw-sm-lval { font-weight: 600; }
/* The worked result — the same arithmetic, run end to end. */
.uw-modern .uw-sm-result {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11px;
    line-height: 1.6;
    color: var(--uwm-text-strong);
    background: var(--uwm-pass-soft);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}
.uw-modern .uw-sm-result-line + .uw-sm-result-line { margin-top: 6px; }
.uw-modern .uw-sm-eyebrow {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--uwm-text-faint);
    margin-bottom: 7px;
}
.uw-modern .uw-sm-note { font-size: 11.5px; line-height: 1.55; color: var(--uwm-text-muted); }
.uw-modern .uw-sm-note + .uw-sm-note { margin-top: 5px; }
/* A warning, or a ledger that does not reach the figure it should. */
.uw-modern .uw-sm-flag {
    display: grid;
    grid-template-columns: 13px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 2px solid var(--uwm-fail);
    background: var(--uwm-fail-soft);
    font-size: 11px;
    line-height: 1.55;
    color: var(--uwm-fail);
}
.uw-modern .uw-sm-ledger .uw-sm-flag { margin-top: 10px; }
.uw-modern .uw-sm-flag i { font-size: 11px; line-height: 1.5; }
/* Nothing to break down, so the space says why rather than sitting empty. */
.uw-modern .uw-sm-empty {
    border: 1px dashed var(--uwm-border-strong);
    border-radius: 8px;
    padding: 12px;
    font-size: 11.5px;
    line-height: 1.55;
    color: var(--uwm-text-faint);
}
/* The IRR series is a series, not a sum: one signed bar per year,
   scaled to the largest flow, so the shape of the hold reads at a
   glance and year 0 is visibly the only outflow. */
.uw-modern .uw-sm-series { display: flex; flex-direction: column; gap: 6px; }
.uw-modern .uw-sm-yr {
    display: grid;
    grid-template-columns: minmax(46px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}
.uw-modern .uw-sm-yr-label { font-size: 11.5px; color: var(--uwm-text); min-width: 0; }
.uw-modern .uw-sm-yr-track {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--uwm-surface-sunken);
    overflow: hidden;
}
.uw-modern .uw-sm-yr-bar { display: block; height: 100%; border-radius: 999px; background: var(--uwm-pass); }
.uw-modern .uw-sm-yr-bar.is-neg { background: var(--uwm-fail); }
.uw-modern .uw-sm-yr-val {
    font-family: var(--dwi-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
    font-size: 11.5px;
    color: var(--uwm-text-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.uw-modern .uw-sm-yr-val.is-neg { color: var(--uwm-fail); }

/* 1. Always-visible slim scrollbars */
.uw-modern .static_rc,
.uw-modern .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: var(--uwm-border-strong) var(--uwm-surface-sunken);
    scroll-behavior: smooth;
}
.uw-modern .static_rc::-webkit-scrollbar,
.uw-modern .table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.uw-modern .static_rc::-webkit-scrollbar-track,
.uw-modern .table-responsive::-webkit-scrollbar-track {
    background: var(--uwm-surface-sunken);
    border-radius: 8px;
}
.uw-modern .static_rc::-webkit-scrollbar-thumb,
.uw-modern .table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--uwm-border-strong);
    border-radius: 999px;
    border: 2px solid var(--uwm-surface-sunken);
    background-clip: padding-box;
    min-width: 32px;
    min-height: 32px;
}
.uw-modern .static_rc::-webkit-scrollbar-thumb:hover,
.uw-modern .table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: var(--uwm-text-muted);
}
.uw-modern .static_rc::-webkit-scrollbar-corner,
.uw-modern .table-responsive::-webkit-scrollbar-corner {
    background: var(--uwm-surface-sunken);
}

/* 2. Edge-fade scroll shadows. */
.uw-modern .sub_inner_tab .static_rc {
    background-color: var(--uwm-surface);
    background-image:
        linear-gradient(to right, var(--uwm-surface) 30%, rgba(255, 255, 255, 0)),
        linear-gradient(to right, rgba(255, 255, 255, 0), var(--uwm-surface) 70%),
        radial-gradient(farthest-side at 0% 50%, rgba(16, 24, 40, 0.12), rgba(16, 24, 40, 0)),
        radial-gradient(farthest-side at 100% 50%, rgba(16, 24, 40, 0.12), rgba(16, 24, 40, 0));
    background-position: 0 0, 100% 0, 0 0, 100% 0;
    background-repeat: no-repeat;
    background-size: 48px 100%, 48px 100%, 18px 100%, 18px 100%;
    background-attachment: local, local, scroll, scroll;
    padding-left: 0px !important;
}

.uw-modern .static_rc tbody th {
    box-shadow: 6px 0 8px -6px rgba(16, 24, 40, 0.10) !important;
}
.uw-modern .static_rc thead th:first-child {
    box-shadow: 6px 0 8px -6px rgba(16, 24, 40, 0.10);
}

/* ── Rent Roll review — in-place row editor ─────────────────────
   Replaces the modal "Edit unit details" flow with a row that
   turns into inputs in place, mirroring the saved-searches edit
   pattern. Each cell becomes a compact input; the rightmost cell
   carries the save / cancel actions. */
.aip-review-table tr.aip-rr-edit-row {
    background: #F5FBFF;
    box-shadow: inset 0 0 0 1px rgba(var(--kt-primary-rgb), 0.40);
}
.aip-review-table tr.aip-rr-edit-row > td {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    vertical-align: middle;
}
.aip-rr-edit-row .aip-edit-input {
    width: 100%;
    min-width: 0;
    border: 1px solid #DBDFE9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #102F44;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.aip-rr-edit-row .aip-edit-input.text-end { text-align: right; }
.aip-rr-edit-row .aip-edit-input:focus {
    outline: 0;
    border-color: var(--kt-primary);
    box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb), 0.15);
}
.aip-rr-edit-row .aip-edit-input.is-error {
    border-color: #DC3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.aip-rr-edit-row .aip-edit-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='%236F727E'><path d='M3.204 5L8 10.481 12.796 5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 9px 9px;
    padding-right: 24px;
}
.aip-rr-edit-row .aip-edit-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.aip-rr-edit-row .aip-edit-input--sm {
    font-size: 12px;
    padding: 4px 8px;
}
.aip-rr-edit-row .aip-edit-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}
.aip-rr-edit-row .aip-edit-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #DBDFE9;
    background: #fff;
    color: #6F727E;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.aip-rr-edit-row .aip-edit-btn i { font-size: 14px; line-height: 1; }
.aip-rr-edit-row .aip-edit-btn--save {
    background: #50CD89;
    border-color: #50CD89;
    color: #fff;
    box-shadow: 0 1px 3px rgba(80, 205, 137, 0.28);
}
.aip-rr-edit-row .aip-edit-btn--save i {
    color: #fff !important;
}
.aip-rr-edit-row .aip-edit-btn--save:hover:not(:disabled) {
    background: #3DB46E;
    border-color: #3DB46E;
}
.aip-rr-edit-row .aip-edit-btn--cancel:hover:not(:disabled) {
    background: #F9F9F9;
    color: #102F44;
    border-color: #B5B5C3;
}
.aip-rr-edit-row .aip-edit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.aip-rr-edit-row .aip-edit-msg {
    display: block;
    margin-top: 6px;
    color: #DC3545;
    font-size: 11px;
    font-weight: 500;
}


/* =====================================================================   Compare Scenarios modal — clean, minimalistic redesign.
   Everything is scoped under #kt_modal_compare_scenarios so it cannot leak.
   ========================================================================== */
#kt_modal_compare_scenarios {
    --cmp-green: #0b7a4f;
    --cmp-green-strong: #08603e;
    --cmp-green-soft: #e8f4ed;
    --cmp-green-dot: #17b26a;
    --cmp-tint: #f4f9f6;
    --cmp-red: #d92d20;
    --cmp-gold: #f5a623;
    --cmp-text: #1f2733;
    --cmp-text-strong: #101828;
    --cmp-muted: #667085;
    --cmp-faint: #98a2b3;
    --cmp-border: #eef0f3;
    --cmp-border-strong: #e3e6eb;
    --cmp-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
#kt_modal_compare_scenarios .modal-backdrop,
.modal-backdrop.show { background: #0c111d; opacity: .5; }  /* deeper dim than Metronic's .3 so the modal reads as the only live surface */

#kt_modal_compare_scenarios .cmp-dialog { max-width: 1360px; width: 96vw; }
#kt_modal_compare_scenarios .cmp-content {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px -12px rgba(16, 24, 40, .28);
    overflow: hidden;
    max-height: 92vh;
}

/* ---- Header ---- */
#kt_modal_compare_scenarios .cmp-header {
    border: 0;
    padding: 26px 30px 14px;
    align-items: flex-start;
}
#kt_modal_compare_scenarios .cmp-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--cmp-text-strong);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}
#kt_modal_compare_scenarios .cmp-subtitle {
    font-size: 13.5px;
    color: var(--cmp-muted);
    font-weight: 400;
}
#kt_modal_compare_scenarios .cmp-dot-sep { margin: 0 4px; color: var(--cmp-faint); }
#kt_modal_compare_scenarios .cmp-close {
    border: 0;
    background: transparent;
    color: var(--cmp-faint);
    width: 34px; height: 34px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px;
    transition: background .15s, color .15s;
    margin-left: auto;
}
#kt_modal_compare_scenarios .cmp-close:hover { background: #f4f5f7; color: var(--cmp-text); }

/* ---- Toolbar ---- */
#kt_modal_compare_scenarios .cmp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 30px 18px;
    flex-wrap: wrap;
}

/* Filter dropdown */
#kt_modal_compare_scenarios .cmp-filter { position: relative; }
#kt_modal_compare_scenarios .cmp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid var(--cmp-border-strong);
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cmp-text);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
#kt_modal_compare_scenarios .cmp-filter-btn:hover { border-color: #cfd4dc; }
#kt_modal_compare_scenarios .cmp-filter-btn.is-open {
    border-color: var(--cmp-green);
    box-shadow: 0 0 0 3px rgba(11, 122, 79, .12);
}
#kt_modal_compare_scenarios .cmp-filter-icon { font-size: 15px; color: var(--cmp-muted); }
#kt_modal_compare_scenarios .cmp-filter-count {
    background: #f2f4f7;
    color: var(--cmp-muted);
    border-radius: 6px;
    padding: 1px 7px;
    font-size: 12px;
    font-weight: 600;
}
#kt_modal_compare_scenarios .cmp-filter-caret { font-size: 11px; color: var(--cmp-faint); }

#kt_modal_compare_scenarios .cmp-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: 300px;
    background: #fff;
    border: 1px solid var(--cmp-border-strong);
    border-radius: 12px;
    box-shadow: 0 16px 40px -8px rgba(16, 24, 40, .22);
    padding: 10px;
}
#kt_modal_compare_scenarios .cmp-filter-panel[hidden] { display: none; }
#kt_modal_compare_scenarios .cmp-filter-search {
    position: relative;
    margin-bottom: 8px;
}
#kt_modal_compare_scenarios .cmp-filter-search .bi-search {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--cmp-faint); font-size: 13px;
}
#kt_modal_compare_scenarios .cmp-filter-search-input {
    width: 100%;
    border: 1px solid var(--cmp-border-strong);
    border-radius: 8px;
    padding: 8px 10px 8px 32px;
    font-size: 13px;
    color: var(--cmp-text);
    outline: none;
}
#kt_modal_compare_scenarios .cmp-filter-search-input:focus {
    border-color: var(--cmp-green);
    box-shadow: 0 0 0 3px rgba(11, 122, 79, .1);
}
#kt_modal_compare_scenarios .cmp-filter-list { max-height: 230px; overflow-y: auto; }
#kt_modal_compare_scenarios .cmp-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--cmp-text);
    margin: 0;
}
#kt_modal_compare_scenarios .cmp-filter-item:hover { background: #f7f8fa; }
#kt_modal_compare_scenarios .cmp-filter-all {
    border-bottom: 1px solid var(--cmp-border);
    border-radius: 8px 8px 0 0;
    margin-bottom: 4px;
    padding-bottom: 10px;
}
#kt_modal_compare_scenarios .cmp-filter-cb {
    width: 18px; height: 18px;
    accent-color: var(--cmp-green);
    cursor: pointer;
    flex: 0 0 auto;
}
#kt_modal_compare_scenarios .cmp-filter-item-name { flex: 1 1 auto; }
#kt_modal_compare_scenarios .cmp-filter-star { color: var(--cmp-gold); font-size: 12px; }

/* Legend */
#kt_modal_compare_scenarios .cmp-legend {
    display: flex; align-items: center; gap: 20px;
    font-size: 13px; color: var(--cmp-muted);
}
#kt_modal_compare_scenarios .cmp-legend-item { display: inline-flex; align-items: center; gap: 7px; }
#kt_modal_compare_scenarios .cmp-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#kt_modal_compare_scenarios .cmp-legend-best { background: var(--cmp-green-dot); }
#kt_modal_compare_scenarios .cmp-legend-neg { background: var(--cmp-red); }

/* ---- Body / table ---- */
#kt_modal_compare_scenarios .cmp-body { padding: 0 30px; }
#kt_modal_compare_scenarios .cmp-table-wrap { overflow-x: auto; }
#kt_modal_compare_scenarios .cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--cmp-mono);
    font-variant-numeric: tabular-nums;
}
#kt_modal_compare_scenarios .cmp-table th,
#kt_modal_compare_scenarios .cmp-table td {
    padding: 11px 16px;
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}

/* head */
#kt_modal_compare_scenarios .cmp-head th {
    position: sticky; top: 0;
    background: #fff;
    z-index: 2;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cmp-faint);
    border-bottom: 1px solid var(--cmp-border-strong);
    padding-top: 8px; padding-bottom: 12px;
}
#kt_modal_compare_scenarios .cmp-metric-head,
#kt_modal_compare_scenarios .cmp-metric {
    text-align: left;
    white-space: normal;
}
#kt_modal_compare_scenarios .cmp-head .cmp-col-default {
    color: var(--cmp-green);
}
#kt_modal_compare_scenarios .cmp-star { color: var(--cmp-gold); font-size: 11px; margin-left: 6px; }

/* section header rows */
#kt_modal_compare_scenarios .cmp-section td {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--cmp-green);
    padding: 22px 16px 8px;
    border: 0;
}
#kt_modal_compare_scenarios .cmp-section + .cmp-row td,
#kt_modal_compare_scenarios .cmp-section + .cmp-row th { border-top: 0; }

/* metric rows */
#kt_modal_compare_scenarios .cmp-row th,
#kt_modal_compare_scenarios .cmp-row td {
    border-top: 1px solid var(--cmp-border);
    font-size: 13.5px;
}
#kt_modal_compare_scenarios .cmp-metric {
    color: var(--cmp-muted);
    font-weight: 500;
    min-width: 240px;
}
#kt_modal_compare_scenarios .cmp-val {
    color: var(--cmp-text);
    font-weight: 500;
}
#kt_modal_compare_scenarios .cmp-col-default { background: var(--cmp-tint); }

/* best-in-row pill */
#kt_modal_compare_scenarios .cmp-val.cmp-best .cmp-cell {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--cmp-green-soft);
    color: var(--cmp-green-strong);
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
#kt_modal_compare_scenarios .cmp-val.cmp-best .cmp-cell::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--cmp-green-dot);
    flex: 0 0 auto;
}
/* negative values */
#kt_modal_compare_scenarios .cmp-val.cmp-neg .cmp-cell { color: var(--cmp-red); }
#kt_modal_compare_scenarios .cmp-val.cmp-neg.cmp-best .cmp-cell { color: var(--cmp-green-strong); }

/* inline percentage badge */
#kt_modal_compare_scenarios .cmp-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    background: #eef1f5;
    color: var(--cmp-muted);
}
#kt_modal_compare_scenarios .cmp-badge-danger { background: #fdecea; color: var(--cmp-red); }

/* ---- Footer ---- */
#kt_modal_compare_scenarios .cmp-footer {
    border-top: 1px solid var(--cmp-border);
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
#kt_modal_compare_scenarios .cmp-footer-hint { font-size: 12.5px; color: var(--cmp-faint); }
#kt_modal_compare_scenarios .cmp-footer-actions { display: flex; gap: 10px; }
#kt_modal_compare_scenarios .cmp-btn {
    border-radius: 9px;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s, border-color .15s, color .15s;
}
#kt_modal_compare_scenarios .cmp-btn-ghost {
    background: #fff;
    border-color: var(--cmp-border-strong);
    color: var(--cmp-text);
}
#kt_modal_compare_scenarios .cmp-btn-ghost:hover { border-color: #cfd4dc; background: #fafbfc; }
#kt_modal_compare_scenarios .cmp-btn-primary { background: var(--cmp-green); color: #fff; }
#kt_modal_compare_scenarios .cmp-btn-primary:hover { background: var(--cmp-green-strong); }

/* ---- Skeleton ---- */
#kt_modal_compare_scenarios .cmp-skeleton { padding: 8px 0 20px; }
#kt_modal_compare_scenarios .cmp-skel-section { width: 200px; height: 14px; margin: 14px 0 18px; }
#kt_modal_compare_scenarios .cmp-skel-row {
    display: flex; align-items: center; gap: 24px; margin-bottom: 14px;
}
#kt_modal_compare_scenarios .cmp-skel-label { flex: 0 0 220px; height: 12px; border-radius: 6px; }
#kt_modal_compare_scenarios .cmp-skel-cell { flex: 1; height: 24px; border-radius: 8px; }

@media (max-width: 640px) {
    #kt_modal_compare_scenarios .cmp-header,
    #kt_modal_compare_scenarios .cmp-toolbar,
    #kt_modal_compare_scenarios .cmp-body,
    #kt_modal_compare_scenarios .cmp-footer { padding-left: 16px; padding-right: 16px; }
    #kt_modal_compare_scenarios .cmp-footer { flex-direction: column; align-items: stretch; }
    #kt_modal_compare_scenarios .cmp-footer-actions { justify-content: flex-end; }
}

/* Freeze the metric column when the table scrolls horizontally (>5 scenarios
   or narrow viewports). */
#kt_modal_compare_scenarios .cmp-metric-head,
#kt_modal_compare_scenarios .cmp-metric {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 1px 0 0 var(--cmp-border);
}
#kt_modal_compare_scenarios .cmp-metric-head { z-index: 3; }
#kt_modal_compare_scenarios .cmp-section .cmp-section-cell { position: relative; }

/* =====================================================================   CapEx Draw Schedule — Phase 2D redesign (presentation only; the .capex_draw_*
   hooks keep the existing save/validation/JS wiring). Greens per the approved
   mockup. Scoped under .capex_draw_schedule so nothing else is affected.
   ============================================================================ */
.capex_draw_schedule{
  --cxd-green:#2f6e54; --cxd-green-d:#285f49; --cxd-green-soft:#eef5f0;
  --cxd-green-bar:#357a5b; --cxd-amber:#b07d2e; --cxd-amber-soft:#fbf1de;
  --cxd-ink:#16202b; --cxd-mut:#8a93a3; --cxd-line:#e9ecf1;
  background:#fff; border:1px solid #e7ebf0; border-radius:16px; padding:0;
  box-shadow:0 1px 2px rgba(16,47,68,.04); margin:1.25rem 0; overflow:hidden;
  font-feature-settings:"tnum" 1;
}
.capex_draw_schedule .cxd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:15px 20px 13px;border-bottom:1px solid var(--cxd-line);cursor:pointer;}
.capex_draw_schedule .cxd-head.collapsed{border-bottom:0;}
.capex_draw_schedule .cxd-head-l{display:flex;gap:14px;}
.capex_draw_schedule .cxd-head-r{flex:0 0 auto;display:flex;align-items:center;gap:14px;}
.capex_draw_schedule .cxd-chev{font-size:14px;color:var(--cxd-mut);transition:transform .15s ease;}
.capex_draw_schedule .cxd-head:not(.collapsed) .cxd-chev{transform:rotate(180deg);}
.capex_draw_schedule .cxd-ic{flex:0 0 auto;width:32px;height:32px;border-radius:9px;background:var(--cxd-green-soft);color:var(--cxd-green);display:flex;align-items:center;justify-content:center;font-size:15px;}
.capex_draw_schedule .cxd-title{font-size:15px;font-weight:700;color:var(--cxd-ink);display:flex;align-items:center;gap:10px;}
.capex_draw_schedule .cxd-optional{font-size:10px;font-weight:700;letter-spacing:.06em;color:#9aa3b1;background:#f1f3f6;border-radius:5px;padding:3px 7px;}
.capex_draw_schedule .cxd-sub{font-size:12px;color:var(--cxd-mut);margin-top:4px;max-width:62ch;line-height:1.45;}
.capex_draw_schedule .capex_draw_status{flex:0 0 auto;font-size:11.5px;font-weight:600;border-radius:999px;padding:5px 11px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;}
.capex_draw_schedule .capex_draw_status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;}
.capex_draw_schedule .capex_draw_status.is-ok{background:var(--cxd-green-soft);color:var(--cxd-green);}
.capex_draw_schedule .capex_draw_status.is-warn{background:var(--cxd-amber-soft);color:var(--cxd-amber);}
.capex_draw_schedule .cxd-stats{display:flex;gap:34px;padding:14px 20px 4px;}
.capex_draw_schedule .cxd-stat-l{font-size:10px;font-weight:600;letter-spacing:.07em;color:var(--cxd-mut);text-transform:uppercase;}
.capex_draw_schedule .cxd-stat-v{font-size:21px;font-weight:700;color:var(--cxd-ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em;margin-top:2px;}
.capex_draw_schedule.is-under .capex_draw_difference{color:var(--cxd-amber);}
.capex_draw_schedule .cxd-progress{height:7px;border-radius:999px;background:#eef0f3;margin:10px 20px 0;overflow:hidden;}
.capex_draw_schedule .cxd-progress-fill{height:100%;border-radius:999px;background:var(--cxd-green);width:0;transition:width .15s ease;}
.capex_draw_schedule.is-under .cxd-progress{background-image:repeating-linear-gradient(45deg,#f6ead2 0,#f6ead2 7px,#fbf5e9 7px,#fbf5e9 14px);}
.capex_draw_schedule.is-under .cxd-progress-fill{background:var(--cxd-amber);}
.capex_draw_schedule .cxd-legend{display:flex;gap:18px;padding:8px 20px 13px;font-size:11.5px;color:var(--cxd-mut);}
.capex_draw_schedule .cxd-legend i{width:11px;height:11px;border-radius:3px;display:inline-block;margin-right:6px;vertical-align:-1px;}
.capex_draw_schedule .cxd-legend i.sched{background:var(--cxd-green);}
.capex_draw_schedule .cxd-legend i.rem{background:#f0e2c4;}
.capex_draw_schedule .cxd-toolbar{display:flex;align-items:center;gap:8px;padding:11px 20px;border-top:1px solid var(--cxd-line);}
.capex_draw_schedule .cxd-qf-label{font-size:10px;font-weight:700;letter-spacing:.07em;color:var(--cxd-mut);margin-right:4px;}
.capex_draw_schedule .capex_draw_qf,.capex_draw_schedule .capex_draw_clear{font-size:12px;font-weight:600;color:#48515f;background:#fff;border:1px solid #dfe3e9;border-radius:8px;padding:6px 11px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;transition:.12s;}
.capex_draw_schedule .capex_draw_qf:hover,.capex_draw_schedule .capex_draw_clear:hover{border-color:#c7cdd6;background:#fafbfc;}
.capex_draw_schedule .capex_draw_qf.is-active{color:var(--cxd-green);border-color:var(--cxd-green);box-shadow:0 0 0 1px var(--cxd-green) inset;}
.capex_draw_schedule .capex_draw_clear{margin-left:auto;}
.capex_draw_schedule .cxd-grid{display:grid;grid-template-columns:1fr 300px;}
.capex_draw_schedule .cxd-left{padding:8px 6px 12px 20px;}
/* Cap the rows area so long holds (e.g. 20+ years) scroll instead of stretching the card. */
.capex_draw_schedule .cxd-rows{max-height:360px;overflow-y:auto;overflow-x:hidden;padding-right:4px;}
.capex_draw_schedule .cxd-thead{position:sticky;top:0;z-index:2;background:#fff;display:grid;grid-template-columns:100px 170px 1fr 110px 100px;align-items:center;gap:10px;padding:5px 10px;font-size:10px;font-weight:600;letter-spacing:.06em;color:var(--cxd-mut);text-transform:uppercase;}
.capex_draw_schedule .cxd-thead .ta-r{text-align:right;}
.capex_draw_schedule .cxd-row{display:grid;grid-template-columns:100px 170px 1fr 110px 100px;align-items:center;gap:10px;padding:7px 10px;}
.capex_draw_schedule .cxd-row.is-active{background:var(--cxd-green-soft);}
.capex_draw_schedule .cxd-period-y{font-size:13px;font-weight:600;color:var(--cxd-ink);}
.capex_draw_schedule .cxd-period-sub{font-size:11px;color:var(--cxd-mut);}
.capex_draw_schedule .cxd-draw{position:relative;display:flex;align-items:center;}
.capex_draw_schedule .cxd-draw .cxd-dollar{position:absolute;left:13px;color:var(--cxd-mut);font-size:14px;pointer-events:none;}
.capex_draw_schedule .capex_draw_input{width:100%;border:1px solid #dde2e9;border-radius:8px;padding:7px 11px;font-size:13px;text-align:right;color:var(--cxd-ink);font-variant-numeric:tabular-nums;background:#fff;}
.capex_draw_schedule .capex_draw_input:focus{outline:none;border-color:var(--cxd-green);box-shadow:0 0 0 3px rgba(47,110,84,.12);}
.capex_draw_schedule .capex_draw_input:disabled{background:#f6f7f9;color:#9aa3b1;}
.capex_draw_schedule .cxd-bar{height:4px;border-radius:999px;background:transparent;}
.capex_draw_schedule .cxd-bar-fill{height:4px;border-radius:999px;background:var(--cxd-green-bar);width:0;transition:width .15s ease;}
.capex_draw_schedule .capex_draw_cumulative{text-align:right;font-size:13px;font-weight:600;color:var(--cxd-green);font-variant-numeric:tabular-nums;}
.capex_draw_schedule .capex_draw_remaining{text-align:right;font-size:13px;color:var(--cxd-mut);font-variant-numeric:tabular-nums;}
.capex_draw_schedule .cxd-dist{border-left:1px solid var(--cxd-line);padding:16px 20px;}
.capex_draw_schedule .cxd-dist-title{font-size:11px;font-weight:700;letter-spacing:.07em;color:var(--cxd-mut);text-transform:uppercase;}
.capex_draw_schedule .cxd-dist-sub{font-size:12px;color:var(--cxd-mut);margin:5px 0 13px;line-height:1.4;}
.capex_draw_schedule .capex_draw_distchart{display:flex;align-items:flex-end;gap:3px;height:120px;}
/* min-width:0 keeps every column the SAME width — otherwise a 2-digit label (10–20) would widen
   its flex column and make those bars look bigger than the single-digit ones. */
.capex_draw_schedule .capex_draw_distchart .cxd-dbar-wrap{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;}
.capex_draw_schedule .capex_draw_distchart .cxd-dbar{width:100%;max-width:14px;border-radius:4px 4px 0 0;background:var(--cxd-green);min-height:2px;}
.capex_draw_schedule .capex_draw_distchart .cxd-dbar.zero{background:#dfeae3;}
.capex_draw_schedule .capex_draw_distchart .cxd-dlabel{font-size:9px;line-height:1;color:#aab2bf;font-variant-numeric:tabular-nums;width:100%;text-align:center;overflow:hidden;}
.capex_draw_schedule .cxd-dist-stats{border-top:1px solid var(--cxd-line);margin-top:14px;padding-top:12px;}
.capex_draw_schedule .cxd-dist-stats .cxd-dstat{display:flex;justify-content:space-between;font-size:12px;color:#5a6473;padding:3px 0;}
.capex_draw_schedule .cxd-dist-stats .cxd-dstat b{color:var(--cxd-ink);font-variant-numeric:tabular-nums;}
.capex_draw_schedule .cxd-foot{display:flex;align-items:center;gap:14px;padding:12px 20px;border-top:1px solid var(--cxd-line);}
/* Note hugs the left; the warn + Save button group is pushed to the far right. */
.capex_draw_schedule .cxd-foot-note{font-size:12px;color:var(--cxd-mut);display:flex;align-items:center;gap:7px;margin-right:auto;}
.capex_draw_schedule .capex_draw_warn{font-size:13px;color:var(--cxd-amber);font-weight:500;}
.capex_draw_schedule .capex_draw_warn a{color:var(--cxd-amber);font-weight:600;text-decoration:underline;cursor:pointer;}
.capex_draw_schedule .capex_draw_save{font-size:13px;font-weight:600;color:#fff;background:var(--cxd-green);border:none;border-radius:9px;padding:9px 18px;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:.12s;}
.capex_draw_schedule .capex_draw_save:hover{background:var(--cxd-green-d);}
.capex_draw_schedule .capex_draw_save:disabled{background:#b9c2cc;cursor:not-allowed;}
@media (max-width:1100px){ .capex_draw_schedule .cxd-grid{grid-template-columns:1fr;} .capex_draw_schedule .cxd-dist{border-left:none;border-top:1px solid var(--cxd-line);} .capex_draw_schedule .cxd-thead,.capex_draw_schedule .cxd-row{grid-template-columns:96px 1fr 80px 96px 92px;gap:8px;} }

/* Assumptions Summary toggle label — show the verb matching the collapse state.
   Both labels are in the DOM; the header (.dwi-as-head) carries aria-expanded,
   which Bootstrap flips on toggle and the server sets correctly on load, so the
   right one shows live and after reload. Theme-agnostic (works with/without the
   .dwi-as emerald skin). The chevron rotation is handled by the dwi theme. */
.dwi-as-head .dwi-as-lbl-show { display: none; }
.dwi-as-head[aria-expanded="false"] .dwi-as-lbl-hide { display: none; }
.dwi-as-head[aria-expanded="false"] .dwi-as-lbl-show { display: inline; }

/* Google Places autocomplete overlay — keep it above modals/menus.
   (Moved out of the layout2.html inline <style>.) */
.pac-container { z-index: 10000 !important; }

/* Profile dropdown (header avatar menu): the wallet emphasis
   rows had their colored background on the full-width menu-item wrapper, so
   they ran edge-to-edge with square corners and collided with the rounded
   menu border. Turn them into tidy inset rounded pills, keeping their icons
   aligned with the plain rows (0.75rem margin + 1.75rem link padding =
   2.5rem, matching px-10). Scoped to the profile menu so no other KTMenu is
   affected. (Moved out of the layout2.html inline <style>.) */
.profile-dropdown .menu-item.dwi-emph {
    margin: 2px 12px;
    border-radius: 0.6rem;
    overflow: hidden;
}
.profile-dropdown .menu-item.dwi-emph > .menu-link {
    padding-left: 1.75rem !important;
    padding-right: 1.75rem !important;
}
.profile-dropdown .menu-item.dwi-emph > .menu-link:hover {
    background-color: transparent !important;
}

/* ===== Advanced filter UX: modal basics strip + filter-summary chips ===== */
.filter-basics-strip {
    background: #F8FAFC;
    border: 1px solid #EEF0F4;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.filter-basics-strip__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}
.fb-dropdown { position: relative; flex: 1 1 210px; min-width: 180px; }
.fb-dropdown__btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    background: #fff;
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px; font-weight: 600; color: #252F4A;
    cursor: pointer; text-align: left;
    transition: border-color .12s ease;
}
.fb-dropdown__btn:hover { border-color: #B5B5C3; }
.fb-dropdown__btn .fb-count { color: #6F727E; font-weight: 500; }
.fb-dropdown__btn > i { color: #99A1B7; font-size: 12px; transition: transform .15s ease; flex-shrink: 0; }
.fb-dropdown.is-open .fb-dropdown__btn > i { transform: rotate(180deg); }
.fb-dropdown__panel {
    position: absolute;
    top: calc(100% + 4px); left: 0;
    z-index: 20;
    width: 300px; max-width: 92vw;
    background: #fff;
    border: 1px solid #E1E3EA;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    padding: 12px 14px;
    max-height: 340px; overflow: auto;
    display: none;
}
.fb-dropdown.is-open .fb-dropdown__panel { display: block; }
.fb-dropdown__panel .children { display: none; }
.fb-dropdown__panel .form-check { margin-bottom: 5px; }
.fb-dropdown__panel .m-toggle-children { transition: transform .15s ease; }
.fb-dropdown__panel .m-toggle-children.rotate-180 { transform: rotate(180deg); }

.fb-inline { display: flex; flex-direction: column; gap: 3px; flex: 1 1 130px; min-width: 120px; }
.fb-inline label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #99A1B7; font-weight: 700; }
.fb-inline input {
    border: 1px solid #DBDFE9;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px; font-weight: 600; color: #252F4A;
}
.fb-inline input:focus { outline: 0; border-color: var(--kt-primary); box-shadow: 0 0 0 3px rgba(var(--kt-primary-rgb),0.15); }

/* Filter summary chips — shared by the modal and the main page */
.filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.filter-summary:empty::before {
    content: attr(data-empty);
    color: #99A1B7; font-size: 12px; font-style: italic;
}
.filter-summary__label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: #6F727E; margin-right: 2px;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(var(--kt-primary-rgb), 0.10);
    color: #0E6E59;
    border: 1px solid rgba(var(--kt-primary-rgb), 0.28);
    border-radius: 999px;
    padding: 3px 6px 3px 11px;
    font-size: 11.5px; font-weight: 600;
    white-space: nowrap;
}
.filter-chip b { font-weight: 700; }
.filter-chip__x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: rgba(var(--kt-primary-rgb), 0.18);
    cursor: pointer; font-size: 8px; line-height: 1; color: #0E6E59;
}
.filter-chip__x:hover { background: rgba(var(--kt-primary-rgb), 0.36); }
.filter-summary--page { margin-top: 0; }
/* Clear button sits inline with the active-filter chips (only rendered when at
   least one real filter is selected). Sized to match the chips. */
.filter-summary__clear { padding: 3px 12px; font-size: 11.5px; margin-left: 4px; }

/* ══════════════════════════════════════════════════════════════════
   Onboarding (native, action-driven) — welcome modal + dashboard
   checklist. Matches the .db-* dashboard family; brand colors flow
   through the same --kt-primary tokens the theme skins override.
   ══════════════════════════════════════════════════════════════════ */

/* Welcome modal — one goal per row (list, not a card grid). Brand accent
   flows through --kt-primary so white-label themes re-skin it for free. */
.db-onb-dialog { max-width: 640px; }
.db-onb-modal { border: 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(16,24,40,0.18); }
.db-onb-modal-head {
    align-items: flex-start;
    border-bottom: 0;
    padding: 30px 32px 22px;
}
.db-onb-eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; font-weight: 500; letter-spacing: 1.4px;
    text-transform: uppercase; color: #8b909c;
    margin: 0 0 8px 0;
}
.db-onb-modal-title {
    font-size: 24px; font-weight: 700; color: #14161c;
    letter-spacing: -0.5px; margin: 0 0 8px 0;
}
.db-onb-modal-sub {
    font-size: 14px; color: #6f727e; margin: 0; line-height: 1.55;
    max-width: 44ch;
}
.db-onb-modal-body { padding: 0; }
.db-onb-rows { border-top: 1px solid #eceef2; }
.db-onb-rowform { margin: 0; }
.db-onb-rowform + .db-onb-rowform .db-onb-row { border-top: 1px solid #eceef2; }

/* The row IS the submit button: native Enter/Space and native focus handling. */
.db-onb-row {
    display: flex; align-items: flex-start; gap: 14px;
    width: 100%; text-align: left;
    padding: 20px 26px 20px 30px;
    background: #fff;
    border: 0;
    cursor: pointer;
    transition: background-color 0.15s;
}
.db-onb-row:hover { background: #f7f8fa; }
/* Keyboard affordance only — a hairline tint, not a ring. The first row is
   focused programmatically on open, so a heavy outline would read as a
   permanent box around the recommended option. */
.db-onb-row:focus-visible {
    outline: 1px solid rgba(var(--kt-primary-rgb), 0.30);
    outline-offset: -1px;
}
/* The tint marks the row that HAS FOCUS, not a fixed row: it starts on the
   recommended row (which is what opens focused) and the focusin handler in
   home.html moves the class as the arrow keys move focus. */
.db-onb-row--active { background: rgba(var(--kt-primary-rgb), 0.045); }
.db-onb-row--active:hover { background: rgba(var(--kt-primary-rgb), 0.075); }
.db-onb-row-icon {
    flex: 0 0 auto;
    width: 38px; height: 38px; margin-top: 1px;
    background: #fff;
    border: 1px solid #e6e8ee;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.db-onb-row-icon i { font-size: 16px; color: var(--kt-primary) !important; }
.db-onb-row-main { flex: 1 1 auto; min-width: 0; display: block; }
.db-onb-row-head {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 5px;
}
.db-onb-row-title {
    font-size: 15px; font-weight: 700; color: #14161c;
    letter-spacing: -0.2px;
}
.db-onb-row-badge {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px; font-weight: 500; letter-spacing: 0.9px;
    text-transform: uppercase;
    padding: 3px 7px; border-radius: 4px;
    background: #f2f0e9; color: #8a7a4e;
}
.db-onb-row-badge--lead {
    background: rgba(var(--kt-primary-rgb), 0.12);
    color: var(--kt-primary);
}
.db-onb-row-desc {
    display: block;
    font-size: 13.5px; color: #5f636e; line-height: 1.55;
    margin-bottom: 8px;
}
.db-onb-row-meta {
    display: block;
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11.5px; color: #9aa0ad; letter-spacing: 0.1px;
}
.db-onb-row-go {
    flex: 0 0 auto; align-self: center;
    color: #b6bcc8; font-size: 15px; line-height: 1;
    transition: color 0.15s, transform 0.15s;
}
.db-onb-row-go i { font-size: 15px; color: inherit !important; }
.db-onb-row:hover .db-onb-row-go { color: var(--kt-primary); transform: translateX(2px); }
.db-onb-row--active .db-onb-row-go { color: var(--kt-primary); }

.db-onb-modal-foot {
    border-top: 1px solid #eceef2;
    padding: 14px 26px 14px 30px;
    justify-content: space-between; flex-wrap: nowrap; gap: 12px;
}
.db-onb-hints {
    font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; color: #9aa0ad; display: flex; align-items: center; gap: 5px;
}
.db-onb-key {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 5px;
    background: #fff; border: 1px solid #e2e5ec;
    border-bottom-width: 2px; border-radius: 5px;
    font-family: inherit; font-size: 10.5px; color: #6f727e;
}
.db-onb-skip {
    background: none; border: 0; cursor: pointer;
    font-size: 12.5px; font-weight: 500; color: #6f727e;
    text-decoration: underline; text-underline-offset: 3px;
    white-space: nowrap;
}
.db-onb-skip:hover { color: #14161c; }
@media (max-width: 575px) {
    .db-onb-modal-head { padding: 24px 20px 18px; }
    .db-onb-row { padding: 18px 16px 18px 20px; gap: 12px; }
    .db-onb-row-icon { width: 32px; height: 32px; }
    .db-onb-modal-foot { padding: 12px 18px; flex-wrap: wrap; }
    .db-onb-hints { display: none; }
    .db-onb-modal-foot > form { width: 100%; text-align: center; }
}

/* Dashboard checklist card */
.db-onb-checklist {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
    padding: 18px 20px 16px;
}
.db-onb-checklist-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.db-onb-checklist-title {
    font-size: 15px; font-weight: 700; color: #102F44;
    margin: 0 0 2px 0; letter-spacing: -0.2px;
}
.db-onb-checklist-title i { color: var(--kt-primary); }
.db-onb-checklist-sub { font-size: 12.5px; color: #6f727e; margin: 0 0 10px 0; }
.db-onb-dismiss-form { margin: 0; }
.db-onb-dismiss {
    background: none; border: 0; cursor: pointer;
    color: #9aa0ad; font-size: 12px; line-height: 1; padding: 4px;
}
.db-onb-dismiss:hover { color: #6f727e; }
.db-onb-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.db-onb-progress-track {
    flex: 1; height: 6px; border-radius: 3px;
    background: #eef0f4; overflow: hidden;
}
.db-onb-progress-fill {
    height: 100%; border-radius: 3px;
    background: var(--kt-primary);
    transition: width 0.3s ease;
}
.db-onb-progress-label { font-size: 11.5px; font-weight: 600; color: #6f727e; }
.db-onb-steps {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 6px 18px;
    padding: 0; margin: 0 0 14px 0;
}
.db-onb-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #5e6278; }
.db-onb-step i { font-size: 13px; color: #c3c8d4; }
.db-onb-step.done { color: #9aa0ad; text-decoration: line-through; text-decoration-color: #c3c8d4; }
.db-onb-step.done i { color: var(--kt-primary); }
.db-onb-continue {
    display: inline-flex; align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--kt-primary);
    color: #fff; font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.db-onb-continue:hover { opacity: 0.9; color: #fff; }
@media (max-width: 767px) {
    .db-onb-steps { flex-direction: column; gap: 8px; }
}

/* ── Sample selection modal (#dwi_sample_deal_modal) ──
   A catalogue surface, not a form: a compact head + question, a scrolling
   card grid, and a foot. Sizing, type scale and chrome deliberately mirror
   the New Deal intake modal (themes/theme-dealworthit-intake-modal.css) —
   the two are sibling entry points and opened back-to-back from the same
   dashboard, so they must read as one component family, not two dialogs at
   different scales. Everything is on the --dwi-* tokens (so a white-label
   brand recolors it by theme file alone) and the numeric figures on the
   cards are set in the mono face, matching the report and underwrite
   surfaces where the same numbers appear. */
/* 900px is the intake modal's --wide shell: the same width its Single
   Family step uses for a three-across card row, which is what this grid is.
   No fixed height — the dialog sizes to its content and Bootstrap's
   scrollable body takes over only when the viewport is genuinely short. */
#dwi_sample_deal_modal .modal-dialog {
    width: calc(100vw - 48px);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.db-smp-modal {
    border: 1px solid var(--dwi-color-border);
    border-radius: 14px;
    box-shadow: 0 24px 64px -16px rgba(20, 40, 30, 0.32);
    overflow: hidden;
}
.db-smp-head {
    display: flex; align-items: center; gap: 20px;
    padding: 18px 20px 18px 28px;
    border-bottom: 1px solid var(--dwi-color-line-soft);
}
.db-smp-eyebrow, .db-smp-count {
    font-family: var(--dwi-font-mono);
    font-size: 12.5px; font-weight: 600; text-transform: uppercase;
}
.db-smp-eyebrow { color: var(--dwi-color-muted-soft); letter-spacing: 0.14em; margin-right: auto; }
.db-smp-count   { color: var(--dwi-color-muted-soft); letter-spacing: 0.06em; }
.db-smp-x {
    flex: none;
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--dwi-color-border);
    border-radius: 100px;
    background: var(--dwi-color-surface);
    color: var(--dwi-color-muted);
    padding: 0;
    transition: border-color 0.15s, color 0.15s;
}
.db-smp-x:hover { border-color: var(--dwi-color-muted-soft); color: var(--dwi-color-text); }
.db-smp-x i { font-size: 15px !important; color: inherit !important; }

.db-smp-intro { padding: 24px 28px 0; }
.db-smp-title {
    margin: 0;
    font-size: 18px; font-weight: 600; line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--dwi-color-text);
}
.db-smp-lede {
    margin: 4px 0 0;
    font-size: 13.5px; line-height: 1.5;
    color: var(--dwi-color-muted);
    max-width: 68ch;
}

#dwi_sample_deal_modal .db-smp-body { padding: 20px 28px 4px; }
.db-smp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

/* Card — the whole tile is the link to /sample-deal/{slug}. */
.db-smp-card {
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 18px 16px;
    background: var(--dwi-color-surface);
    border: 1px solid var(--dwi-color-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.db-smp-card:hover {
    border-color: rgba(var(--dwi-color-primary-rgb), 0.30);
    background: var(--dwi-color-rail);
    box-shadow: 0 2px 10px rgba(16, 22, 20, 0.05);
    text-decoration: none;
}
.db-smp-tile {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    margin-bottom: 10px;
    border-radius: 9px;
    background: var(--dwi-color-hover);
    transition: background 0.16s;
}
.db-smp-card:hover .db-smp-tile { background: var(--dwi-color-primary-soft); }
.db-smp-tile i { font-size: 18px !important; color: var(--dwi-color-primary-strong) !important; }
.db-smp-titlerow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.db-smp-name {
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
    color: var(--dwi-color-text);
}
.db-smp-badge {
    font-family: var(--dwi-font-mono);
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 100px;
    background: var(--dwi-color-warning-soft); color: var(--dwi-color-warning);
}
.db-smp-badge--brand { background: var(--dwi-color-primary-soft); color: var(--dwi-color-primary-strong); }
.db-smp-desc {
    flex: 1;
    margin-top: 10px;
    font-size: 13px; line-height: 1.5;
    color: var(--dwi-color-muted);
}
.db-smp-open {
    margin-top: 14px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--dwi-color-primary);
}
.db-smp-open i { font-size: 13px !important; color: inherit !important; transition: transform 0.16s; }
.db-smp-card:hover .db-smp-open i { transform: translateX(3px); }

/* Foot — the create-your-own bar plus the catalogue-wide disclaimer. The bar
   is the mirror image of the intake modal's .dwi-im-sample row (which offers
   this catalogue), so the two hand-offs look like the same control. */
.db-smp-foot { padding: 20px 28px 24px; }
.db-smp-linkbar {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; text-align: center;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--dwi-color-border);
    border-radius: 10px;
    background: var(--dwi-color-rail);
}
.db-smp-linkbar-t { font-size: 13.5px; line-height: 1.5; color: var(--dwi-color-muted); }
.db-smp-linkcta {
    border: 0; background: none; padding: 0;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 600;
    color: var(--dwi-color-primary);
}
.db-smp-linkcta:hover { color: var(--dwi-color-primary-strong); }
.db-smp-linkcta i { font-size: 12px !important; color: inherit !important; transition: transform 0.16s; }
.db-smp-linkcta:hover i { transform: translateX(3px); }
.db-smp-disclaim {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 14px 0 0;
    font-size: 12px; line-height: 1.5;
    color: var(--dwi-color-muted-soft);
}
.db-smp-disclaim i { flex: none; margin-top: 2px; font-size: 12px !important; color: inherit !important; }

@media (max-width: 880px) { .db-smp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .db-smp-grid { grid-template-columns: 1fr; }
    .db-smp-head { padding: 14px 16px; }
    .db-smp-intro, .db-smp-foot,
    #dwi_sample_deal_modal .db-smp-body { padding-left: 20px; padding-right: 20px; }
}

/* Read-only banner on the sample analysis page */
.db-smp-banner {
    background: rgba(var(--kt-primary-rgb), 0.06);
    border: 1px solid rgba(var(--kt-primary-rgb), 0.25);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.db-smp-banner-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.db-smp-banner-title { font-size: 17px; font-weight: 700; color: #102F44; margin: 0; letter-spacing: -0.3px; }
.db-smp-ro-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(var(--kt-primary-rgb), 0.12);
    color: var(--kt-primary);
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    letter-spacing: 0.2px; white-space: nowrap;
}
.db-smp-banner-sub { font-size: 13px; color: #5e6278; margin: 4px 0 0; line-height: 1.5; }
.db-smp-banner-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.db-smp-banner-actions form { margin: 0; }
.db-smp-back { font-size: 12.5px; font-weight: 600; color: #6f727e; text-decoration: none; white-space: nowrap; }
.db-smp-back:hover { color: #102F44; }

/* Sample analysis sections */
.db-smp-section {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.03);
    padding: 18px 20px;
    height: 100%;
}
.db-smp-section h4 { font-size: 14.5px; font-weight: 700; color: #102F44; margin: 0 0 12px; letter-spacing: -0.2px; }
.db-smp-section h4 i { color: var(--kt-primary); }
.db-smp-table { width: 100%; border-collapse: collapse; }
.db-smp-table td { padding: 7px 0; font-size: 13px; border-bottom: 1px solid #f3f4f7; vertical-align: top; }
.db-smp-table td:first-child { color: #6f727e; padding-right: 12px; }
.db-smp-table td:last-child  { color: #102F44; font-weight: 600; text-align: right; }
.db-smp-table tr:last-child td { border-bottom: 0; }
.db-smp-row-total td { border-top: 2px solid #eef0f4; padding-top: 10px; }
.db-smp-row-total td:last-child { color: var(--kt-primary); font-weight: 700; }
.db-smp-note { font-size: 11.5px; color: #9aa0ad; font-weight: 500; }
.db-smp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.db-smp-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #5e6278; line-height: 1.5; }
.db-smp-list li i { color: var(--kt-primary); font-size: 13px; margin-top: 2px; }

/* Sample workspace shell additions */
.db-smp-inlabel { display: block; font-size: 11.5px; font-weight: 600; color: #6f727e; margin-bottom: 4px; }
.db-smp-thead td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: #9aa0ad !important; }
#scenario_section .scenario_tab .nav-link.active { background: rgba(var(--kt-primary-rgb), 0.10); color: var(--kt-primary); font-weight: 700; }
#scenario_section .scenario_tab .nav-link.disabled { cursor: not-allowed; }

/* ── Sample deal read-only treatment (real workspace) ─────────────────
   Baseline CSS layer under the JS in property.html's sample banner block;
   server-side the P9 write gate is the actual enforcement. Scoped to
   .dwi-sample-ro so real deals are untouched. Tabs, scenario pills, and
   the archive action stay fully interactive. */
.dwi-sample-ro #underwriting_data input:not([type="hidden"]),
.dwi-sample-ro #underwriting_data select,
.dwi-sample-ro #underwriting_data textarea {
    pointer-events: none;
    opacity: 0.72;
}
.dwi-sample-ro .clone_scenario,
.dwi-sample-ro .edit_scenario,
.dwi-sample-ro .delete_scenario,
.dwi-sample-ro .set_default_scenario,
.dwi-sample-ro [data-bs-target="#kt_csv_toggle"],
.dwi-sample-ro #kt_import_csv,
.dwi-sample-ro .dwi-rl-create,
.dwi-sample-ro [data-bs-target="#reports_create_modal"],
.dwi-sample-ro #underwriting_data button[type="submit"] {
    display: none !important;
}

/* Park editors share the stacked workspace below the desktop rail breakpoint. */
@media (max-width: 991.98px) {
    #current_research[data-dealtype="mobile home park"] > #underwriting_data,
    #current_research[data-dealtype="mobile home park"] > .property_summary {
        position: static;
        width: 100% !important;
    }
    #current_research[data-dealtype="mobile home park"] .property_summary-content {
        position: static !important;
    }
}


/* Deal Assumptions guidance shares the existing Bootstrap/theme palette. */
#kt_modal_property_settings .ps-info-button {
    width: 28px;
    min-height: 28px;
    vertical-align: middle;
}
#kt_modal_property_settings .ps-guidance-popover {
    max-width: min(360px, calc(100vw - 32px));
    border: 1px solid var(--bs-gray-200, #e4e6ef);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
#kt_modal_property_settings .ps-guidance-popover .popover-header {
    padding: 14px 18px;
    background: var(--bs-gray-100, #f5f8fa);
    color: var(--bs-gray-900, #181c32);
    border-bottom: 1px solid var(--bs-gray-200, #e4e6ef);
    border-radius: 11px 11px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
#kt_modal_property_settings .ps-guidance-popover .popover-body {
    padding: 16px 18px;
    color: var(--bs-gray-700, #5e6278);
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-line;
}


/* Additional locations in the existing deal intake forms. */
.da-intake { border: 1px solid var(--dwi-color-border); border-radius: 10px; background: var(--dwi-color-surface); }
.da-intake-summary { display: flex; align-items: center; gap: 12px; padding: 16px; cursor: pointer; list-style: none; }
.da-intake-summary::-webkit-details-marker { display: none; }
.da-intake-summary:focus-visible { outline: 2px solid var(--dwi-color-positive); outline-offset: 3px; border-radius: 10px; }
.da-intake-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px; background: var(--dwi-status-portfolio-soft); color: var(--dwi-color-positive); }
.da-intake-icon i { color: inherit; font-size: 18px; }
.da-intake-chevron { transition: transform .15s ease; }
.da-intake[open] .da-intake-chevron { transform: rotate(180deg); }
.da-intake-content { padding: 0 16px 16px; }
.da-intake-card { padding: 16px; margin-bottom: 12px; border: 1px solid var(--dwi-color-border); border-radius: 8px; }
.da-intake-card .form-label { font-size: 12.5px; margin-bottom: 5px; }
.da-intake-card .da-intake-remove { padding: 5px 9px; font-size: 12px; }
@media (max-width: 575.98px) {
    .da-intake-summary { gap: 8px; padding: 12px; }
    .da-intake-content { padding: 0 12px 12px; }
    .da-intake-card { padding: 12px; }
}


/* Address selection uses the existing Select2 control and theme tokens. */
.pd-shell-hd-address { justify-content: space-between; align-items: center; gap: 24px; }
.pd-shell-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd-shell-hd-address .pd-address-picker { width: 340px; max-width: 42%; flex-shrink: 0; margin-left: auto; }
.pd-address-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0; }
.pd-address-option-copy { flex: 1; min-width: 0; }
.pd-address-street { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.pd-address-location { display: block; font-size: 12px; font-weight: 400; line-height: 1.5; color: var(--dwi-color-muted); }
.pd-address-selected { padding: 0; }
.pd-address-selected > i { color: var(--dwi-color-positive); font-size: 16px; flex-shrink: 0; }
.pd-address-selected .pd-address-street { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-address-selected .badge { font-size: 10px; padding: 4px 7px; flex-shrink: 0; }
.pd-address-picker .select2-container .select2-selection--single,
.dwi-shell-modern .pd-address-picker .select2-container .select2-selection--single { height: 42px !important; min-height: 42px; border-color: var(--dwi-color-border) !important; box-shadow: none !important; }
.pd-address-picker .select2-container .select2-selection__rendered,
.dwi-shell-modern .pd-address-picker .select2-container .select2-selection__rendered { line-height: normal !important; padding: 10px 34px 10px 12px !important; }
.pd-address-picker .select2-container .select2-selection__arrow,
.dwi-shell-modern .pd-address-picker .select2-container .select2-selection__arrow { top: 3px; right: 6px; }
.pd-address-menu { border-radius: 8px; overflow: hidden; border-color: var(--dwi-color-border); box-shadow: 0 8px 24px rgba(20,40,30,.12); }
.pd-address-picker .pd-address-menu .select2-results__option {
    position: relative;
    padding: 9px 36px 9px 12px !important;
    background: var(--dwi-color-surface) !important;
    color: var(--dwi-color-text) !important;
}
.pd-address-menu .pd-address-option > .badge { flex-shrink: 0; }
.pd-address-picker .pd-address-menu .select2-results__option::after { display: none !important; }
.pd-address-picker .pd-address-menu .select2-results__option--selected {
    background: var(--dwi-status-portfolio-soft) !important;
}
.pd-address-picker .pd-address-menu .select2-results__option--selected::after {
    display: block !important;
    content: '\F633';
    font-family: 'bootstrap-icons';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dwi-color-positive);
    font-size: 13px;
}
.pd-address-picker .pd-address-menu .select2-results__option:hover,
.pd-address-picker .pd-address-menu .select2-results__option--highlighted[aria-selected] {
    background: var(--dwi-color-line-soft) !important;
}
.pd-address-picker .pd-address-menu .select2-results__option--selected:hover,
.pd-address-picker .pd-address-menu .select2-results__option--selected.select2-results__option--highlighted {
    background: var(--dwi-status-portfolio-soft) !important;
}
@media (max-width: 767.98px) {
    .pd-shell-hd-address { flex-wrap: wrap; gap: 16px; }
    .pd-shell-hd-address .pd-address-picker { width: 100%; max-width: 100%; margin-left: 0; }
}


#deal_addresses_modal .modal-dialog { max-width: 660px; }
#deal_addresses_modal .modal-content { border-radius: 14px; overflow: hidden; color: var(--dwi-color-text); }
#deal_addresses_modal .da-modal-header { padding: 24px 28px; border-bottom: 1px solid var(--dwi-color-line-soft); }
#deal_addresses_modal .modal-title { font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
#deal_addresses_modal .da-modal-icon { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--dwi-status-portfolio-soft); }
#deal_addresses_modal .da-modal-icon i { font-size: 21px; color: var(--dwi-color-positive); }
#deal_addresses_modal .da-modal-subtitle { margin: 4px 0 0; font-size: 13px; color: var(--dwi-color-muted); line-height: 1.5; }
#deal_addresses_modal .da-modal-body { padding: 24px 28px; }
#deal_addresses_modal .da-default-card { padding: 18px 20px; border: 1px solid var(--dwi-color-border); border-radius: 10px; background: var(--dwi-color-rail); }
#deal_addresses_modal .da-section-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--dwi-color-muted); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
#deal_addresses_modal .da-section-label span { display: flex; gap: 5px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
#deal_addresses_modal .da-street { font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
#deal_addresses_modal .da-default-card .da-street { font-size: 17px; }
#deal_addresses_modal .da-locality { margin-top: 3px; color: var(--dwi-color-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#deal_addresses_modal .da-default-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--dwi-color-line-soft); color: var(--dwi-color-muted); font-size: 12px; line-height: 1.5; }
#deal_addresses_modal .da-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 12px; }
#deal_addresses_modal .da-list-heading h4 { margin: 0; font-size: 13px; font-weight: 600; }
#deal_addresses_modal .da-list-heading h4 span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin-left: 6px; background: var(--dwi-color-rail); border-radius: 6px; font-size: 11px; color: var(--dwi-color-muted); }
#deal_addresses_modal .da-location-list { border: 1px solid var(--dwi-color-border); border-radius: 10px; overflow: hidden; }
#deal_addresses_modal .da-location-row { display: flex; align-items: center; gap: 12px; padding: 16px; }
#deal_addresses_modal .da-location-row + .da-location-row { border-top: 1px solid var(--dwi-color-line-soft); }
#deal_addresses_modal .da-location-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; background: var(--dwi-color-rail); }
#deal_addresses_modal .da-location-icon i { font-size: 16px; color: var(--dwi-color-muted); }
#deal_addresses_modal .da-location-copy { flex: 1; min-width: 0; }
#deal_addresses_modal .da-row-actions { display: flex; gap: 5px; flex-shrink: 0; }
#deal_addresses_modal .da-row-actions .btn { width: 32px; height: 32px; background: transparent; }
#deal_addresses_modal .da-row-actions .btn:hover { background: var(--dwi-color-rail); }
#deal_addresses_modal .da-row-actions .da-action:hover i { color: var(--dwi-color-negative); }
#deal_addresses_modal .da-modal-footer { padding: 16px 28px; justify-content: space-between; border-top: 1px solid var(--dwi-color-line-soft); background: var(--dwi-color-rail); gap: 12px; }
#deal_addresses_modal .da-modal-footer > span { color: var(--dwi-color-muted); font-size: 12px; }
#deal_addresses_modal .da-form-title { font-size: 18px; font-weight: 600; }
#deal_addresses_modal .da-form .form-label { font-size: 12px; font-weight: 600; }
#deal_addresses_modal .da-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--dwi-color-line-soft); }
#deal_addresses_modal .da-empty { padding: 20px; color: var(--dwi-color-muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 575.98px) {
    #deal_addresses_modal .da-modal-header, #deal_addresses_modal .da-modal-body { padding: 20px; }
    #deal_addresses_modal .da-modal-footer { padding: 16px 20px; }
    #deal_addresses_modal .da-modal-footer > span { max-width: 65%; }
    #deal_addresses_modal .da-location-row { padding: 12px; gap: 8px; }
    #deal_addresses_modal .da-location-icon { display: none; }
}

#deal_addresses_modal .btn-primary { background: var(--dwi-color-positive) !important; border-color: var(--dwi-color-positive) !important; color: #fff !important; }
#deal_addresses_modal .btn-primary:hover { filter: brightness(.94); }
#deal_addresses_modal .btn-light-primary { background: var(--dwi-status-portfolio-soft) !important; color: var(--dwi-color-positive) !important; }
#deal_addresses_modal .btn-light-primary i { color: inherit; }
.dwi-referral-breadcrumb {
  text-transform: none;
}
