/**
 * MEJORA VISUAL — Finanzas (#pg-rent)
 * Reglas: .cursor/rules/mejora-visual.mdc
 * v1 (2026-07-08) · cache finMv1 — canvas, hero foto, workspace 14px, paneles 48px+rayita, tabs claros
 * v2 (2026-07-09) · finWorkspaceMv2 — período + tabs: plano, más aire, iconos intactos
 * v7 (2026-07-10) · finScopeMv7 — panel finca = rent-serio-panel, 1 icono
 * Clase activadora: #pg-rent.mejora-visual
 */

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) {
  --mv-gap: 9px;
  --mv-gap-inner: 8px;
  --mv-pad: 12px;
  --mv-radius: 14px;
  --mv-canvas: #adb8c8;
  --mv-card: #ffffff;
  --mv-inner-canvas: #e2e8f0;
  --mv-accent: #1e293b;
  --mv-line: #cbd5e1;
  --mv-line-strong: #64748b;
  --mv-shadow:
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.1);
  --mv-head-rail: 28px;
  --mv-head-h: 48px;
  --mv-head-pad-y: 10px;
  --mv-head-rayita-h: 28px;
  --card-radius: 14px;
  --manto-serio-radius: 14px;
}


/* Canvas pagina (solo #pg-rent — el sheet no hereda padding/fondo de página) */
html body #pg-rent.finanzas-serio-v1.mejora-visual,
html body.light #pg-rent.finanzas-serio-v1.mejora-visual {
  background: var(--mv-canvas) !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  padding-bottom: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .section-body,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .section-content {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section > .section-body {
  padding-top: 0 !important;
}

/* Ritmo vertical — 9px */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section > .section-header {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section > .section-body,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section > .section-body > .section-content {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  row-gap: var(--mv-gap) !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) > .section > .section-body > .section-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-shell-body {
  gap: var(--mv-gap) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-resumen,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-liquidaciones,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-costos,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-calidad,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-nomina {
  gap: var(--mv-gap) !important;
}

/* Hero — bloque blanco + foto */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
  transform: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero::before,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero::after {
  display: none !important;
  content: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip {
  background-color: #1e293b !important;
  background-image:
    var(--mv-hero-scrim-leche),
    var(--hero-img) !important;
  background-size: auto, cover !important;
  background-position: center, center 42% !important;
  background-repeat: no-repeat, no-repeat !important;
  min-height: 102px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 3px solid var(--mv-line-strong) !important;
  border-radius: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  overflow: hidden !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero__head-row {
  min-height: 92px !important;
  padding: 14px var(--mv-pad) !important;
  position: relative !important;
  z-index: 1 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero__kicker,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero__ico-inline {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
  border-top: 1px solid var(--mv-line) !important;
  border-radius: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar-inner {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
  width: 100% !important;
  align-items: stretch !important;
}

html body[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-hero-toolbar-inner,
html body.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-hero-toolbar-inner,
html body[data-perfil='leche'] #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-hero-toolbar-inner,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar-inner.fin-serio-hero-toolbar-inner--tres {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  flex-direction: row !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-cta {
  transform: none !important;
}

/* Piel CTA: hereda .ani-add-btn / tokens --manto-tbar-* (mismo bloque que Eventos #cal-nuevo-btn) */

/* Workspace — bloque principal 14px */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-workspace {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-workspace__panes {
  padding: var(--mv-pad) var(--mv-pad) 9px !important;
  gap: var(--mv-gap) !important;
  background: var(--mv-inner-canvas) !important;
  flex: 0 0 auto !important;
}

/* Finca + período — tile blanco */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__sub {
  margin: 0 !important;
  padding: 0 var(--mv-pad) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-tab-subtitle {
  margin: 0 !important;
  padding: 0 2px !important;
  color: var(--texto-suave, #64748b) !important;
}

/* Pestañas cuadradas — activo claro (no B2 oscuro) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  color: var(--texto-base, #334155) !important;
  -webkit-text-fill-color: var(--texto-base, #334155) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square:hover {
  background: var(--gris-100, #f1f5f9) !important;
  border-color: var(--mv-line-strong) !important;
  filter: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square.rent-serio-tab--active {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid var(--mv-line-strong) !important;
  color: var(--texto-fuerte, #0f172a) !important;
  -webkit-text-fill-color: var(--texto-fuerte, #0f172a) !important;
  font-weight: 800 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 2px 4px rgba(15, 23, 42, 0.1) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-tema-tabs--split {
  gap: var(--mv-gap-inner) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-tabs-row--cuatro {
  gap: var(--mv-gap-inner) !important;
}

/* Contenido pestañas — lienzo continuo (9px arriba vía gap del workspace, sin padding extra) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-seccion-bajo {
  border-top: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  flex: 0 0 auto !important;
}

/* Paneles de datos — bloque blanco anidado */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
  transform: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel::before,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel::after,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h::before,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h::after {
  display: none !important;
  content: none !important;
}

/* Cabeceras bloque — 48px + rayita */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h:not(.rent-serio-panel-h--wrap) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: var(--mv-head-pad-y) var(--mv-pad) !important;
  height: var(--mv-head-h) !important;
  min-height: var(--mv-head-h) !important;
  max-height: var(--mv-head-h) !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: var(--mv-card) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-left: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h.rent-serio-panel-h--wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: var(--mv-head-pad-y) var(--mv-pad) 8px !important;
  height: auto !important;
  min-height: var(--mv-head-h) !important;
  max-height: none !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  background: var(--mv-card) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--mv-line) !important;
  border-left: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h .pes-serio-panel-htit-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h .serio-v1-icon-box.header-bloque {
  width: var(--mv-head-rail) !important;
  min-width: var(--mv-head-rail) !important;
  max-width: var(--mv-head-rail) !important;
  height: var(--mv-head-rail) !important;
  min-height: var(--mv-head-rail) !important;
  max-height: var(--mv-head-rail) !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h .rent-serio-htit-ico {
  width: var(--mv-head-rail) !important;
  height: var(--mv-head-rail) !important;
  object-fit: contain !important;
  display: block !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h .serio-v1-title-box--header-bloque {
  --hb-flank: var(--mv-head-rayita-h) !important;
  position: relative !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 0 0 10px !important;
  box-sizing: border-box !important;
  align-self: center !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-h .serio-v1-title-box--header-bloque::before {
  content: none !important;
  display: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-htit {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  color: var(--texto-fuerte, #0f172a) !important;
  text-shadow: none !important;
  margin: 0 !important;
  text-transform: none !important;
}

/* Cuerpos — lienzo interior */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-body {
  padding: var(--mv-pad) !important;
  background: var(--mv-inner-canvas) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel-body--chart {
  background: var(--mv-inner-canvas) !important;
  border-top: 1px solid var(--mv-line) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-ghist-kpi-row {
  background: transparent !important;
  padding: 8px var(--mv-pad) 0 !important;
}

/* Sub-tabs histórico — chips claros */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-ghist-tab {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  color: var(--texto-suave, #64748b) !important;
  border-radius: 8px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-ghist-tab--active {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
  border: 1px solid var(--mv-line-strong) !important;
  color: var(--texto-fuerte, #0f172a) !important;
  font-weight: 800 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

/* KPI grid — tarjetas compactas (icono + etiqueta/valor apilados) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-kpi-grid {
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-kpis .rent-kpi-cell {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 68px !important;
  max-height: none !important;
  padding: 8px 10px 8px 14px !important;
  border-radius: 11px !important;
  background: linear-gradient(168deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%) !important;
  border: 1px solid var(--mv-line) !important;
  border-left: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  transform: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__ico {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
  margin: 0 !important;
  filter: contrast(1.04) saturate(1.06) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12)) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__head {
  display: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__emoji {
  flex: 0 0 28px !important;
  width: 28px !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__lbl {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: var(--texto-suave, #64748b) !important;
  margin: 0 !important;
  min-width: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: 100% !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell__val {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--rent-kpi-accent, #0f172a) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

/* Sin raya izquierda en KPIs (decisión usuario jul 2026) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell::before,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-kpis .rent-kpi-cell::before {
  content: none !important;
  display: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell:hover,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-kpis .rent-kpi-cell:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  border-top-color: var(--mv-line-strong) !important;
  border-right-color: var(--mv-line-strong) !important;
  border-bottom-color: var(--mv-line-strong) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

/* Legacy KPI sin estructura nueva (calidad / carne) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell > div:first-child:not(.rent-kpi-cell__head),
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-kpis .rent-kpi-cell > div:first-child:not(.rent-kpi-cell__head) {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--texto-suave, #64748b) !important;
  margin-bottom: 6px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis .rent-kpi-cell > div:last-child:not(.rent-kpi-cell__val),
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-kpis .rent-kpi-cell > div:last-child:not(.rent-kpi-cell__val) {
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--rent-kpi-accent, #0f172a) !important;
}

/* Estado vacío — más aire y lectura */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-empty {
  padding: 16px 14px !important;
  border-radius: 12px !important;
  border: 1px dashed var(--mv-line-strong) !important;
  background: var(--mv-card) !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-empty__title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  margin-bottom: 8px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-empty__txt {
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: var(--texto-base, #334155) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-cos-cats-grid {
  gap: var(--mv-gap-inner) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-cat-card,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-cos-row,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-liq-row {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-nomina-cta {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
}

/* v1 — Radius 14px unificado (pisa index-inline / Pebble) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel.fin-serio-panel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero.fin-serio-panel--hero,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-workspace.rent-finanzas-workspace,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-panel.rent-serio-panel {
  border-radius: var(--mv-radius) !important;
  border: 1px solid var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
  overflow: hidden !important;
}

html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418.mejora-visual .fin-serio-panel.fin-serio-panel,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418.mejora-visual .rent-serio-panel.rent-serio-panel {
  transform: none !important;
}

html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418.mejora-visual .fin-serio-panel.fin-serio-panel:hover,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418.mejora-visual .rent-serio-panel.rent-serio-panel:hover {
  transform: none !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar {
  border-radius: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar {
  border-radius: 0 !important;
}

/* ══ v2 — Workspace: período + Indicadores + 4 tiles (iconos sin tocar) ══ */

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-workspace__panes {
  gap: var(--mv-gap) !important;
}

/* Anula layout legacy .rent-fin-quick (index-inline) — panel estándar */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-fin-quick.rent-fin-scope-panel {
  display: block !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line-strong) !important;
  border-radius: var(--mv-radius) !important;
  box-shadow: var(--mv-shadow) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-panel .rent-serio-panel-htit {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-panel__body {
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__lbl {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  line-height: 1.2 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__ctrls {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__ctrls .rent-fin-quick__period-row,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__ctrls.rent-fin-quick__period-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__lbl {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  background: transparent !important;
  border-radius: 0 !important;
  align-self: center !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__period-wrap .rent-fin-quick__period-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__ctrls #rent-periodo-sel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__period-row #rent-periodo-sel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__period-row #rent-periodo-sel.rent-fin-quick__sel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-compact__period #rent-periodo-sel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-compact__period #rent-periodo-sel.rent-fin-quick__sel,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__sel.rent-serio-select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  min-height: 38px !important;
  height: 38px !important;
  max-height: 38px !important;
  padding: 0 36px 0 12px !important;
  border-radius: 9px !important;
  border: 1px solid var(--mv-line) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  -webkit-text-fill-color: var(--texto-fuerte, #0f172a) !important;
  text-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5L6 8l3-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 12px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__period-row #rent-periodo-sel:hover,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__period-row #rent-periodo-sel:focus {
  border-color: var(--mv-line-strong) !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: #ffffff !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__mes-cal.rent-input-month.rent-fin-quick__mes-cal--on {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid var(--mv-line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-scope-toolbar__rango,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-quick__rango {
  width: 100% !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Bloque tabs — tarjeta única */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-tema-strip.rent-finanzas-tema-strip--simple {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-tema-tabs.rent-finanzas-tema-tabs--split {
  gap: 0 !important;
}

/* Indicadores — cabecera plana 48px (sin gradiente tbar) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind.rent-serio-tab--active,
html body.light #pg-rent.finanzas-serio-v1.mejora-visual .rent-serio-tab.rent-serio-tab--solo-ind,
html body.light #pg-rent.finanzas-serio-v1.mejora-visual .rent-serio-tab.rent-serio-tab--solo-ind.rent-serio-tab--active {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 14px !important;
  gap: 10px !important;
  justify-content: flex-start !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 4px solid var(--mv-accent) !important;
  border-bottom: 1px solid var(--mv-line) !important;
  background: var(--mv-card) !important;
  background-image: none !important;
  color: var(--texto-fuerte, #0f172a) !important;
  -webkit-text-fill-color: var(--texto-fuerte, #0f172a) !important;
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind:hover,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind:active {
  background: var(--mv-card) !important;
  border-color: var(--mv-line) !important;
  border-left-color: var(--mv-accent) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind .rent-serio-tab__ico {
  width: 28px !important;
  height: 28px !important;
  filter: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind .rent-serio-tab__txt {
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Historiales — lista vertical 9px (no tiles cuadrados) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-finanzas-tabs-row--cuatro {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  padding: 0 !important;
  gap: 9px !important;
  background: transparent !important;
  border-top: none !important;
  grid-template-columns: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square {
  aspect-ratio: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 52px !important;
  height: auto !important;
  max-height: none !important;
  width: 100% !important;
  padding: 10px 12px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px solid var(--mv-line) !important;
  color: var(--texto-base, #334155) !important;
  -webkit-text-fill-color: var(--texto-base, #334155) !important;
  box-shadow: none !important;
  text-align: left !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square:hover {
  background: #ffffff !important;
  border-color: var(--mv-line-strong) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  filter: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square.rent-serio-tab--active {
  background: #ffffff !important;
  border: 1px solid var(--mv-line-strong) !important;
  color: var(--texto-fuerte, #0f172a) !important;
  -webkit-text-fill-color: var(--texto-fuerte, #0f172a) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  filter: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square .rent-serio-tab__ico {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter: none !important;
  flex-shrink: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square .rent-serio-tab__txt {
  margin-top: 0 !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square.rent-serio-tab--active .rent-serio-tab__txt {
  font-weight: 800 !important;
}

/* Subtítulo pie del bloque tabs */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-tab-subtitle {
  margin: 0 !important;
  padding: 10px 12px 12px !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-align: center !important;
  color: var(--texto-suave, #64748b) !important;
  background: var(--mv-card) !important;
  border-top: 1px solid var(--mv-line) !important;
}

/* Hero perfil Carne — foto HD 1536×1024, encuadre completo (sin letterbox 256px) */
html body[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.manto-perfil-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.manto-demo-vitrina-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light.manto-perfil-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,
html body.light.manto-demo-vitrina-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip {
  min-height: 118px !important;
  background-image:
    var(--mv-hero-scrim-leche),
    var(--hero-img) !important;
  background-size: auto, cover !important;
  background-position: center, center 38% !important;
  background-repeat: no-repeat, no-repeat !important;
}

html body[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero__head-row,
html body.manto-perfil-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero__head-row,
html body.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero__head-row,
html body.manto-demo-vitrina-carne #pg-rent.finanzas-serio-v1.mejora-visual .fin-serio-panel--hero .dash-serio-hero__head-row {
  min-height: 108px !important;
}

/* ══ Nómina — pestaña + modales liquidación / recibo ══ */
/* NO forzar display aquí: rompe el toggle de pestañas (_rentTab pone display:none). */

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-nomina:not([aria-hidden="true"]):not([hidden]) {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--mv-gap) !important;
  flex: 0 0 auto !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-nomina[aria-hidden="true"],
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-nomina[hidden] {
  display: none !important;
}

/* Carne: Calidad de leche no aplica — ocultar tab y panel (reforzado frente a grid de tiles) */
html body[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual #rent-tb-cal,
html body.manto-perfil-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tb-cal,
html body.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tb-cal,
html body.manto-demo-vitrina-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tb-cal,
html body[data-perfil='carne'] #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-calidad,
html body.manto-perfil-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-calidad,
html body.manto-piel-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-calidad,
html body.manto-demo-vitrina-carne #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-calidad {
  display: none !important;
}
/* Historiales ya no usa rejilla 3/4: lista vertical (ver bloque .rent-hist-slot-home abajo). */

/* Tabs: respuesta inmediata (sin animaciones lentas) */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--square,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-serio-tab.rent-serio-tab--solo-ind {
  transition: border-color 0.08s linear, box-shadow 0.08s linear !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-finanzas-seccion-bajo > [id^="rent-tab-"] {
  transition: none !important;
  animation: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-nomina-resumen:empty {
  display: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-acts {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--mv-gap-inner) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--mv-gap-inner) !important;
}

@media (max-width: 640px) {
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi {
  background: var(--mv-card) !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi__lbl {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi__val {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  line-height: 1.15 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-kpi__val--sm {
  font-size: 13px !important;
  font-weight: 800 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-act-btn {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 11px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  width: 100% !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-nomina-empty {
  font-size: 13px !important;
  color: var(--texto-suave, #64748b) !important;
  padding: 12px !important;
  text-align: center !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--mv-line) !important;
  border-radius: 11px !important;
  background: var(--mv-card) !important;
  margin-bottom: 8px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-row__tit {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-row__sub,
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-row__nums {
  font-size: 12px !important;
  color: var(--texto-suave, #64748b) !important;
  margin-top: 4px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-badge {
  display: inline-block !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-badge--ok {
  background: #dcfce7 !important;
  color: #166534 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-badge--draft {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-recibos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-recibo-btn {
  appearance: none !important;
  border: 1px solid var(--mv-line) !important;
  background: var(--gris-50, #f8fafc) !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--texto-base, #334155) !important;
  cursor: pointer !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-hist-btn {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  padding: 0 12px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .nomina-pais-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-pais-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo, #m-nomina-trabajador) .nomina-row--inactivo {
  opacity: 0.55 !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-nom {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-sub {
  font-size: 11px !important;
  color: var(--texto-suave, #64748b) !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-num {
  font-weight: 800 !important;
  white-space: nowrap !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-footer.bit-bitacora-footer-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-footer .bit-bitacora-foot-cancel,
:is(#m-nomina-finca, #m-nomina-liq, #m-nomina-recibo) .nomina-liq-footer .bit-bitacora-foot-save {
  flex: none !important;
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
}

:is(#m-nomina-liq, #m-nomina-recibo).tools-action-modal.bitacora-serio-v2.modal-nuevo .mbox.bitacora-mbox,
:is(#m-nomina-liq, #m-nomina-recibo).tools-action-modal.bitacora-serio-v2 .nomina-modal-serio-body {
  /* hereda shell de #m-nomina-finca en index-inline; refuerzo scroll */
}

#m-nomina-recibo .nomina-recibo-slip {
  background: #ffffff !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  font-size: 13px !important;
  color: var(--texto-base, #334155) !important;
}

#m-nomina-recibo .nomina-recibo-slip__finca {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--texto-suave, #64748b) !important;
}

#m-nomina-recibo .nomina-recibo-slip__tit {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  margin-top: 4px !important;
}

#m-nomina-recibo .nomina-recibo-slip__meta {
  font-size: 11px !important;
  color: var(--texto-suave, #64748b) !important;
  margin-top: 4px !important;
}

#m-nomina-recibo .nomina-recibo-slip__emp {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 14px 0 !important;
  padding: 10px !important;
  background: var(--gris-50, #f8fafc) !important;
  border-radius: 10px !important;
}

#m-nomina-recibo .nomina-recibo-slip__emp span {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
}

#m-nomina-recibo .nomina-recibo-slip__tbl {
  width: 100% !important;
  border-collapse: collapse !important;
}

#m-nomina-recibo .nomina-recibo-slip__tbl td {
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--gris-200, #e2e8f0) !important;
}

#m-nomina-recibo .nomina-recibo-slip__net td {
  border-top: 2px solid var(--texto-fuerte, #0f172a) !important;
  border-bottom: none !important;
  font-size: 15px !important;
}

#m-nomina-recibo .nomina-recibo-slip__pie {
  font-size: 10px !important;
  color: var(--texto-muted, #94a3b8) !important;
  margin-top: 12px !important;
  line-height: 1.4 !important;
}

/* Otros ingresos — lista en pestaña Gastos */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-ing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--gris-300, #cbd5e1);
  border-radius: 10px;
  background: var(--gris-0, #fff);
  margin-bottom: 8px;
  border-left: 3px solid var(--rent-ing-accent, #166534);
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-cat-card--ing {
  border-color: rgba(22, 101, 52, 0.25);
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-ing-panel {
  margin-bottom: 12px;
}

#m-ingreso.finanzas-modal-serio-v1.bitacora-serio-v2 .m-ingreso-serio-bloque--obs {
  background: var(--manto-newmodal-h-bg-light) !important;
  border: 1px solid var(--manto-newmodal-h-border-color-light, #94a3b8) !important;
  box-shadow: none !important;
}

#m-ingreso.finanzas-modal-serio-v1.bitacora-serio-v2 .m-ingreso-serio-bloque--obs .fg {
  margin-bottom: 0 !important;
}

/* Registrar gasto (#m-costo) — superficies unificadas (14px = OCR / kicker) */
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo {
  --m-costo-surface-r: 14px;
  --m-costo-surface-bg: linear-gradient(168deg, #ffffff 0%, #fafbfc 45%, #f1f5f9 100%);
  --m-costo-surface-border: 1px solid #d1d9e2;
  --m-costo-surface-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .modal-serio-body.m-costo-modal-serio-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .modal-serio-body.m-costo-modal-serio-body > * {
  flex: 0 0 auto !important;
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transform: none !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo.ani-modal-serio-v2 .ani-serio-v2-card.m-costo-serio-bloque {
  margin-bottom: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar,
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card,
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .ani-serio-v2-card.m-costo-serio-bloque,
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ani-resumen {
  border-radius: var(--m-costo-surface-r) !important;
  border: var(--m-costo-surface-border) !important;
  box-shadow: var(--m-costo-surface-shadow) !important;
  box-sizing: border-box !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  min-height: 0 !important;
  background: var(--m-costo-surface-bg) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card__hint {
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
  font-weight: 700 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview {
  position: relative !important;
  min-height: 76px !important;
  border: 1px dashed var(--gris-400, #94a3b8) !important;
  border-radius: 10px !important;
  background: var(--gris-0, #fff) !important;
  overflow: hidden !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__sheet {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  padding: 12px 14px 28px !important;
  margin: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line {
  display: block !important;
  height: 0 !important;
  border: none !important;
  border-top: 1px dotted var(--gris-300, #cbd5e1) !important;
  margin: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line:nth-child(1) {
  width: 42% !important;
  margin-right: auto !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line:nth-child(2) {
  width: 88% !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line:nth-child(3) {
  width: 72% !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line:nth-child(4) {
  width: 95% !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__line:nth-child(5) {
  width: 58% !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__lbl {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: var(--texto-muted, #94a3b8) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 35%, #fff 100%) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview__img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: var(--gris-0, #fff) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview--filled .m-costo-ocr-preview__sheet,
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-preview--filled .m-costo-ocr-preview__lbl {
  display: none !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card__btn-ico {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
  display: block !important;
}

/* legacy topbar — mantener por si queda referencia */
#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  min-height: 0 !important;
  background: var(--m-costo-surface-bg) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar__hint {
  flex: 1 1 140px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--texto-suave, #64748b) !important;
  font-weight: 600 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar__ocr {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  color: var(--texto-fuerte, #0f172a) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar__ocr img {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .serio-v1-icon-box .m-costo-modal-h-ico {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  display: block !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .ani-serio-v2-card.m-costo-serio-bloque {
  margin: 0 !important;
  padding: 12px 14px !important;
  background: var(--m-costo-surface-bg) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .ani-serio-v2-subl {
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid var(--gris-200, #e2e8f0) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .flbl {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  margin-bottom: 5px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .fi {
  border-radius: 10px !important;
  min-height: 40px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  background: var(--gris-0, #fff) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .fi:focus {
  border-color: var(--gris-400, #94a3b8) !important;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.35) !important;
  outline: none !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .fg {
  margin-bottom: 10px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .fg:last-child {
  margin-bottom: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque .fr {
  gap: 10px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-fi-text.fi {
  min-height: 56px !important;
  resize: vertical !important;
  line-height: 1.4 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-row__lbl {
  display: block !important;
  margin-bottom: 8px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opt {
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  background: var(--gris-0, #fff) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opt:has(input:checked) {
  border-color: var(--gris-400, #94a3b8) !important;
  background: var(--gris-100, #f1f5f9) !important;
  box-shadow: inset 0 0 0 1px rgba(51, 65, 85, 0.08) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opt input[type="radio"] {
  flex-shrink: 0 !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-lote-pick {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-lote-chips {
  border-radius: 12px !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px dashed var(--gris-300, #cbd5e1) !important;
  padding: 10px !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ani-resumen {
  margin: 0 !important;
  padding: 12px 14px !important;
  background: var(--m-costo-surface-bg) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque--obs {
  background: var(--manto-newmodal-h-bg-light) !important;
  border: 1px solid var(--manto-newmodal-h-border-color-light, #94a3b8) !important;
  box-shadow: var(--m-costo-surface-shadow) !important;
  border-radius: var(--m-costo-surface-r) !important;
}

#m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-serio-bloque--obs .fg {
  margin-bottom: 0 !important;
}

@media (max-width: 520px) {
  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opts {
    grid-template-columns: 1fr !important;
  }

  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .cos-asig-opt {
    min-height: 42px !important;
    font-size: 12px !important;
  }

  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-ocr-card__btn {
    width: 100% !important;
  }

  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #m-costo.finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-topbar__ocr {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar-inner,
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar-inner.fin-serio-hero-toolbar-inner--tres {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar .btn.bg_.ani-add-btn {
    font-size: 12px !important;
    padding: 0 8px !important;
  }
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar .btn.bg_.ani-add-btn .ani-add-ico {
    width: 20px !important;
    height: 20px !important;
  }
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .fin-serio-hero-toolbar .fin-hero-ico-ing {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ── Registrar gasto / Otro ingreso — pie en UNA fila (2 o 3 botones) ──
   Flex nowrap; icono+texto juntos al centro (gap fijo 6px). */
:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row.cos-modal-actions.bit-bitacora-footer-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.bitacora-btn.m-costo-foot-act {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  margin-top: 0 !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0 8px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  text-align: center !important;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.m-costo-foot-act.m-costo-foot-del {
  flex: 1 1 0 !important;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.m-costo-foot-act.m-costo-foot-del[style*="display:none"],
:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.m-costo-foot-act.m-costo-foot-del[style*="display: none"] {
  display: none !important;
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.m-costo-foot-act > .m-costo-foot-act-ico {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  align-self: center !important;
  pointer-events: none !important;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row > .btn.m-costo-foot-act > .m-costo-foot-act-lbl {
  flex: 0 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Normalización visual del arte (misma ranura 18px, distinto relleno en PNG) */
:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row .m-costo-foot-del-ico {
  transform: scale(1.28);
  transform-origin: center center;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row .bit-bitacora-foot-cancel-ico {
  transform: scale(0.94);
  transform-origin: center center;
}

:is(#m-costo, #m-ingreso).finanzas-modal-serio-v1.bitacora-serio-v2.modal-nuevo .m-costo-foot-row .bit-bitacora-foot-save-ico {
  transform: scale(1.02);
  transform-origin: center center;
}

/* ── Calidad de leche — Historial de calidad ── */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-calidad {
  gap: 9px !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-calidad #cal-kpis:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-tab-calidad > .rent-cal-hist-panel {
  margin-top: 0 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 22px 16px 20px !important;
  text-align: center !important;
  border-radius: 12px !important;
  border: 1px dashed var(--mv-line-strong, #64748b) !important;
  background: var(--mv-card, #ffffff) !important;
  box-shadow: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__msg {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 300px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--texto-base, #334155) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__btn.rent-cal-cta {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  border: var(--manto-btn-gris-ok-border) !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
  text-shadow: none !important;
  cursor: pointer !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__btn.rent-cal-cta:hover {
  border: var(--manto-btn-gris-ok-border-hover) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__btn.rent-cal-cta:active {
  background: var(--manto-btn-gris-ok-bg-active) !important;
  opacity: 0.96 !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__btn-ico {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  display: block !important;
  pointer-events: none !important;
}

html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #cal-hist .cal-hist-empty__btn-lbl {
  flex: 0 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* ── Fase 0 — P&L desglose (#rent-pl-desglose) ── */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
  padding: 12px 14px;
  background: var(--mv-card, #fff);
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: var(--mv-shadow);
  position: relative;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose[hidden] {
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose::before {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__sec {
  padding-left: 0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__sec-tit {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave, #64748b);
  margin: 0 0 6px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__row--strong {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--mv-line, #cbd5e1);
  font-weight: 800;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__row-lbl {
  color: var(--texto-base, #334155);
  font-weight: 600;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__row--strong .rent-pl-desglose__row-lbl {
  color: var(--texto-fuerte, #0f172a);
  font-weight: 800;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__row-val {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__result {
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 12px;
  background: #f8fafc;
  position: relative;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__result::before {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__result-lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--texto-suave, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__result-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--rent-pl-accent, #166534);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 2px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__result-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-suave, #64748b);
  margin-top: 2px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix {
  padding-left: 8px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix-bars {
  display: flex;
  height: 10px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--mv-line, #cbd5e1);
  background: #e2e8f0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix-seg--leche {
  background: #64748b;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix-seg--ganado {
  background: #94a3b8;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix-seg--otros {
  background: #cbd5e1;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-pl-desglose__mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-suave, #64748b);
}

/* Fase 1 — atajos de categoría en listas vacías */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-empty-sug {
  padding: 16px 12px 18px !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-sug-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-sug-chip {
  appearance: none;
  border: 1px solid var(--mv-line, #cbd5e1);
  background: #fff;
  color: var(--texto-fuerte, #0f172a);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-sug-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-fin-sug-chip--ing {
  border-color: color-mix(in srgb, #166534 35%, #cbd5e1);
}

/* Fase 2 — alerta litros + margen lotes + atajos ventas */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alerta-litros[hidden],
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes[hidden],
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-ventas-atajos[hidden] {
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alerta-litros__box {
  margin: 0 0 10px;
  padding: 10px 12px 10px 16px;
  background: #fff;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: var(--mv-shadow);
  position: relative;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alerta-litros__box::before {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alerta-litros__tit {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #92400e;
  margin: 0 0 4px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alerta-litros__txt {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
  line-height: 1.35;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__box {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: var(--mv-shadow);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__tit {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__sub {
  font-size: 11px;
  color: var(--texto-suave, #64748b);
  margin: 2px 0 8px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__row {
  padding: 8px 0;
  border-top: 1px solid var(--mv-line, #cbd5e1);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__nom {
  font-size: 13px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__n {
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__vals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-base, #334155);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-margen-lotes__link {
  appearance: none;
  margin-top: 8px;
  border: 1px solid var(--mv-line, #cbd5e1);
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--texto-fuerte, #0f172a);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-ventas-atajos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

/* ── Fase 4: caja · break-even · proyección · alertas ── */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__box {
  margin: 0 0 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: var(--mv-shadow);
  position: relative;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__box::after {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__tit {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__sub {
  font-size: 11px;
  color: var(--texto-suave, #64748b);
  margin: 2px 0 10px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__sec-tit {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-suave, #64748b);
  margin: 10px 0 6px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__cell {
  padding: 10px 12px;
  background: var(--gris-50, #f8fafc);
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 12px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-suave, #64748b);
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__val {
  font-size: 16px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__hint {
  font-size: 10px;
  font-weight: 600;
  color: var(--texto-muted, #94a3b8);
  margin-top: 2px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__nota {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.35;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-fin__box {
  margin: 0 0 8px;
  padding: 10px 12px 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  position: relative;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-fin__box::after {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-fin__tit {
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-fin__txt {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
  line-height: 1.35;
  margin-top: 2px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-liq-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-liq-chip--ok {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-liq-chip--pend {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
@media (max-width: 520px) {
  html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-caja-flujo__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Hub Indicadores + sheet inferior ── */
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-detalle-stack {
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-compact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-alertas-compact[hidden] {
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) #rent-kpis.rent-serio-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-detalle {
  margin: 0;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-detalle__tit {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  margin: 0 0 9px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-detalle__grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 10px 12px 12px;
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: var(--mv-shadow);
  position: relative;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  min-height: 72px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card::after {
  content: none !important;
  display: none !important;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__ico-wrap {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__tit {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  line-height: 1.25;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.3;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card__chev {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  color: var(--texto-muted, #94a3b8);
  line-height: 1;
}
html body :is(#pg-rent.finanzas-serio-v1.mejora-visual, #m-rent-detalle.rent-detalle-sheet, #m-rent-historial.rent-detalle-sheet, #m-rent-vista-rapida.rent-detalle-sheet) .rent-hub-card:active {
  background: var(--gris-50, #f8fafc);
}

#m-rent-detalle.rent-detalle-sheet .rent-det-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#m-rent-detalle.rent-detalle-sheet .rent-serio-panel--in-sheet {
  margin: 0;
}
#m-rent-detalle.rent-detalle-sheet .rent-caja-flujo__box,
#m-rent-detalle.rent-detalle-sheet .rent-margen-lotes__box,
#m-rent-detalle.rent-detalle-sheet .rent-pl-desglose {
  margin-bottom: 0;
}
@media (max-width: 380px) {
  html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Orden lógico Finanzas v2: período → números → profundizar → historiales ── */
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-fin-quick.rent-fin-scope-compact {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  background: #fff !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 12px !important;
  box-shadow: var(--mv-shadow) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__finca {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__finca-ico {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__finca-nom {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  line-height: 1.2;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__period {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__lbl {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-suave, #64748b);
  flex-shrink: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__period #rent-periodo-sel,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__period #rent-periodo-sel.rent-fin-quick__sel {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  background: var(--gris-50, #f8fafc) !important;
  color: var(--texto-fuerte, #0f172a) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-scope-compact__rango {
  flex: 1 1 100%;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.3;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-tb-resumen-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head {
  margin: 0;
  padding: 0 2px;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head__kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-suave, #64748b);
  margin: 0 0 4px;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head .rent-fin-tab-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--texto-fuerte, #0f172a);
  line-height: 1.35;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle {
  margin: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__tit {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-suave, #64748b);
  margin: 0 0 2px;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
  margin: 0 0 10px;
  line-height: 1.35;
}
/* Historiales: lista vertical (misma piel que Profundizar) — gana a index-inline grid 3/4 */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home {
  margin: 0 !important;
  padding: 0 0 8px !important;
  border-top: none !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-finanzas-nav-lists.rent-finanzas-nav-lists {
  margin: 0 !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  box-sizing: border-box !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists__lbl {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--texto-suave, #64748b) !important;
  margin: 0 0 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-finanzas-tema-tabs,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-finanzas-tema-tabs {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
}
/* Historiales: 2 tarjetas por fila — ancho completo del bloque */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home #rent-finanzas-tabs-tiles.rent-finanzas-tabs-row--cuatro,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact #rent-finanzas-tabs-tiles.rent-finanzas-tabs-row--cuatro,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-finanzas-tabs-row.rent-finanzas-tabs-row--cuatro,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-finanzas-tabs-row.rent-finanzas-tabs-row--cuatro {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  overflow: visible !important;
  gap: 9px !important;
  row-gap: 9px !important;
  column-gap: 9px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab.rent-serio-tab--square,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab.rent-serio-tab--square {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  flex: unset !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important;
  aspect-ratio: auto !important;
  min-height: 76px !important;
  max-height: none !important;
  height: auto !important;
  padding: 12px 10px !important;
  gap: 6px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-align: center !important;
  cursor: pointer !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab.rent-serio-tab--square::after,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab.rent-serio-tab--square::after {
  content: none !important;
  display: none !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab.rent-serio-tab--square:active,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab.rent-serio-tab--square:active {
  background: #ffffff !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab.rent-serio-tab--square.rent-serio-tab--active,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab.rent-serio-tab--square.rent-serio-tab--active {
  background: #ffffff !important;
  border-color: var(--mv-line-strong, #64748b) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab--square .rent-serio-tab__ico,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab--square .rent-serio-tab__ico {
  width: 36px !important;
  height: 36px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home .rent-serio-tab--square .rent-serio-tab__txt,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab--square .rent-serio-tab__txt {
  display: block !important;
  flex: 0 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  margin-top: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  -webkit-text-fill-color: var(--texto-fuerte, #0f172a) !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  align-items: unset !important;
  justify-content: unset !important;
}
/* 2 columnas a ancho completo (refuerzo) */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home #rent-finanzas-tabs-tiles.rent-finanzas-tabs-row--cuatro {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  flex-direction: unset !important;
  gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-home #rent-finanzas-tabs-tiles .rent-serio-tab.rent-serio-tab--square {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome[hidden] {
  display: none !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis .rent-kpi-cell--tap {
  cursor: pointer;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis .rent-kpi-cell--tap:active {
  background: #f8fafc !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome[hidden] {
  display: none !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome__back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--mv-line, #cbd5e1);
  background: #f8fafc;
  color: var(--texto-fuerte, #0f172a);
  font-size: 13px;
  font-weight: 800;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome__back img {
  width: 16px;
  height: 16px;
  margin: 0;
  object-fit: contain;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome__tit {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-slot-away {
  flex: 1 1 100%;
  min-width: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-finanzas-nav-lists__lbl {
  display: none;
}
/* Compacto en chrome: sin doble marco blanco (el chrome ya es la tarjeta) */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact.rent-finanzas-nav-lists {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab--square {
  min-height: 48px !important;
  padding: 8px 10px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab--square .rent-serio-tab__ico {
  width: 32px !important;
  height: 32px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-nav-lists--compact .rent-serio-tab--square .rent-serio-tab__txt {
  font-size: 12px !important;
  min-height: 0 !important;
}

/* #m-rent-detalle / #m-rent-historial — modal centrado (NO bottom sheet) */
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet.modal,
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet.modal.open {
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet .rent-detalle-sheet__mbox.bitacora-mbox {
  position: relative;
  width: 100%;
  max-width: min(520px, 100vw - 28px);
  min-height: 0;
  max-height: 92vh;
  margin: 0 auto;
  border-radius: 14px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #d1d9e2;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(15, 23, 42, 0.08),
    0 12px 28px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
}
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet .manto-header-serio-v1.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 6px 10px;
  background: #e2e8f0;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  box-shadow: none;
}
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet .serio-v1-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  margin: 0;
}
:is(#m-rent-detalle, #m-rent-historial, #m-rent-vista-rapida).rent-detalle-sheet .rent-detalle-sheet__body.modal-serio-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 12px 16px;
  gap: 10px;
  background: #f8fafc;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
#m-rent-historial.rent-historial-sheet #rent-historial-mount > [id^="rent-tab-"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  margin: 0 !important;
  min-height: 0 !important;
}
#m-rent-detalle.rent-detalle-sheet .rent-det-empty {
  margin: 8px 0;
  padding: 28px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--texto-base, #334155);
  line-height: 1.45;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mv-line, #cbd5e1);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
#m-rent-detalle.rent-detalle-sheet .rent-serio-panel--in-sheet {
  background: #fff !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
}
#m-rent-detalle.rent-detalle-sheet .rent-serio-panel-h {
  background: #f8fafc !important;
}

/* ── Finanzas v3: sin rayas izquierdas + KPIs completos + piel más limpia ── */
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis.rent-serio-kpi-grid,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 #rent-kpis.rent-serio-kpi-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis .rent-kpi-cell,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 #rent-kpis .rent-kpi-cell,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 #cal-kpis .rent-kpi-cell {
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-left: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 14px !important;
  padding: 12px 12px 12px 12px !important;
  min-height: 72px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis .rent-kpi-cell::before,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 #rent-kpis .rent-kpi-cell::before,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 #cal-kpis .rent-kpi-cell::before {
  content: none !important;
  display: none !important;
}
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 .rent-fin-liq-row,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 .rent-fin-cat-card,
html body #pg-rent.finanzas-serio-v1.fin-pebble-vida-20260418 .rent-fin-cos-row,
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-fin-cat-card--ing {
  border-left: 1px solid var(--mv-line, #cbd5e1) !important;
}

/* Modales Finanzas / Nómina: sin raya / pseudo a la izquierda en bloques */
:is(#m-costo, #m-ingreso, #m-liq, #m-rent-detalle, #m-nomina-finca, #m-nomina-liq, #m-nomina-trabajador, #m-nomina-recibo) .ani-serio-v2-card::before,
:is(#m-costo, #m-ingreso, #m-liq, #m-rent-detalle, #m-nomina-finca, #m-nomina-liq, #m-nomina-trabajador, #m-nomina-recibo) .ani-serio-v2-card::after,
:is(#m-costo, #m-ingreso, #m-liq, #m-rent-detalle, #m-nomina-finca, #m-nomina-liq, #m-nomina-trabajador, #m-nomina-recibo) .serio-v1-title-box--header-bloque::before,
#m-rent-detalle.rent-detalle-sheet .rent-serio-panel-h .serio-v1-title-box--header-bloque::before,
#m-rent-detalle.rent-detalle-sheet .rent-det-empty::before,
#m-rent-detalle.rent-detalle-sheet .rent-det-empty::after {
  content: none !important;
  display: none !important;
}
:is(#m-costo, #m-ingreso, #m-liq, #m-rent-detalle) .ani-serio-v2-card {
  border-left: 1px solid #cbd5e1 !important;
}

/* Resumen: gap 9px entre bloques (guía · alertas · KPIs · profundizar · historiales) */
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-resumen {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  row-gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-tab-resumen > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head {
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head__kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  margin: 0 0 4px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head .rent-fin-tab-subtitle {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--texto-base, #334155) !important;
  line-height: 1.4 !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-alertas-compact {
  margin: 0 !important;
  gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual #rent-kpis.rent-serio-kpi-grid {
  margin: 0 !important;
  gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle {
  margin: 0 !important;
  padding: 12px !important;
  background: #ffffff !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__tit {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  margin: 0 0 2px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__sub {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--texto-base, #334155) !important;
  margin: 0 0 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-detalle__grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-card {
  min-height: 52px !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border: 1px solid var(--mv-line, #cbd5e1) !important;
  background: var(--gris-50, #f8fafc) !important;
  border-radius: 12px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hub-card:active {
  background: #ffffff !important;
}
/* Workspace / chrome: 9px entre bloques */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-finanzas-workspace__panes {
  gap: 9px !important;
  row-gap: 9px !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-hist-chrome {
  margin: 0 0 9px !important;
  gap: 9px !important;
}

/* Cómo estoy — botón Vista rápida */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head__top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin: 0 0 4px;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-resumen-head__top .rent-resumen-head__kicker {
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
}
/* Misma piel que Tools «Ver detalle» (.tools-sync-strip__detail) */
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-vista-rapida-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: var(--manto-btn-gris-ok-border) !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-vista-rapida-btn:hover {
  border: var(--manto-btn-gris-ok-border-hover) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-vista-rapida-btn:active {
  opacity: 0.94;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-vista-rapida-btn__ico {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 0;
}
html body #pg-rent.finanzas-serio-v1.mejora-visual .rent-vista-rapida-btn__lbl {
  white-space: nowrap;
}

/* Modal Vista rápida — contenido */
#m-rent-vista-rapida .rent-vista-rapida-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#m-rent-vista-rapida .rent-vr {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#m-rent-vista-rapida .rent-vr__veredicto {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gris-300, #cbd5e1);
  background: var(--gris-50, #f8fafc);
}
#m-rent-vista-rapida .rent-vr__veredicto-tit {
  font-size: 16px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  line-height: 1.2;
}
#m-rent-vista-rapida .rent-vr__veredicto-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.35;
}
#m-rent-vista-rapida .rent-vr__veredicto--ok {
  border-color: #86efac;
  background: #f0fdf4;
}
#m-rent-vista-rapida .rent-vr__veredicto--ok .rent-vr__veredicto-tit {
  color: #166534;
}
#m-rent-vista-rapida .rent-vr__veredicto--bad {
  border-color: #fca5a5;
  background: #fef2f2;
}
#m-rent-vista-rapida .rent-vr__veredicto--bad .rent-vr__veredicto-tit {
  color: #b91c1c;
}
#m-rent-vista-rapida .rent-vr__veredicto--flat,
#m-rent-vista-rapida .rent-vr__veredicto--empty {
  border-color: #cbd5e1;
  background: #f8fafc;
}
#m-rent-vista-rapida .rent-vr__ctx {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.35;
}
#m-rent-vista-rapida .rent-vr__card {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gris-300, #cbd5e1);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}
#m-rent-vista-rapida .rent-vr__card-tit {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave, #64748b);
  margin: 0 0 8px;
}
#m-rent-vista-rapida .rent-vr__card--result {
  text-align: center;
  background: var(--gris-50, #f8fafc);
}
#m-rent-vista-rapida .rent-vr__result-lbl {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave, #64748b);
}
#m-rent-vista-rapida .rent-vr__result-val {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
#m-rent-vista-rapida .rent-vr__result-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-base, #334155);
}
#m-rent-vista-rapida .rent-vr__tri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
#m-rent-vista-rapida .rent-vr__cell {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--gris-300, #cbd5e1);
  background: #ffffff;
  text-align: center;
  box-sizing: border-box;
}
#m-rent-vista-rapida .rent-vr__cell-lbl {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--texto-suave, #64748b);
}
#m-rent-vista-rapida .rent-vr__cell-val {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  word-break: break-word;
}
#m-rent-vista-rapida .rent-vr__cell-val--ok {
  color: #166534;
}
#m-rent-vista-rapida .rent-vr__cell-val--bad {
  color: #b91c1c;
}
#m-rent-vista-rapida .rent-vr__cell-val--warn {
  color: #b45309;
}
#m-rent-vista-rapida .rent-vr__efi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#m-rent-vista-rapida .rent-vr__efi-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-base, #334155);
}
#m-rent-vista-rapida .rent-vr__efi-val {
  font-size: 14px;
  font-weight: 900;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}
#m-rent-vista-rapida .rent-vr__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--gris-200, #e2e8f0);
}
#m-rent-vista-rapida .rent-vr__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#m-rent-vista-rapida .rent-vr__row-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
}
#m-rent-vista-rapida .rent-vr__row-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
  font-variant-numeric: tabular-nums;
}
#m-rent-vista-rapida .rent-vr__muted {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
}
#m-rent-vista-rapida .rent-vr__avisos {
  margin: 0;
  padding: 0 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#m-rent-vista-rapida .rent-vr__avisos li {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-base, #334155);
  line-height: 1.4;
}
#m-rent-vista-rapida .ani-serio-v2-footer-shell {
  background: var(--manto-newmodal-foot-bg-light, linear-gradient(168deg, #f1f5f9 0%, #e2e8f0 55%, #dbe2ea 100%));
  border: none;
  border-top: 1px solid var(--manto-newmodal-h-border-color-light, #94a3b8);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
  flex: 0 0 auto;
}
#m-rent-vista-rapida .ani-serio-v2-footer-shell__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
}
#m-rent-vista-rapida .ani-serio-v2-footer-shell .bit-bitacora-foot-save {
  flex: 1 1 0;
  height: 36px !important;
  min-height: 36px;
  max-height: 36px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}
