/* ============================================================
   FLIPLATINO — Light-theme override layer
   Se carga DESPUÉS del CSS de cada calculadora para ganar el cascade.
   Paleta: naranja #F05A28 · navy #0B1A3D · bg #fff/#f6f8fb/#eaeef6
   ============================================================ */

:root {
  --fl-orange: #F05A28;
  --fl-orange-dark: #FC5E1E;
  --fl-navy: #0B1A3D;
  --fl-gray: #4d5c80;
}

/* ---- Labels: texto navy legible (corrige los 'color:white') ---- */
label,
.field > label,
.re-kpi-label,
.kpi-label {
  color: var(--fl-navy) !important;
}

/* ---- Form controls: fondo claro, texto navy, borde sutil ---- */
.lf-control,
.lf-input,
input[type="text"],
input[type="number"],
input[type="tel"],
select,
textarea {
  background: #ffffff !important;
  color: var(--fl-navy) !important;
  border: 1px solid rgba(11, 26, 61, 0.18) !important;
  -webkit-text-fill-color: var(--fl-navy) !important;
}

.lf-control:focus,
.lf-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--fl-orange) !important;
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.15) !important;
  outline: none !important;
}

.lf-control::placeholder,
.lf-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(11, 26, 61, .55) !important;
}

select.lf-control option,
select.lf-input option,
select option {
  background: #ffffff;
  color: var(--fl-navy);
}

/* ---- Selects: vencer las reglas .select-wrap (degradado glass) ---- */
.select-wrap select,
.select-wrap select.lf-control,
.select-wrap.select--alt select,
.field select,
select.lf-control {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--fl-navy) !important;
  border: 1px solid rgba(11, 26, 61, 0.18) !important;
}

/* Flecha del select garantizada (por si el shorthand borró la del bg) */
.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fl-orange);
  font-size: 13px;
  pointer-events: none;
}

/* ---- Wrappers tipo "pill" que hardcodean el glass (mortgage/rental/creative) ---- */
.mm-input-with-suffix,
input.pill,
.pill-input,
.input-with-unit {
  background: #ffffff !important;
  background-image: none !important;
}
.mm-input-with-suffix input,
.mm-input-with-suffix .mm-suffix,
.mm-input-with-suffix span {
  color: var(--fl-navy) !important;
}

/* Inputs con regla a nivel de ID (solo un ID vence a otro ID) */
#balloonSchedule,
#loanAmount,
#monthlyPayment {
  background: transparent !important;
  background-image: none !important;
  color: var(--fl-navy) !important;
}

/* ---- Creative Finance: paneles oscuros → claros ---- */
.sum-card,
.res-card {
  background: #ffffff !important;
  border: 1px solid rgba(11, 26, 61, 0.12) !important;
}
.res-card { color: var(--fl-navy) !important; }
input.pill,
.pill {
  background: #ffffff !important;
  background-image: none !important;
  color: var(--fl-navy) !important;
}
.sec-title {
  background: rgba(240, 90, 40, 0.10) !important;
  color: var(--fl-navy) !important;
}

/* ============================================================
   FLAT & CLEAN — fuera sombras pesadas, glows y text-shadow
   ============================================================ */
*, *::before, *::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Tarjetas/paneles: definición con borde fino limpio (sin sombra) */
.main-content,
.calc-card,
.card,
.cf-outer,
.re-outer-container,
.results-panel,
.kpi-card,
.kpi-band > *,
.sum-card,
.res-card,
[class*="panel"],
[class*="card"] {
  border: 1px solid rgba(11, 26, 61, 0.10) !important;
}

/* Paneles de resultados: borde naranja sólido (sin glow) */
.results-panel,
[class*="results"] {
  border: 2px solid var(--fl-orange) !important;
}

/* Conservar SOLO el anillo de foco naranja (más específico que *) */
.lf-control:focus,
.lf-input:focus,
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.18) !important;
}

/* ============================================================
   AUDITORÍA DE CONTRASTE — texto invisible corregido
   ============================================================ */

/* A) Texto/íconos ilegibles sobre fondo claro → navy legible */
.arv-pill-label, .arv-pill-caret,
.re-pill-label, .re-pill-caret,
.arv-option-item,
button.tab:not(.active),
th {
  color: #0B1A3D !important;
}

/* Texto secundario (hints/status/sub-labels) → gris medio legible */
.hint, div.hint,
.lf-status,
.mbox-sub, .sum-sub {
  color: #4d5c80 !important;
}

/* Valores verdes positivos: verde oscuro legible (no verde claro) */
.mbox-val.g, .sum-value.c-green {
  color: #15803d !important;
}

/* Info-icon "?": badge navy con texto blanco */
.info-icon {
  background: #0B1A3D !important;
  color: #ffffff !important;
}

/* B) Dropdowns oscuros (arv) → claros, con texto navy */
.arv-pill-panel,
.arv-pill-panel.arv-panel-market,
.lf-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(11, 26, 61, 0.12) !important;
}
.arv-pill-panel *,
.lf-dropdown * {
  color: #0B1A3D !important;
}
/* Opción activa del dropdown: naranja sólido con texto blanco */
.arv-option-item--active {
  background: #F05A28 !important;
  color: #ffffff !important;
}

/* Encabezados de tablas de comps (vencer reglas con ID #comps-table) */
.re-comps-row #comps-table thead th, .re-comps-row #comps-table th,
#comps-table th, #comps-table thead th,
.comps-table th, .comps-table thead th,
.comps-spreadsheet-table th,
table th, thead th, tr th,
[class*="table"] th, [class*="comp"] th {
  color: #0B1A3D !important;
}

/* Cuerpo de tablas de comps → texto navy legible (ARV "Comparables" y "COMP Rentas").
   El tema oscuro original dejaba TODAS las celdas del cuerpo en blanco (color:white);
   al pasar al diseño claro quedaron ilegibles. Forzamos navy en direcciones + métricas. */
#comps-table tbody td, #comps-table tbody td *,
.comps-table tbody td, .comps-table tbody td *,
.re-comps-row #comps-table tbody tr td, .re-comps-row #comps-table tbody tr td *,
.re-comps-row #comps-table tbody tr.subject-row td,
.re-comps-row #comps-table tbody tr.subject-row td * {
  color: #0B1A3D !important;
}
/* Direcciones (enlaces Zillow) navy + subrayado; el hover naranja se conserva */
#comps-table tbody td a.zillow-link:link,
#comps-table tbody td a.zillow-link:visited,
.comps-table tbody td a.zillow-link:link,
.comps-table tbody td a.zillow-link:visited {
  color: #0B1A3D !important;
  text-decoration: underline;
}

/* Barras de título de chart: fondo gris turbio rgba(0,0,0,.18) → limpio + texto navy */
.ff-chart-title, .rf-chart-title,
.arv-chart-title, .re-chart-title,
[class*="chart-title"] {
  background: #f6f8fb !important;
  color: #0B1A3D !important;
}

/* Títulos de panel → navy legible */
.rf-panel-title, [class*="panel-title"] {
  color: #0B1A3D !important;
}

/* Botones/íconos/flechas secundarias tenues → navy legible */
.lf-confirm-cancel, .lf-help__trigger, .pf-arrow,
button.lf-help__trigger {
  color: #0B1A3D !important;
}

/* Valores con color semántico: tonos oscuros legibles */
.mbox-val.r, .sum-value.c-red { color: #c0392b !important; }
.badge { color: #15803d !important; }

/* Disclaimer del overlay de intro: cuerpo gris legible, título naranja */
.lf-disclaimer {
  color: #4d5c80 !important;
}
.lf-disclaimer-title {
  color: #F05A28 !important;
}
.lf-intro-sub {
  color: #0B1A3D !important;
}

/* Mensaje del diálogo de confirmación (texto claro invisible → navy) */
#lf-confirm-overlay .lf-confirm-msg,
.lf-confirm-msg {
  color: #0B1A3D !important;
}

/* ---- Texto BLANCO debe permanecer solo sobre superficies de color ---- */
/* Botones/CTAs naranjas y tabs activos: mantener texto blanco */
.tab-btn.active,
button.re-estimate-btn,
.re-estimate-btn,
[class*="estimate-btn"],
[class*="calc-btn"],
[class*="download"],
.btn-primary {
  color: #ffffff !important;
}

/* ============================================================
   RESPONSIVE — móvil (≤768px). Carga en shell + 9 iframes.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- SHELL: nav y barra de KPIs con scroll horizontal ---- */
  .bar, .bar-center, .navbar, .summary-bar, .kpi-band {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch;
  }
  .navbar { gap: 4px !important; }
  .navbar a { white-space: nowrap; flex: 0 0 auto; }
  .pane, .calc, .fullscreen-iframe, iframe.calc {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ---- INTRO overlay: fluido, sin desbordes ---- */
  .lf-intro-shell {
    width: 92vw !important;
    max-width: 92vw !important;
    left: 4vw !important;
    right: auto !important;
    box-sizing: border-box !important;
    padding: 18px 14px !important;
    overflow-x: hidden !important;
  }
  /* Forzar que NINGÚN hijo del overlay exceda el ancho disponible.
     min-width:0 permite que los flex-items encojan bajo su contenido intrínseco. */
  .lf-intro-shell * {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #lf-intro-overlay { overflow-x: hidden !important; }
  .lf-intro-search, #lfIntroForm {
    width: 100% !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .lf-intro-search input, #lfIntroForm input,
  .lf-intro-search button, #lfIntroForm button {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #lfIntroTitle img { max-width: 78% !important; height: auto !important; }
  .lf-intro-sub { font-size: 14px !important; }
  .lf-disclaimer { font-size: 11px !important; line-height: 1.45 !important; }

  /* ---- CALCULADORAS: toda cuadrícula multi-col → 1 columna ----
     Solo grid-template-columns:1fr (inofensivo en no-grids; no forzamos display). */
  .ff-calc-grid, .ff-grid, .ff-lender-grid, [class*="lender-grid"],
  .ff-section1, .ff-section2, .ff-section3, [class*="ff-section"],
  .calc-two-col, .two-col, .form-grid, .inputs-grid, .mm-inputs-grid,
  .form-row, .subject-row, .srow, .top-comp-row, .form-grid-2,
  [class*="cols-"], [class*="-split"], [class*="-grid"],
  [class*="-section"], [class*="three-col"], [class*="two-col"],
  [class*="grid-"], [class*="-cols"],
  .ff-main-calc, [class*="-col-"], [class*="main-calc"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-width: 0 !important;
    width: auto !important;
  }
  /* Liberar min-width/width fijos que fuerzan ancho desktop
     (ej. .ff-grid:900px, .cf-outer:1100px, .rf-outer:900px) */
  .ff-grid, .ff-calc-grid, .ff-main-calc, .calc, form,
  [class*="-grid"], [class*="-col-"], [class*="-zone"], [class*="-panel"],
  [class*="outer"], [class*="-outer"], [class*="container"], [class*="wrap"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Filas flex multi-columna → apilar verticalmente */
  .sow-row, [class*="results-row"], .mm-right-col, .re-comps-row,
  .lf-panel, [class*="-row"] {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }

  /* Tarjetas/paneles y cuerpo a ancho completo */
  .calc-card, .main-content, .card, .calc-card-wide,
  [class*="panel"], [class*="card"], [class*="outer"] {
    max-width: 100% !important;
    width: auto !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  /* Controles a ancho completo */
  .lf-input, .lf-control, input, select, textarea,
  .mm-input-with-suffix {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tipografía móvil */
  .card-title, h1 { font-size: 20px !important; }
  body { font-size: 13px; }

  /* Tablas de comps: scroll horizontal en vez de desbordar */
  .comps-table, #comps-table, [class*="comps-table"] {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   Menú desplegable de Reportes — blanco + naranja (sin negro)
   ============================================================ */
#reportDropdownMenu, .report-dd-menu {
  background: #ffffff !important;
  border: 2px solid #F05A28 !important;
  backdrop-filter: none !important;
  box-shadow: 0 14px 28px rgba(11, 26, 61, 0.18) !important;
}
.report-dd-item {
  background: #ffffff !important;
  color: #0B1A3D !important;
  box-shadow: inset 0 0 0 1px rgba(11, 26, 61, 0.12) !important;
}
.report-dd-item i { color: #F05A28 !important; }
.report-dd-item:hover {
  background: #F05A28 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  filter: none !important;
}
.report-dd-item:hover i { color: #ffffff !important; }

/* ============================================================
   BARRA INFERIOR MÓVIL (tipo app) + hoja "Más" — FlipLatino
   ============================================================ */
.fl-bottombar { display: none; }
.fl-more-sheet, .fl-more-overlay { display: none; }

@media (max-width: 768px) {
  /* Ocultar el nav superior de tabs (lo reemplaza la barra inferior) */
  #tabs .navbar { display: none !important; }

  .fl-bottombar {
    display: flex !important;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
    background: #ffffff;
    border-top: 1px solid rgba(11, 26, 61, 0.10);
    box-shadow: 0 -4px 16px rgba(11, 26, 61, 0.08);
    padding: 6px 4px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: stretch;
  }
  .fl-bb-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: 0; cursor: pointer; text-decoration: none;
    color: #4d5c80; font-size: 10px; font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif; padding: 5px 2px;
    transition: color .15s;
  }
  .fl-bb-item i { font-size: 18px; }
  .fl-bb-item.active { color: #F05A28 !important; }

  /* Espacio para que la barra no tape contenido (shell + iframes) */
  body { padding-bottom: 78px !important; }

  /* Hoja "Más" */
  .fl-more-overlay {
    display: block; position: fixed; inset: 0; z-index: 9998;
    background: rgba(11, 26, 61, 0.35); opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .fl-more-overlay.show { opacity: 1; pointer-events: auto; }
  .fl-more-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: #ffffff; border-radius: 18px 18px 0 0;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%); transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 -8px 30px rgba(11, 26, 61, 0.18);
  }
  .fl-more-sheet.show { transform: translateY(0); }
  .fl-more-grip { width: 40px; height: 4px; border-radius: 2px; background: rgba(11, 26, 61, 0.2); margin: 4px auto 12px; }
  .fl-more-title {
    font-family: 'Montserrat', sans-serif; font-weight: 800; color: #0B1A3D;
    font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
  }
  .fl-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .fl-more-link {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    background: #f6f8fb; border: 1px solid rgba(11, 26, 61, 0.10); border-radius: 12px;
    padding: 14px 12px; color: #0B1A3D; font-weight: 600; font-size: 13px;
    font-family: 'Inter', system-ui, sans-serif;
  }
  .fl-more-link i { color: #F05A28; font-size: 16px; width: 20px; text-align: center; }
  .fl-more-link.active { background: #F05A28; color: #fff; border-color: #F05A28; }
  .fl-more-link.active i { color: #fff; }
}


/* ============================================================
   LAYOUT WEB — nav centrado ancho completo + sidebar KPIs + contenido central
   (según diagrama de Luis; solo desktop ≥769px)
   ============================================================ */
@media (min-width: 769px) {
  /* 🟣 Nav: 2 filas centradas usando el ancho */
  #tabs .navbar {
    flex-wrap: wrap !important;
    justify-content: center !important;
    max-width: 720px;
    row-gap: 8px !important;
  }

  /* Cuerpo en 2 columnas: [sidebar KPIs | calculadora central] */
  .deal-body {
    display: flex; align-items: flex-start; gap: 16px;
    max-width: 1400px; margin: 0 auto; padding: 14px 16px 0;
  }
  /* 🟢 Sidebar KPIs (izquierda) */
  .kpi-rail { width: 232px; flex: 0 0 232px; }
  #kpiRail #kpiChips {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important; width: 100% !important; margin: 0 !important;
  }
  #kpiRail #kpiChips .kpi-card {
    width: auto !important; min-width: 0 !important; flex: none !important;
    margin: 0 !important;
  }
  #kpiRail #kpiChips .kpi-card:nth-child(5) { grid-column: auto !important; transform: none !important; }

  /* 🔵 Contenido central (toma el ancho restante) */
  .deal-body .wrap {
    flex: 1 1 auto !important; max-width: none !important;
    margin: 0 !important; padding: 0 !important; width: auto !important;
  }
  .deal-body .pane { height: calc(100vh - 120px) !important; }
}

/* En móvil: ocultar el sidebar de KPIs (la nav vive en la barra inferior) */
@media (max-width: 768px) {
  .deal-body { display: block; }
  .kpi-rail { display: none; }
}

/* Fix: body es flex-column → forzar ancho completo del deal-body (evita auto-margin shrink) */
@media (min-width: 769px) {
  body > .deal-body { width: 100% !important; box-sizing: border-box !important; }
}

/* Fix: iframe Rehab (.fullscreen-iframe es position:fixed full-width) → estático dentro de su columna */
@media (min-width: 769px) {
  .deal-body iframe.calc,
  .deal-body iframe.fullscreen-iframe {
    position: static !important;
    left: auto !important; right: auto !important; top: auto !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* ============================================================
   Fix & Flip — adaptar al ancho de columna central:
   "Detalles" full-width arriba + prestamistas (HML/PML) lado a lado debajo.
   Solo cuando la columna es chica (769–1100px de ancho del iframe).
   ============================================================ */
@media (min-width: 769px) {
  .ff-section1 { grid-template-columns: 1fr 1fr !important; }
  .ff-col-center { grid-column: 1 / -1 !important; order: -1 !important; }
  .ff-col-left  { order: 1 !important; }
  .ff-col-right { order: 2 !important; }
}

/* ============================================================
   KPI SIDEBAR PREMIUM — agrupado por fase + tarjetas blancas (dashboard)
   ============================================================ */
#kpiRail #kpiChips {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}
.kpi-group { margin-bottom: 16px; }
.kpi-group:last-child { margin-bottom: 0; }
.kpi-group-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: #F05A28; margin: 0 0 7px 3px;
}
.kpi-group-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px; }

#kpiRail #kpiChips .kpi-card {
  display: block !important;
  background: #ffffff !important;
  border: 1px solid rgba(11, 26, 61, 0.08) !important;
  border-radius: 12px !important;
  padding: 9px 9px 10px !important;
  box-shadow: 0 1px 3px rgba(11, 26, 61, 0.05) !important;
  text-align: left !important;
  width: auto !important; min-width: 0 !important; margin: 0 !important;
  transition: box-shadow .18s ease, transform .18s ease !important;
}
#kpiRail #kpiChips .kpi-card:hover {
  box-shadow: 0 5px 14px rgba(11, 26, 61, 0.10) !important;
  transform: translateY(-1px) !important;
}
#kpiRail #kpiChips .kpi-card::before { display: none !important; }
#kpiRail #kpiChips .kpi-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 8.5px !important; font-weight: 600 !important;
  text-transform: uppercase !important; letter-spacing: 0.3px !important;
  color: #8a96b0 !important; margin: 0 0 3px !important; line-height: 1.25 !important;
  display: block !important;
}
#kpiRail #kpiChips .kpi-value {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important; font-weight: 800 !important;
  color: #0B1A3D !important; line-height: 1 !important; display: block !important;
}

/* Micro-etiqueta de categoría en cada KPI (ubicación rápida) — naranja sutil */
#kpiRail #kpiChips .kpi-sub {
  display: inline-block !important;
  margin-top: 5px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 7px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.4px !important;
  color: #F05A28 !important;
  background: rgba(240, 90, 40, 0.10) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  line-height: 1.4 !important;
}

/* ============================================================
   KPI RAIL — caja flotante tipo "pop-up"
   Envuelve toda la sección de KPIs en una tarjeta elevada que
   "flota" (sticky) junto a la calculadora.
   ============================================================ */
#kpiRail #kpiChips {
  position: sticky !important;
  top: 14px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%) !important;
  border: 1px solid rgba(11, 26, 61, .08) !important;
  border-radius: 20px !important;
  padding: 18px 14px 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 8px rgba(11, 26, 61, .06),
    0 30px 60px -30px rgba(11, 26, 61, .50) !important;
  overflow: visible !important;
}

/* Acento de marca en el borde superior de la caja */
#kpiRail #kpiChips::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--fl-orange), var(--fl-orange-dark));
  z-index: 2;
}

/* Grupos sin borde/fondo propio: el contenedor exterior es la "caja" */
#kpiRail #kpiChips .kpi-group {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

/* Alquiler (Rental) — mismo apilado que Fix&Flip: Detalles full-width + Gastos/Proyecciones debajo */
@media (min-width: 769px) {
  .rf-section1 { grid-template-columns: 1fr 1fr !important; }
  .rf-col-center { grid-column: 1 / -1 !important; order: -1 !important; }
  .rf-col-left  { order: 1 !important; }
  .rf-col-right { order: 2 !important; }
}

/* Finanzas Creativas — .cf-outer tiene min-width:1100 (no cabe en columna central).
   Liberar cuando el iframe es más angosto que 1100 → se ajusta al ancho disponible. */
@media (max-width: 1100px) {
  .cf-outer {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ============================================================
   HEADER — logo centrado + 30% más grande; Reportes más abajo
   ============================================================ */
#tabs .left {
  justify-self: center !important;        /* logo centrado horizontalmente en su celda */
  align-self: center !important;          /* centrado verticalmente respecto al nav */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: auto !important;
}
.fl-logo {
  height: 53px !important;                 /* 20% más grande (44→53) */
  width: auto !important;
  margin: 0 !important;
  vertical-align: middle !important;
}
/* Lado derecho en columna: Nuevo Deal ARRIBA + Reportes ABAJO, parejos y premium */
#tabs > .right,
.bar > .right {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 9px !important;
  align-self: center !important;
  padding-bottom: 0 !important;
}
/* Botones del header: mismo ancho, texto centrado → alineados y premium */
#tabs > .right > #newDeal,
#tabs > .right > #financiamientoBtn,
#tabs > .right > #reportDropdownBtn {
  width: 162px !important;
  min-width: 162px !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
/* Financiamiento: link con apariencia de botón header (alinear contenido + sin subrayado) */
#tabs > .right > #financiamientoBtn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  font-size: 14px !important;   /* igualar a Nuevo Deal / Reportes */
}
#tabs > .right > #financiamientoBtn .header-label {
  font-size: 14px !important;
}

/* ============================================================
   INTRO POP-UP — REFRESH PREMIUM
   Backdrop con vidrio, tarjeta blanca elegante, acento de marca,
   input y CTA refinados. Carga al final → gana el cascade.
   ============================================================ */

/* Fondo: degradado navy con desenfoque tipo glass */
#lf-intro-overlay {
  background: radial-gradient(130% 120% at 50% -10%,
              rgba(11, 26, 61, .55),
              rgba(11, 26, 61, .82)) !important;
  -webkit-backdrop-filter: blur(10px) saturate(120%) !important;
  backdrop-filter: blur(10px) saturate(120%) !important;
}

/* Tarjeta: superficie blanca premium, borde sutil, sombra suave y profunda */
#lf-intro-overlay .lf-intro-shell {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%) !important;
  border: 1px solid rgba(11, 26, 61, .08) !important;
  border-radius: 26px !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 8px rgba(11, 26, 61, .06),
    0 40px 90px -30px rgba(11, 26, 61, .45) !important;
  overflow: hidden !important;
  row-gap: 18px !important;
}

/* Video de fondo: cubre la tarjeta, recortado a las esquinas redondeadas */
#lf-intro-overlay .lf-intro-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
}

/* Velo translúcido sobre el video para mantener el texto legible (frosted) */
#lf-intro-overlay .lf-intro-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
              rgba(246, 248, 252, .82) 0%,
              rgba(246, 248, 252, .74) 45%,
              rgba(246, 248, 252, .86) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Todo el contenido por encima del video + velo.
   Se excluye .lf-intro-close para no romper su position:absolute (esquina). */
#lf-intro-overlay .lf-intro-shell > *:not(.lf-intro-bg):not(.lf-intro-close) {
  position: relative;
  z-index: 2;
}

/* FIX autocompletado: el formulario (y su dropdown de direcciones) debe
   quedar por ENCIMA del disclaimer. Como ambos eran z-index:2, el aviso
   (posterior en el DOM) tapaba la lista de sugerencias. */
#lf-intro-overlay #lfIntroForm,
#lf-intro-overlay .lf-intro-search {
  z-index: 6 !important;
}
/* Dropdown de sugerencias: elevación clara sobre el video/contenido */
#lf-intro-overlay .lf-dropdown,
#lf-intro-overlay #lfIntroDropdown {
  box-shadow: 0 14px 44px rgba(11, 26, 61, .22) !important;
  z-index: 1000 !important;
}

/* Un solo formulario: ocultar la barra de búsqueda de una línea.
   (lfIntroAddress + hidden inputs siguen en el DOM para el payload) */
#lf-intro-overlay .lf-input-wrap { display: none !important; }

/* Dropdown propio de autocompletado sobre "Calle y número" */
#lf-intro-overlay .lf-af-dd {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid rgba(11, 26, 61, .12);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(11, 26, 61, .22);
  z-index: 1000;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
#lf-intro-overlay .lf-af-dd-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 12px;
  cursor: pointer;
}
#lf-intro-overlay .lf-af-dd-item:hover {
  background: rgba(240, 90, 40, .08);
}
#lf-intro-overlay .lf-af-dd-main {
  color: var(--fl-navy);
  font-size: 14px;
  font-weight: 600;
}
#lf-intro-overlay .lf-af-dd-sec {
  color: rgba(11, 26, 61, .55);
  font-size: 12px;
}

/* ---- Dirección completa: campos visibles editables (único formulario) ---- */
#lf-intro-overlay .lf-addr-fields {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: min(620px, 92%);
  margin: 8px auto 2px;
  display: grid;
  gap: 12px;
  text-align: left;
}
/* (1) Quitar la "X": el pop-up solo se cierra con "Omitir" */
#lf-intro-overlay .lf-intro-close { display: none !important; }

/* (2) Buscar en fila 2; Omitir en fila 3, centrado debajo de Buscar */
#lf-intro-overlay #lfIntroForm .lf-actions {
  grid-row: 2 !important;
}
#lf-intro-overlay #lfIntroForm #lfIntroSkipBtn {
  grid-row: 3 !important;
  grid-column: 2 !important;
  justify-self: center !important;
  margin: 4px auto 0 !important;
}

/* (3) Lupa de búsqueda dentro de "Calle y número" */
#lf-intro-overlay #lfFull_street {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234d5c80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  padding-right: 42px !important;
}
#lf-intro-overlay .lf-af-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
#lf-intro-overlay .lf-af-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
#lf-intro-overlay .lf-af-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: rgba(11, 26, 61, .6);
}
#lf-intro-overlay .lf-af-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(11, 26, 61, .14);
  border-radius: 12px;
  background: #ffffff;
  color: var(--fl-navy);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(11, 26, 61, .05) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#lf-intro-overlay .lf-af-input::placeholder { color: rgba(11, 26, 61, .55); }
#lf-intro-overlay .lf-af-input:focus {
  border-color: var(--fl-orange);
  box-shadow: 0 0 0 3px rgba(240, 90, 40, .14) !important;
}

/* X de cerrar: sólida para contraste garantizado sobre el video */
#lf-intro-overlay .lf-intro-close {
  background: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(240, 90, 40, .55) !important;
  color: var(--fl-orange) !important;
  box-shadow: 0 4px 12px rgba(11, 26, 61, .18) !important;
  z-index: 5 !important;
}
#lf-intro-overlay .lf-intro-close:hover {
  background: var(--fl-orange) !important;
  color: #ffffff !important;
}

/* Acento de marca: barra fina en el borde superior de la tarjeta */
#lf-intro-overlay .lf-intro-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fl-orange), var(--fl-orange-dark));
  z-index: 4;
}

/* Subtítulo / instrucción: tipografía nítida y legible */
#lf-intro-overlay .lf-intro-sub {
  color: var(--fl-navy) !important;
  font-weight: 600 !important;
  font-size: clamp(15px, 1.5vw, 19px) !important;
  letter-spacing: .2px !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
  max-width: 48ch !important;
  margin: 4px auto 20px !important;
}

/* Input: píldora blanca con sombra elegante y foco de marca */
#lf-intro-overlay .lf-input {
  height: 58px !important;
  background: #ffffff !important;
  color: var(--fl-navy) !important;
  border: 1px solid rgba(11, 26, 61, .12) !important;
  border-radius: 999px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  box-shadow:
    0 1px 2px rgba(11, 26, 61, .06),
    0 12px 30px -14px rgba(11, 26, 61, .28) !important;
  transition: box-shadow .18s ease, border-color .18s ease !important;
}

#lf-intro-overlay .lf-input::placeholder {
  color: rgba(11, 26, 61, .55) !important;
}

#lf-intro-overlay .lf-input:focus,
#lf-intro-overlay .lf-input:focus-visible {
  border-color: var(--fl-orange) !important;
  outline: none !important;
  box-shadow:
    0 0 0 4px rgba(240, 90, 40, .14),
    0 14px 32px -12px rgba(240, 90, 40, .32) !important;
}

/* CTA "Buscar": gradiente de marca, texto blanco, sombra y lift premium */
#lf-intro-overlay .lf-btn--primary {
  background: linear-gradient(135deg, var(--fl-orange), var(--fl-orange-dark)) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
  padding: 0 36px !important;
  line-height: 52px !important;
  border-radius: 999px !important;
  box-shadow:
    0 10px 24px -8px rgba(240, 90, 40, .55),
    0 2px 6px rgba(240, 90, 40, .30) !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease !important;
}

#lf-intro-overlay .lf-btn--primary:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.04) !important;
  box-shadow:
    0 16px 34px -8px rgba(240, 90, 40, .60),
    0 4px 10px rgba(240, 90, 40, .35) !important;
}

/* "Omitir": ghost discreto, navy translúcido */
#lf-intro-overlay #lfIntroSkipBtn,
#lf-intro-overlay .lf-btn--ghost {
  color: rgba(11, 26, 61, .55) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

#lf-intro-overlay #lfIntroSkipBtn:hover,
#lf-intro-overlay .lf-btn--ghost:hover {
  color: var(--fl-orange) !important;
  text-decoration: underline !important;
}

/* FIX: "Omitir" no recibía el clic porque .lf-actions (Buscar) ocupa la
   misma celda del grid con width:100% y se superponía encima.
   1) .lf-actions deja pasar el clic salvo en su propio botón.
   2) "Omitir" se eleva por encima para garantizar el hit-test. */
#lf-intro-overlay .lf-actions {
  pointer-events: none !important;
}
#lf-intro-overlay .lf-actions > * {
  pointer-events: auto !important;
}
#lf-intro-overlay #lfIntroSkipBtn {
  position: relative !important;
  z-index: 5 !important;
  pointer-events: auto !important;
}

/* Disclaimer: separado con un hairline, gris legible */
#lf-intro-overlay .lf-disclaimer {
  max-width: 72ch !important;
  margin: 20px auto 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(11, 26, 61, .08) !important;
  font-size: 11.5px !important;
  line-height: 1.55 !important;
  color: var(--fl-gray) !important;
}

/* ============================================================
   CALCULADORAS — VIEW PREMIUM (elegante y sobrio)
   Patrón compartido por las 9 calculadoras vía clases comunes.
   Reintroduce elevación SELECTIVA sobre el baseline flat,
   manteniendo limpio todo lo demás.
   ============================================================ */

/* --- Tarjeta de la calculadora: elevación sutil + acento de marca --- */
.main-content,
.calc-card {
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid rgba(11, 26, 61, .08) !important;
  border-radius: 22px !important;
  box-shadow:
    0 1px 2px rgba(11, 26, 61, .04),
    0 22px 48px -28px rgba(11, 26, 61, .38) !important;
}

/* Barra de acento de marca en el borde superior de la tarjeta */
.main-content::before,
.calc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, var(--fl-orange), var(--fl-orange-dark));
  z-index: 3;
}

/* Encabezado de la tarjeta: divisor suave + respiración */
.main-content > h1 {
  border-bottom: 1px solid rgba(11, 26, 61, .08) !important;
  padding: 24px 0 16px !important;
  margin: 0 0 4px !important;
  letter-spacing: .3px !important;
}

/* Subtítulo bajo el título (si existe en el HTML) */
.calc-subtitle {
  text-align: center !important;
  color: var(--fl-gray) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  max-width: 52ch !important;
  margin: 8px auto 18px !important;
}

/* --- Labels de campo: jerarquía y aire --- */
.field > label,
#rehabForm label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  letter-spacing: .2px !important;
  color: var(--fl-navy) !important;
  margin-bottom: 8px !important;
}

/* --- Controles: píldora blanca con profundidad sutil y foco de marca --- */
.lf-control,
.field input,
.field select,
.field textarea {
  min-height: 52px !important;
  border: 1px solid rgba(11, 26, 61, .14) !important;
  background: #ffffff !important;
  color: var(--fl-navy) !important;
  box-shadow: inset 0 1px 2px rgba(11, 26, 61, .05) !important;
  transition: border-color .16s ease, box-shadow .16s ease !important;
}

.lf-control:hover,
.field input:hover,
.field select:hover {
  border-color: rgba(11, 26, 61, .26) !important;
}

.lf-control:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--fl-orange) !important;
  box-shadow:
    0 0 0 4px rgba(240, 90, 40, .14),
    inset 0 1px 2px rgba(11, 26, 61, .04) !important;
  outline: none !important;
}

/* Caret del select: naranja consistente */
.select-wrap::after {
  color: var(--fl-orange) !important;
  font-size: 12px !important;
}

/* --- Info-icon "?": círculo limpio, hover de marca --- */
.info-icon {
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--fl-navy) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  vertical-align: middle;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease !important;
}

.info-icon:hover {
  background: var(--fl-orange) !important;
  transform: scale(1.08) !important;
}

/* --- Tooltip de ayuda: tarjeta premium --- */
.help-text,
.info-box {
  background: #ffffff !important;
  color: var(--fl-navy) !important;
  border: 1px solid rgba(11, 26, 61, .10) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 18px 44px -16px rgba(11, 26, 61, .45) !important;
}

/* --- Panel de resultado: el "héroe", elevación elegante con acento --- */
.results-panel {
  position: relative !important;
  background: #ffffff !important;
  color: var(--fl-navy) !important;
  border: 1px solid rgba(11, 26, 61, .08) !important;
  border-radius: 18px !important;
  padding: 24px 22px !important;
  box-shadow:
    0 1px 2px rgba(11, 26, 61, .04),
    0 20px 44px -24px rgba(240, 90, 40, .42) !important;
  overflow: hidden !important;
}

.results-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fl-orange), var(--fl-orange-dark));
}

/* ============================================================
   SOW (Presupuesto) — filas de partidas legibles
   Los inputs/selects venían con color #ccc (gris claro) sobre
   fondo casi blanco → invisibles. Texto y placeholder en naranja.
   ============================================================ */
#scopeContainer .sow-row input,
#scopeContainer .sow-row select {
  color: var(--fl-orange) !important;
  -webkit-text-fill-color: var(--fl-orange) !important;
  font-weight: 600 !important;
}

#scopeContainer .sow-row input::placeholder {
  color: rgba(240, 90, 40, .55) !important;
  -webkit-text-fill-color: rgba(240, 90, 40, .55) !important;
  opacity: 1 !important;
}

/* SOW: chips de "Agregar rápido" con ícono + texto alineados */
.sow-quickbar .sow-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}
.sow-quickbar .sow-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--fl-orange);
  stroke: currentColor;
  pointer-events: none;
}
.sow-quickbar .sow-chip__label {
  pointer-events: none;
}

/* Botón "Banco de Propiedades" (debajo del logo en el header) */
/* Mismo estilo y tamaño que el botón "Reportes" del shell + separado del logo */
.banco-prop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;                    /* separación del logo */
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: normal;
  color: #0B1A3D !important;           /* texto navy, como Reportes */
  text-decoration: none !important;
  white-space: nowrap;
  background: linear-gradient(#F05A28, #C2451C);  /* gradiente vertical, como Reportes */
  padding: 10px 22px;
  border: 2px solid #F8946A;           /* borde peach, como Reportes */
  border-radius: 999px;
  transition: transform .12s ease, filter .12s ease;
}
.banco-prop-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.banco-prop-btn svg { flex: 0 0 auto; }
.banco-prop-btn svg path { stroke: #fff; }   /* icono blanco, como Reportes */

/* ============================================================
   MÓVIL — Pop-up de inicio: centrado, ajustado y compacto
   Fix: .lf-addr-fields usaba grid-column:2 (layout escritorio) y se
   desbordaba a la derecha. En móvil forzamos UNA columna, ancho seguro,
   y reducimos logo + tipografías para optimizar el espacio.
   ============================================================ */
@media (max-width: 768px) {
  #lf-intro-overlay .lf-intro-shell {
    width: min(92vw, 420px) !important;
    max-width: min(92vw, 420px) !important;
    min-width: 0 !important;
    left: auto !important;   /* neutraliza el 'left: 4vw' viejo que descentraba */
    right: auto !important;
    margin-inline: auto !important;
    padding: 16px 16px 14px !important;
    row-gap: 10px !important;
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
  }
  /* Form en una columna; resetea las ubicaciones grid de escritorio */
  #lf-intro-overlay #lfIntroForm { grid-template-columns: 1fr !important; width: 100% !important; }
  #lf-intro-overlay .lf-addr-fields,
  #lf-intro-overlay #lfIntroForm .lf-actions,
  #lf-intro-overlay #lfIntroForm #lfIntroSkipBtn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-self: stretch !important;
  }
  #lf-intro-overlay .lf-addr-fields {
    display: grid !important;
    gap: 9px !important;
    text-align: left !important;
  }
  #lf-intro-overlay .lf-af-grid { grid-template-columns: 1fr 1fr !important; gap: 8px 10px !important; }
  /* "Omitir" centrado, ancho automático, debajo de "Buscar" */
  #lf-intro-overlay #lfIntroForm #lfIntroSkipBtn {
    width: auto !important;
    justify-self: center !important;
    margin: 2px auto 0 !important;
  }
  /* --- Tamaños optimizados para móvil --- */
  #lf-intro-overlay h1 img { height: 40px !important; }
  #lf-intro-overlay .lf-intro-sub { font-size: 13.5px !important; line-height: 1.35 !important; margin: 0 0 2px !important; }
  #lf-intro-overlay .lf-af-label { font-size: 10px !important; }
  #lf-intro-overlay .lf-af-input { height: 42px !important; font-size: 14px !important; }
  #lf-intro-overlay #lfFull_street { font-size: 14px !important; }
  #lf-intro-overlay .lf-disclaimer { font-size: 10px !important; line-height: 1.4 !important; }
  /* Botón "Buscar" a ancho completo (centrado y simétrico, como los campos) */
  #lf-intro-overlay #lfIntroForm .lf-actions { align-items: stretch !important; }
  #lf-intro-overlay #lfIntroForm .lf-actions .lf-btn,
  #lf-intro-overlay #lfIntroForm #lfIntroSearchBtn {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ============================================================
   MÓVIL — Header (shell) compacto
   Antes: logo enorme (305px) empujaba los botones de acción fuera de
   pantalla (inaccesibles) y el header medía 128px. Ahora: logo reducido +
   Banco en fila 1, y Nuevo Deal / Financiamiento / Reportes compactos en
   fila 2 (accesibles, sin recortar el dropdown de Reportes).
   ============================================================ */
@media (max-width: 768px) {
  #tabs.bar {
    display: flex !important;       /* base es grid; forzamos flex para envolver en 2 filas */
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 8px 12px !important;
    overflow: visible !important;
  }
  /* Fila 1: logo (izq) + Banco de Propiedades (der) */
  #tabs .left {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  #tabs .fl-logo { height: 26px !important; }
  #tabs #selectedChips { display: none !important; }
  #tabs .banco-prop-btn {
    margin-left: auto !important;
    margin-top: 0 !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  /* Centro (navbar oculto + search vacío): no ocupar espacio */
  #tabs .bar-center { display: none !important; }
  /* Fila 2: botones de acción compactos a 3 columnas iguales */
  #tabs .right {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    overflow: visible !important;
  }
  #tabs .right .header-btn,
  #tabs .right #newDeal,
  #tabs .right #financiamientoBtn,
  #tabs .right #reportDropdownBtn {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 8px 8px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-align: center !important;
  }
  /* Mostrar etiqueta + icono (vencer el icon-only de ≤900px) */
  #tabs .right .header-btn .header-label {
    display: inline !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #tabs .right .header-btn i { font-size: 12px !important; }
}
