/* ══════════════════════════════════════════════════════════════════════
   FRONTIER DESIGN TOKENS — refined operator
   ----------------------------------------------------------------------
   Single source of truth for the app's visual language: fonts, colors,
   geometry. All custom components should reference these tokens via
   var(--fr-...) so theme changes can be made in one place.

   Loaded at the top of custom.css so subsequent styles can reference
   the tokens. CSS @import statements MUST come before any other rule.
   ══════════════════════════════════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ── Surfaces — warm off-whites, not stark ─────────────────────── */
  --fr-bg:              #F6F5F1;
  --fr-surface:         #FFFFFF;
  --fr-hairline:        #ECEAE3;
  --fr-hairline-strong: #DAD7CD;

  /* ── Text — dark slate, not pure black ─────────────────────────── */
  --fr-ink:    #14181D;
  --fr-ink-2:  #4D525A;
  --fr-ink-3:  #8E9299;

  /* ── Brand accent — burnt amber ────────────────────────────────── */
  /* Shifted from red-leaning burnt orange (#C2410C) to amber/gold so it
     reads as clearly distinct from the negative-signal red. Same warm
     family, different enough hue that the page no longer feels "all
     red" at a glance. */
  --fr-accent:        #B45309;       /* primary brand action */
  --fr-accent-soft:   #FEF3C7;       /* tint for light backgrounds */
  --fr-accent-strong: #92400E;       /* hover/pressed state */
  --fr-accent-2:      #D97706;       /* lighter amber for gradients */

  /* ── Signal: positive (good news, "all clear") ─────────────────── */
  --fr-positive:        #1F7A4D;
  --fr-positive-deep:   #155C39;
  --fr-positive-tint:   rgba(31, 122, 77, 0.06);
  --fr-positive-tint-2: rgba(31, 122, 77, 0.11);

  /* ── Signal: negative (rent dropped, error) ────────────────────── */
  /* Brighter / cooler red so it reads as unambiguously red next to the
     warm-amber brand accent. */
  --fr-negative:        #B91C1C;

  /* ── Signal: warning (action needed, soft amber) ───────────────── */
  --fr-warning:         #B5701F;
  --fr-warning-deep:    #8C5618;
  --fr-warning-tint:    rgba(181, 112, 31, 0.08);
  --fr-warning-tint-2:  rgba(181, 112, 31, 0.14);

  /* ── Geometry ──────────────────────────────────────────────────── */
  --fr-r-sm:  6px;
  --fr-r-md:  10px;
  --fr-r-lg:  14px;

  /* ── Type stacks ───────────────────────────────────────────────── */
  --fr-font-sans:   'General Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fr-font-serif:  'Instrument Serif', "Times New Roman", serif;
  --fr-font-mono:   'JetBrains Mono', ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ══════════════════════════════════════════════════════════════════════
   END FRONTIER DESIGN TOKENS
   ══════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════
   FRONTIER NAVBAR (Phase 2)
   Refined operator top bar — white surface, hairline rule, branded
   primary-action slot on the right.
   ══════════════════════════════════════════════════════════════════════ */

.fr-navbar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 16px;
    background: var(--fr-surface);
    border: 1px solid var(--fr-hairline);
    border-radius: var(--fr-r-md);
    margin: 4px 0 24px;
    box-shadow: 0 1px 0 rgba(20, 24, 29, 0.02);
    font-family: var(--fr-font-sans);
}

.fr-navbar-spacer { flex: 1; }

/* Menu icon button (top-left) */
.fr-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--fr-r-md);
    border: 1px solid var(--fr-hairline-strong);
    background: var(--fr-surface);
    color: var(--fr-ink);
    font-family: var(--fr-font-sans);
    font-size: 18px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms ease, border-color 120ms ease;
}
.fr-icon-btn:hover {
    background: var(--fr-bg);
    border-color: #C9C5B8;
}

/* Frontier wordmark */
.fr-brand {
    font-family: var(--fr-font-serif);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.16em;
    color: var(--fr-ink);
    margin-left: 4px;
    user-select: none;
    line-height: 1;
}

/* Property selector wrapper — sized for navbar */
.fr-property-select {
    min-width: 220px;
    max-width: 260px;
}

/* Override react-select internals (used by dcc.Dropdown) so the
   selector matches the navbar aesthetic. The .Select-* classes are
   from older react-select; modern Dash still emits them. */
.fr-property-select-inner .Select-control {
    border: 1px solid var(--fr-hairline-strong) !important;
    border-radius: var(--fr-r-md) !important;
    background: var(--fr-surface) !important;
    height: 38px !important;
    font-family: var(--fr-font-sans) !important;
    font-size: 13.5px !important;
    transition: border-color 120ms ease;
    box-shadow: none !important;
}
.fr-property-select-inner .Select-control:hover {
    border-color: #C9C5B8 !important;
}
.fr-property-select-inner .Select-value-label,
.fr-property-select-inner .Select-placeholder,
.fr-property-select-inner .Select-input {
    line-height: 36px !important;
    font-weight: 500 !important;
    color: var(--fr-ink) !important;
}
.fr-property-select-inner .Select-arrow {
    border-color: var(--fr-ink-3) transparent transparent !important;
}
.fr-property-select-inner .is-focused:not(.is-open) > .Select-control {
    border-color: var(--fr-accent) !important;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.10) !important;
}

/* Primary action button (orange) — Publish Rates / Submit for Review.
   These !important rules override Bootstrap's .btn / .btn-primary /
   .btn-success defaults that ship with dbc.Button. */
.fr-action-btn,
.fr-action-btn.btn,
.fr-action-btn.btn-primary,
.fr-action-btn.btn-success {
    background-color: var(--fr-accent) !important;
    border-color: var(--fr-accent) !important;
    color: #FFFFFF !important;
    font-family: var(--fr-font-sans) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    height: 38px;
    padding: 0 16px !important;
    border-radius: var(--fr-r-md) !important;
    box-shadow: 0 1px 0 rgba(20, 24, 29, 0.04),
                0 1px 3px rgba(180, 83, 9, 0.22) !important;
    transition: transform 120ms ease, box-shadow 200ms ease,
                background-color 120ms ease, border-color 120ms ease;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.fr-action-btn:hover,
.fr-action-btn.btn:hover {
    background-color: var(--fr-accent-strong) !important;
    border-color: var(--fr-accent-strong) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 0 rgba(20, 24, 29, 0.04),
                0 4px 10px rgba(180, 83, 9, 0.28) !important;
}
.fr-action-btn:focus,
.fr-action-btn.btn:focus {
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.20) !important;
    outline: none;
}
.fr-action-btn .fr-btn-icon {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}


/* ══════════════════════════════════════════════════════════════════════
   FRONTIER PROPERTY CARD (Phase 3)
   Three-zone scoreboard: Position · Demand Pipeline · Rent
   See mockups/property_card_v4.html for the design spec.
   ══════════════════════════════════════════════════════════════════════ */

/* Card shell */
.fr-property-card {
    background: var(--fr-surface);
    border: 1px solid var(--fr-hairline);
    border-radius: var(--fr-r-lg);
    overflow: visible;          /* required so the badge tooltip can escape */
    box-shadow: 0 1px 0 rgba(20, 24, 29, 0.02), 0 1px 2px rgba(20, 24, 29, 0.03);
    margin-bottom: 24px;
    font-family: var(--fr-font-sans);
    color: var(--fr-ink);
}

/* Card header strip (property name + subtitle + updated indicator) */
.fr-pc-header {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
    padding: 22px 32px 18px;
    border-bottom: 1px solid var(--fr-hairline);
}
.fr-pc-title {
    font-family: var(--fr-font-serif);
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--fr-ink);
    line-height: 1;
    margin: 0;
}
.fr-pc-subtitle {
    color: var(--fr-ink-3);
    font-size: 13px;
    font-weight: 400;
}
.fr-pc-subtitle .fr-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--fr-ink-3);
    margin: 0 8px;
    vertical-align: middle;
    opacity: 0.6;
}
.fr-pc-header-spacer { flex: 1; }
.fr-updated {
    font-family: var(--fr-font-mono);
    font-size: 11px;
    color: var(--fr-ink-3);
    letter-spacing: 0.02em;
}
.fr-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fr-positive);
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.5);
    animation: fr-pulse 2.4s ease-out infinite;
}
@keyframes fr-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(31, 122, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); }
}

/* Three-zone grid */
.fr-pc-zones {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.fr-pc-zone {
    padding: 26px 32px 30px;
    border-right: 1px solid var(--fr-hairline);
    position: relative;
    opacity: 0;
    transform: translateY(6px);
    animation: fr-rise 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fr-pc-zone:last-child { border-right: 0; }
.fr-pc-zone:nth-child(1) { animation-delay: 80ms; }
.fr-pc-zone:nth-child(2) { animation-delay: 160ms; }
.fr-pc-zone:nth-child(3) { animation-delay: 240ms; }
@keyframes fr-rise {
    to { opacity: 1; transform: translateY(0); }
}
.fr-zone-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fr-ink-3);
    font-weight: 500;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fr-zone-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fr-hairline);
}

/* Hero stat block (one per zone) */
.fr-stat-hero {
    margin-bottom: 26px;
}
.fr-stat-hero-value {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-size: 36px;
    font-weight: 500;
    color: var(--fr-ink);
    letter-spacing: -0.025em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.fr-stat-hero-value .fr-of,
.fr-stat-hero-value .fr-sub  {
    color: var(--fr-ink-3);
    font-size: 22px;
    font-weight: 400;
}
.fr-stat-hero-value .fr-delta {
    font-size: 13px;
    margin-left: 4px;
    font-weight: 500;
    font-family: var(--fr-font-mono);
}
.fr-stat-hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    margin-top: 8px;
    font-weight: 500;
}
/* Zone 1 hero variant: hero on left, publish badge on right */
.fr-stat-hero--with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.fr-stat-hero--with-badge .fr-hero-text { flex: 0 0 auto; }

/* Stat row (label : value pairs) */
.fr-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px dashed var(--fr-hairline);
}
.fr-stat-row:first-of-type {
    border-top: 1px solid var(--fr-hairline);
    padding-top: 12px;
}
.fr-stat-label {
    color: var(--fr-ink-2);
    font-size: 12.5px;
    font-weight: 400;
}
.fr-stat-value {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    font-weight: 500;
    color: var(--fr-ink);
}
.fr-stat-value .fr-unit {
    color: var(--fr-ink-3);
    font-size: 11px;
    margin-left: 3px;
    font-weight: 400;
}
.fr-delta {
    font-family: var(--fr-font-mono);
    font-size: 11.5px;
    font-weight: 500;
}
.fr-delta.fr-up   { color: var(--fr-positive); }
.fr-delta.fr-down { color: var(--fr-negative); }

/* Forward-occupancy mini chart (Zone 1) */
.fr-occ-trajectory {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--fr-hairline);
}
.fr-occ-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    font-weight: 500;
    margin-bottom: 14px;
}
.fr-occ-chart-wrap {
    width: 100%;
    height: 110px;
    margin-bottom: 4px;
}
/* Each cell is absolutely positioned at the same x% as its dot above
   (the percentages are computed in render_z1_occ_chart and applied as
   inline ``left: X%`` styles). ``transform: translateX(-50%)`` centers
   each label horizontally on its dot. */
.fr-occ-axis {
    position: relative;
    height: 30px;
    margin-top: 2px;
}
.fr-occ-axis-cell {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    text-align: center;
    font-family: var(--fr-font-mono);
    font-size: 11px;
    color: var(--fr-ink-2);
    font-weight: 500;
    white-space: nowrap;
}
.fr-occ-axis-cell .fr-axis-label {
    display: block;
    color: var(--fr-ink-3);
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
    font-family: var(--fr-font-sans);
    font-weight: 500;
}

/* Traffic funnel (Zone 2) */
.fr-funnel-wrap {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--fr-hairline);
}

/* Funnel header: title (+ info icon) on the left, 7D/30D toggle on the right */
.fr-funnel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.fr-funnel-title-group {
    display: inline-flex;
    align-items: center;
}
.fr-funnel-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    font-weight: 500;
}

/* Small info icon (FontAwesome) — hover reveals the YoY tooltip */
.fr-info-icon {
    margin-left: 6px;
    font-size: 11px;
    color: var(--fr-ink-3);
    cursor: help;
    opacity: 0.6;
    transition: opacity 120ms ease, color 120ms ease;
}
.fr-info-icon:hover {
    opacity: 1;
    color: var(--fr-ink-2);
}

/* 7D / 30D segmented toggle */
.fr-funnel-toggle {
    display: inline-flex;
    border-radius: 6px;
    background: var(--fr-bg);
    padding: 2px;
    border: 1px solid var(--fr-hairline);
}
.fr-funnel-toggle-btn {
    padding: 3px 9px;
    border: 0;
    background: transparent;
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-size: 10.5px;
    font-weight: 500;
    color: var(--fr-ink-3);
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.fr-funnel-toggle-btn:hover { color: var(--fr-ink-2); }
/* Default: 30D is active. Toggle the active styling via the wrap class. */
.fr-funnel-wrap .fr-funnel-toggle-btn[data-period="30d"] {
    background: var(--fr-surface);
    color: var(--fr-ink);
    box-shadow: 0 1px 2px rgba(20, 24, 29, 0.06);
}
.fr-funnel-wrap.fr-funnel-show-7d .fr-funnel-toggle-btn[data-period="30d"] {
    background: transparent;
    color: var(--fr-ink-3);
    box-shadow: none;
}
.fr-funnel-wrap.fr-funnel-show-7d .fr-funnel-toggle-btn[data-period="7d"] {
    background: var(--fr-surface);
    color: var(--fr-ink);
    box-shadow: 0 1px 2px rgba(20, 24, 29, 0.06);
}

/* Two row groups, one per period — only one visible at a time */
.fr-funnel-rows--7d  { display: none; }
.fr-funnel-rows--30d { display: block; }
.fr-funnel-wrap.fr-funnel-show-7d .fr-funnel-rows--7d  { display: block; }
.fr-funnel-wrap.fr-funnel-show-7d .fr-funnel-rows--30d { display: none; }

.fr-funnel-row {
    display: grid;
    grid-template-columns: 56px 1fr 36px 56px;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
}
.fr-funnel-label { font-size: 12.5px; color: var(--fr-ink-2); font-weight: 400; }
.fr-funnel-bar-track {
    height: 6px;
    background: var(--fr-hairline);
    border-radius: 99px;
    overflow: hidden;
}
.fr-funnel-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fr-accent) 0%, var(--fr-accent-2) 100%);
    transform-origin: left center;
    animation: fr-bar-grow 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: scaleX(0);
}
@keyframes fr-bar-grow { to { transform: scaleX(1); } }
.fr-funnel-rows .fr-funnel-row:nth-child(1) .fr-funnel-bar-fill { animation-delay: 240ms; }
.fr-funnel-rows .fr-funnel-row:nth-child(2) .fr-funnel-bar-fill { animation-delay: 320ms; }
.fr-funnel-rows .fr-funnel-row:nth-child(3) .fr-funnel-bar-fill { animation-delay: 400ms; }
.fr-funnel-rows .fr-funnel-row:nth-child(4) .fr-funnel-bar-fill { animation-delay: 480ms; }
.fr-funnel-value {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 500;
    color: var(--fr-ink);
    text-align: right;
}

/* YoY delta column: green ▲ / red ▼ / muted — */
.fr-funnel-yoy {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}
.fr-funnel-yoy.fr-up        { color: var(--fr-positive); }
.fr-funnel-yoy.fr-down      { color: var(--fr-negative); }
.fr-funnel-yoy--neutral     { color: var(--fr-ink-3); }

/* Sparkline wrapper (Zone 3) */
.fr-sparkline-wrap {
    margin: 14px 0 22px;
    height: 64px;
}

/* Publish-status badge (Zone 1 hero) */
.fr-publish-badge {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px;
    border-radius: var(--fr-r-md);
    cursor: pointer;
    transition: background 140ms ease;
    text-decoration: none;
    flex: 1 1 auto;
    max-width: 200px;
    align-self: stretch;
    justify-content: center;
}
.fr-publish-badge--clean {
    background: var(--fr-positive-tint);
}
.fr-publish-badge--clean:hover {
    background: var(--fr-positive-tint-2);
}
.fr-publish-badge--action {
    background: var(--fr-warning-tint);
}
.fr-publish-badge--action:hover {
    background: var(--fr-warning-tint-2);
}
.fr-pb-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
.fr-publish-badge--clean .fr-pb-top  { color: var(--fr-positive-deep); }
.fr-publish-badge--action .fr-pb-top { color: var(--fr-warning-deep); }
.fr-pb-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.fr-publish-badge--clean .fr-pb-icon  { background: var(--fr-positive); }
.fr-publish-badge--action .fr-pb-icon { background: var(--fr-warning); }
.fr-pb-detail {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-size: 11px;
    color: var(--fr-ink-3);
    letter-spacing: 0.01em;
    padding-left: 24px;
    line-height: 1.3;
}

/* Tooltip for badge hover (action state only — shows per-unit-type breakdown) */
.fr-publish-badge[data-tooltip]::after,
.fr-publish-badge[data-tooltip]::before {
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 20;
}
.fr-publish-badge[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--fr-ink);
    color: #FFFFFF;
    padding: 9px 12px;
    border-radius: 8px;
    font-family: var(--fr-font-mono);
    font-size: 11.5px;
    line-height: 1.5;
    white-space: pre;
    box-shadow: 0 8px 24px rgba(20, 24, 29, 0.18);
}
.fr-publish-badge[data-tooltip]::before {
    content: '';
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--fr-ink);
}
.fr-publish-badge[data-tooltip]:hover::after,
.fr-publish-badge[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Zone 1/2/3 stack on smaller screens */
@media (max-width: 1100px) {
    .fr-pc-zones { grid-template-columns: 1fr; }
    .fr-pc-zone {
        border-right: 0;
        border-bottom: 1px solid var(--fr-hairline);
    }
    .fr-pc-zone:last-child { border-bottom: 0; }
}


/* ──────────────────────────────────────────────────────────────────────
   LEASING HUB — slim header mode
   ----------------------------------------------------------------------
   Leasing agents jump straight to the unit table; the demand/rent zones
   are noise for their workflow. The card class is toggled by a callback
   in app/callbacks/navigation.py based on the active page.
   ────────────────────────────────────────────────────────────────────── */

.fr-property-card.fr-leasing-hub-slim {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 16px;
}
.fr-property-card.fr-leasing-hub-slim .fr-pc-header {
    border-bottom: none;
    padding: 14px 4px 4px;
}
.fr-property-card.fr-leasing-hub-slim .fr-pc-zones,
.fr-property-card.fr-leasing-hub-slim .fr-updated {
    display: none;
}


/* ──────────────────────────────────────────────────────────────────────
   PROPERTY CARD POPOVERS (Phase 5 / Task #8)
   Hover-revealed math breakdowns for the Leases Needed row and Demand
   Gap hero in Zone 2. Anchored to the new design language: warm white
   surface, hairline border, mono numerics, refined hierarchy.
   ────────────────────────────────────────────────────────────────────── */

.fr-popover.popover {
    border: 1px solid var(--fr-hairline) !important;
    border-radius: var(--fr-r-md) !important;
    background: var(--fr-surface) !important;
    box-shadow: 0 12px 32px rgba(20, 24, 29, 0.10),
                0 2px 4px rgba(20, 24, 29, 0.04) !important;
    font-family: var(--fr-font-sans) !important;
    max-width: 360px !important;
}
.fr-popover .popover-body {
    padding: 14px 16px !important;
    min-width: 280px;
    color: var(--fr-ink);
}
.fr-popover .popover-arrow::after,
.fr-popover .popover-arrow::before {
    border-bottom-color: var(--fr-hairline) !important;
}

.fr-popover-eyebrow {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--fr-ink-3);
    font-weight: 600;
    margin-bottom: 10px;
}
.fr-popover-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.4;
}
.fr-popover-row-label {
    color: var(--fr-ink-2);
}
.fr-popover-row-value {
    font-family: var(--fr-font-mono);
    font-feature-settings: 'tnum';
    font-variant-numeric: tabular-nums;
    color: var(--fr-ink);
    font-weight: 500;
    margin-left: 12px;
    white-space: nowrap;
}
.fr-popover-row--emphasis .fr-popover-row-label {
    color: var(--fr-ink);
    font-weight: 500;
}
.fr-popover-row--emphasis .fr-popover-row-value {
    font-weight: 600;
    font-size: 14px;
}
.fr-popover-divider {
    height: 1px;
    background: var(--fr-hairline);
    margin: 8px 0;
}

/* The cursor-help affordance lets the user know the element has more
   info available on hover. Applied to the popover anchors. */
.fr-popover-anchor {
    cursor: help;
}


/* ──────────────────────────────────────────────────────────────────────
   SECTION HEADER — page break between property card and unit-type list
   ────────────────────────────────────────────────────────────────────── */

.fr-section-header {
    margin: 8px 4px 18px;
}
.fr-section-title {
    font-family: var(--fr-font-sans);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fr-ink);
    line-height: 1.2;
    margin: 0 0 4px;
}
.fr-section-description {
    font-family: var(--fr-font-sans);
    font-size: 13.5px;
    color: var(--fr-ink-2);
    margin: 0;
    line-height: 1.45;
}


/* Softer red for availability exposure "urgent" bar */
.bg-exposure-urgent {
  background-color: #e57373 !important;  /* Coral red - urgent but not alarming */
}

/* Renewals UI polish */
.renewals-summary-bar {
  gap: 8px;
}
.renewals-badge {
  display: inline-block;
  padding: 4px 8px;
  margin-right: 8px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(0,0,0,0.04);
}
.renewals-badge-current { color: #6c757d; }
.renewals-badge-new { color: #0dcaf0; }
.renewals-badge-base { color: #0d6efd; }
.renewals-badge-amenity { color: #20c997; }
.renewals-badge-increase { color: #198754; }
.renewals-badge-total { color: #0d6efd; font-weight: 600; }

.pill-override {
  background: #ffe8a1;
  color: #856404;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}
/* Keep override input inline with badges, avoid wrapping early */
.override-inline { display: inline-block; vertical-align: middle; min-width: 140px; }

/* Renewals table terms collapse row styling */
.terms-collapse-row > td {
  background: #f6f8fb;
  border-top: 1px solid #dfe3e8;
  border-bottom: 1px solid #dfe3e8;
}

.terms-collapse-row .dash-table-container {
  margin: 0;
}

/* Custom CSS for Dash Property Management App */

/* ─────────────────────────────────────────────────────────────────────
   GLOBAL STYLES
   ───────────────────────────────────────────────────────────────────── */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #eef1f5;
}

/* ─────────────────────────────────────────────────────────────────────
   NAVBAR CUSTOMIZATION
   ───────────────────────────────────────────────────────────────────── */

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1.3rem !important;
}

/* Logo and navbar layout */
.navbar .d-flex.align-items-center {
    flex-grow: 1;
}

.navbar .d-flex.align-items-center img {
    /* No filter needed - logo is already white */
    transition: all 0.2s ease;
    opacity: 0.9;
}

.navbar .d-flex.align-items-center img:hover {
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
    opacity: 1;
    transform: scale(1.05);
}

.navbar .d-flex.align-items-center span {
    margin-left: 0.75rem;
    letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────────────────────────
   SIDEBAR STYLES
   ───────────────────────────────────────────────────────────────────── */

.offcanvas {
    background-color: #2c3e50 !important;
    color: white !important;
}

.offcanvas .form-control,
.offcanvas .form-select {
    background-color: #34495e !important;
    border-color: #5a6c7d !important;
    color: white !important;
}

.offcanvas .form-control:focus,
.offcanvas .form-select:focus {
    background-color: #3b4a5c !important;
    border-color: #3498db !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

.offcanvas .form-control::placeholder {
    color: #bdc3c7 !important;
}

.offcanvas .dropdown-menu {
    background-color: #34495e !important;
    border-color: #5a6c7d !important;
}

.offcanvas .dropdown-item {
    color: white !important;
}

.offcanvas .dropdown-item:hover {
    background-color: #3498db !important;
}

/* ─────────────────────────────────────────────────────────────────────
   SIDEBAR GROUPED NAVIGATION
   ───────────────────────────────────────────────────────────────────── */

.sidebar-nav-group-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.92);
    padding: 6px 10px;
    margin-top: 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    border-left: 3px solid #3498db;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

/* First group header doesn't need the top divider/spacing */
.sidebar-nav-group-header:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 6px;
}

.sidebar-nav-item {
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    margin: 1px 0;
    user-select: none;
}

.sidebar-nav-item:hover {
    background-color: #34495e;
    color: #ffffff;
}

.sidebar-nav-item.active {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────
   DASH DROPDOWN STYLES (for sidebar)
   ───────────────────────────────────────────────────────────────────── */

/* Style Dash dropdowns in the sidebar */
.offcanvas .Select-control {
    background-color: #34495e !important;
    border-color: #5a6c7d !important;
    color: white !important;
}

.offcanvas .Select-control:hover {
    border-color: #3498db !important;
}

.offcanvas .Select-control .Select-value {
    color: white !important;
}

.offcanvas .Select-control .Select-value-label {
    color: white !important;
}

.offcanvas .Select-control .Select-placeholder {
    color: #bdc3c7 !important;
}

/* Ensure the main dropdown control text is white */
.offcanvas .Select-control .Select-value .Select-value-label {
    color: white !important;
}

.offcanvas .Select-control .Select-value .Select-value-label * {
    color: white !important;
}

.offcanvas .Select-control .Select-input > input {
    color: white !important;
}

.offcanvas .Select-menu-outer {
    background-color: #34495e !important;
    border-color: #5a6c7d !important;
    color: white !important;
}

.offcanvas .Select-option {
    background-color: #34495e !important;
    color: white !important;
}

.offcanvas .Select-option:hover {
    background-color: #3498db !important;
    color: white !important;
}

.offcanvas .Select-option.is-focused {
    background-color: #3498db !important;
    color: white !important;
}

.offcanvas .Select-option.is-selected {
    background-color: #2980b9 !important;
    color: white !important;
}

/* ─────────────────────────────────────────────────────────────────────
   PROPERTY HEADER CARD
   ───────────────────────────────────────────────────────────────────── */

/* Dropdown menu must sit above unit type cards */
#property-header-card .Select-menu-outer {
    z-index: 1050 !important;
}

/* Make the selected property name bold and prominent */
#property-header-card .Select-value-label,
#property-header-card .Select-value .Select-value-label {
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    color: #2c3e50 !important;
}

/* Match the dropdown control to the forecast pill style */
#property-header-card .Select-control {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
    border-radius: 8px !important;
    height: auto !important;
    min-height: 46px !important;
}

#property-header-card .Select-control:hover {
    border-color: #3498db !important;
}

/* Style the search input */
#property-header-card .Select-input > input {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

/* Style the dropdown placeholder */
#property-header-card .Select-placeholder {
    font-size: 1.1rem !important;
    line-height: 46px !important;
}

/* Vertically center the selected value within the control */
#property-header-card .Select-control .Select-value {
    top: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Prevent the property header card from hovering/lifting */
#property-header-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   CARD STYLES
   ───────────────────────────────────────────────────────────────────── */

.card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06) !important;
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background-color: #ffffff !important;
}

.card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14), 0 4px 8px rgba(0,0,0,0.08) !important;
}

.card-header {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight: 700 !important;
    padding: 14px 20px !important;
}

.card-header h5 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    letter-spacing: 0.02em !important;
}

/* Zero-availability unit type cards - more subtle appearance */
.card-zero-availability {
    opacity: 0.8 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.card-zero-availability:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    opacity: 0.9 !important;
}

.card-zero-availability .card-header {
    background: linear-gradient(135deg, #6c8ea8, #5a7a94) !important;
}

.card-zero-availability .card-body {
    padding-bottom: 12px !important;
}

/* Unit type cards - border frame and background gradient for visual distinction */
.unit-type-card {
    position: relative !important;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.06) 0%, rgba(52, 152, 219, 0.02) 15%, transparent 40%) !important;
    border: 3px solid #3498db !important;
    border-radius: 10px !important;
}

.unit-type-card .card-header {
    border-radius: 7px 7px 0 0 !important;
    margin: -1px -1px 0 -1px !important;
}

.unit-type-card.card-zero-availability {
    border-color: #6c8ea8 !important;
    background: linear-gradient(90deg, rgba(108, 142, 168, 0.05) 0%, rgba(108, 142, 168, 0.02) 15%, transparent 40%) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   BUTTON STYLES
   ───────────────────────────────────────────────────────────────────── */

.btn {
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    border-color: #2980b9 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d) !important;
    border-color: #1f618d !important;
    transform: translateY(-1px) !important;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60, #229954) !important;
    border-color: #229954 !important;
}

.btn-success:hover {
    background: linear-gradient(135deg, #229954, #1e8449) !important;
    border-color: #1e8449 !important;
    transform: translateY(-1px) !important;
}

.btn-outline-primary {
    border-color: #3498db !important;
    color: #3498db !important;
}

.btn-outline-primary:hover {
    background-color: #3498db !important;
    border-color: #3498db !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   TABLE STYLES
   ───────────────────────────────────────────────────────────────────── */

.dash-table-container {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.dash-table-container .dash-spreadsheet-container {
    border-radius: 8px !important;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner {
    border-radius: 8px !important;
}

/* Table header styling */
.dash-table-container .dash-header {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
}

.dash-table-container .dash-header .column-header-name {
    color: white !important;
}

/* Table cell styling */
.dash-table-container .dash-cell {
    border: 1px solid #e3e6f0 !important;
    font-size: 0.9rem !important;
    text-align: center !important;
    padding: 12px 8px !important;
}

.dash-table-container .dash-selected-cell {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

/* Actions column styling */
.dash-table-container .dash-cell[data-dash-column="Actions"] {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    border: 1px solid #2980b9 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.dash-table-container .dash-cell[data-dash-column="Actions"]:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.dash-table-container .dash-cell[data-dash-column="Actions"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

/* ─────────────────────────────────────────────────────────────────────
   ALERT STYLES
   ───────────────────────────────────────────────────────────────────── */

.alert {
    border: none !important;
    border-radius: 8px !important;
    font-weight: 500 !important;
}

.alert-info {
    background: linear-gradient(135deg, #d6eaf8, #aed6f1) !important;
    color: #1b4f72 !important;
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6, #a3e4d7) !important;
    color: #0d5345 !important;
}

.alert-warning {
    background: linear-gradient(135deg, #fdeaa7, #f9e79f) !important;
    color: #7d6608 !important;
}

.alert-danger {
    background: linear-gradient(135deg, #fadbd8, #f5b7b1) !important;
    color: #922b21 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   INPUT STYLES
   ───────────────────────────────────────────────────────────────────── */

.form-control {
    border-radius: 6px !important;
    border: 1px solid #d5dbdb !important;
    transition: all 0.2s ease !important;
}

.form-control:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

.input-group-text {
    background-color: #ecf0f1 !important;
    border-color: #d5dbdb !important;
    color: #2c3e50 !important;
    font-weight: 500 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   PLOTLY CHART STYLES
   ───────────────────────────────────────────────────────────────────── */

.js-plotly-plot {
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border: 1px solid #e3e6f0 !important;
    background-color: white !important;
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
}

/* Force Plotly charts to maintain fixed height */
.js-plotly-plot .plotly {
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
}

.js-plotly-plot .plotly .main-svg {
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
}

/* Prevent any dynamic resizing of Plotly charts */
.js-plotly-plot,
.js-plotly-plot * {
    transition: none !important;
    animation: none !important;
}

/* Disable Plotly's auto-resize behavior */
.js-plotly-plot .plotly {
    resize: none !important;
}

/* Force fixed dimensions */
#expiration-chart,
#gpr-forecast-chart {
    height: 500px !important;
    max-height: 500px !important;
    min-height: 500px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Chart container styling to match card theme */
.chart-container {
    background-color: white !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border: 1px solid #e3e6f0 !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

/* Chart title styling */
.chart-title {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}

/* ─────────────────────────────────────────────────────────────────────
   ACCORDION STYLES
   ───────────────────────────────────────────────────────────────────── */

.accordion-button {
    background-color: #34495e !important;
    color: white !important;
    border: none !important;
    font-weight: 500 !important;
}

.accordion-button:not(.collapsed) {
    background-color: #2c3e50 !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25) !important;
}

.accordion-body {
    background-color: #2c3e50 !important;
    color: white !important;
    border-top: 1px solid #34495e !important;
}

/* ─────────────────────────────────────────────────────────────────────
   SIDEBAR TABLE STYLES (for Pricing Parameters)
   ───────────────────────────────────────────────────────────────────── */

/* Style tables within the sidebar accordion */
.offcanvas .accordion-body table {
    background-color: #34495e !important;
    border-color: #5a6c7d !important;
    color: white !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
}

.offcanvas .accordion-body table th {
    background-color: #2c3e50 !important;
    color: white !important;
    border-color: #5a6c7d !important;
    font-weight: 600 !important;
    padding: 8px 12px !important;
}

.offcanvas .accordion-body table td {
    background-color: #34495e !important;
    color: white !important;
    border-color: #5a6c7d !important;
    padding: 8px 12px !important;
}

.offcanvas .accordion-body table tr:hover td {
    background-color: #3b4a5c !important;
}

/* Style table headers specifically */
.offcanvas .accordion-body table thead th {
    background-color: #2c3e50 !important;
    color: white !important;
    border-bottom: 2px solid #5a6c7d !important;
    font-weight: 600 !important;
}

/* Style table cells */
.offcanvas .accordion-body table tbody td {
    background-color: #34495e !important;
    color: white !important;
    border-color: #5a6c7d !important;
}

/* Ensure all text in tables is white */
.offcanvas .accordion-body table * {
    color: white !important;
}

/* ─────────────────────────────────────────────────────────────────────
   LOADING ANIMATION
   ───────────────────────────────────────────────────────────────────── */

._dash-loading {
    margin: 20px auto !important;
}

._dash-loading-callback {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   CURRENCY DISPLAY
   ───────────────────────────────────────────────────────────────────── */

.currency {
    font-weight: 600 !important;
    color: #27ae60 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.currency-large {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN
   ───────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem !important;
    }
    
    .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .dash-table-container {
        font-size: 0.8rem !important;
    }
}

/* ─────────────────────────────────────────────────────────────────────
   CUSTOM UTILITY CLASSES
   ───────────────────────────────────────────────────────────────────── */

.text-gradient {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 700 !important;
}

.shadow-soft {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

.shadow-hover:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
    transform: translateY(-2px) !important;
    transition: all 0.2s ease !important;
}

.border-radius-lg {
    border-radius: 12px !important;
}

/* ─────────────────────────────────────────────────────────────────────
   ANIMATION CLASSES
   ───────────────────────────────────────────────────────────────────── */

.fade-in {
    animation: fadeIn 0.5s ease-in !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out !important;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────────────
   MODAL SCROLL PREVENTION
   ───────────────────────────────────────────────────────────────────── */

/* Prevent page from scrolling to top when modals close */
.modal {
    scroll-behavior: auto !important;
}

.modal-dialog {
    scroll-behavior: auto !important;
}

/* Prevent any automatic scrolling when modals are shown/hidden */
body.modal-open {
    scroll-behavior: auto !important;
}

/* Ensure the page maintains its scroll position */
html, body {
    scroll-behavior: auto !important;
}

/* ─────────────────────────────────────────────────────────────────────
   TOOLTIP STYLES
   ───────────────────────────────────────────────────────────────────── */

/* Simple tooltip styling - just black text, let Dash handle positioning */
.dash-tooltip,
.dash-table-tooltip,
.tooltip,
[role="tooltip"],
.tooltip-inner,
.popover,
.popover-body {
    color: #000000 !important;
    font-size: 14px !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-weight: 600 !important;
    white-space: pre-line !important;
    line-height: 1.6 !important;
    max-width: 400px !important;
    padding: 12px 16px !important;
    border-radius: 6px !important;
}

/* Override Bootstrap default black tooltip background */
.tooltip-inner {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* Fix tooltip arrow to match white background */
.tooltip .tooltip-arrow::before,
.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #dee2e6 !important;
}
.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #dee2e6 !important;
}

/* Target all child elements within tooltips */
.dash-tooltip *,
.dash-table-tooltip *,
.tooltip *,
[role="tooltip"] *,
.tooltip-inner *,
.popover *,
.popover-body * {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Market comparison popover needs more width for the Specials column */
.popover.market-comp-popover {
    max-width: 600px !important;
}

/* ─────────────────────────────────────────────────────────────────────
   BPO INPUT - HIDE SPINNER ARROWS
   ───────────────────────────────────────────────────────────────────── */

/* Hide spinner arrows on BPO number inputs (Chrome, Safari, Edge, Opera) */
.bpo-input-no-spinner::-webkit-outer-spin-button,
.bpo-input-no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide spinner arrows on BPO number inputs (Firefox) */
.bpo-input-no-spinner {
    -moz-appearance: textfield;
}

/* ─────────────────────────────────────────────────────────────────────
   BEDROOM GROUP ACCORDION (New Leases grouped view)
   ───────────────────────────────────────────────────────────────────── */

.bedroom-group-accordion .accordion-item {
    border: 1px solid #e3e6f0 !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}

.bedroom-group-accordion .accordion-button {
    background-color: #f8f9fa !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    padding: 14px 20px !important;
}

.bedroom-group-accordion .accordion-button:not(.collapsed) {
    background-color: #eaf2f8 !important;
    color: #2c3e50 !important;
    box-shadow: none !important;
}

.bedroom-group-accordion .accordion-button::after {
    filter: none !important;
}

.bedroom-group-accordion .accordion-body {
    background-color: #f5f7fa !important;
    color: inherit !important;
    border-top: 1px solid #e3e6f0 !important;
    padding: 16px !important;
}

/* Prevent unit-type cards inside accordion from extra bottom margin */
.bedroom-group-accordion .accordion-body > div > .card:last-child {
    margin-bottom: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────
   TRAFFIC PERIOD TOGGLE (per-card, default: 7d visible, 30d hidden)
   ───────────────────────────────────────────────────────────────────── */

.traffic-30d {
    display: none !important;
}
.traffic-7d {
    display: inline !important;
}

/* Per-card override: when wrapper has show-30d, swap visibility */
.traffic-show-30d .traffic-7d {
    display: none !important;
}
.traffic-show-30d .traffic-30d {
    display: inline !important;
}

/* ─────────────────────────────────────────────────────────────────────
   REPORTS PAGE
   ───────────────────────────────────────────────────────────────────── */

/* Override blue gradient card-header for the reports filter card */
.reports-filter-card > .card-header {
    background: #f8f9fa !important;
    color: #2c3e50 !important;
    padding: 8px 16px !important;
    border-bottom: 1px solid #dee2e6 !important;
}

/* Prevent hover-lift on the reports filter card */
.reports-filter-card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06) !important;
}

/* Normalize Dash DatePickerSingle to match other inputs in height */
.reports-date-picker .DateInput_input {
    height: 36px !important;
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    line-height: 36px !important;
}

.reports-date-picker .SingleDatePickerInput {
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
}

.reports-date-picker .DateInput {
    width: 130px !important;
}