/**

 * MEJORA VISUAL — Leche (#pg-lec)

 * Reglas: .cursor/rules/mejora-visual.mdc

 * v3 (2026-07-08) · cache lecheMv3 — hero stat compacto + pills KPI una línea

 * Clase activadora: #pg-lec.mejora-visual

 */



html body #pg-lec.leche-serio-v1.mejora-visual {

  --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-tile-accent: #475569;

  --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-tile-shadow:

    0 1px 2px rgba(15, 23, 42, 0.06),

    0 2px 8px rgba(15, 23, 42, 0.09);


  --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 página ══ */

html body #pg-lec.leche-serio-v1.mejora-visual,

html body.light #pg-lec.leche-serio-v1.mejora-visual {

  background: var(--mv-canvas) !important;

  padding-left: 12px !important;

  padding-right: 12px !important;

  /* Clear nav = altura(nav)+9px vía js/pg-nav-clearance.js */
  padding-bottom: 0 !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual > .section,

html body #pg-lec.leche-serio-v1.mejora-visual .section-body,

html body #pg-lec.leche-serio-v1.mejora-visual .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;

}



/* ══ Ritmo vertical — 9px exactos ══ */

html body #pg-lec.leche-serio-v1.mejora-visual > .section {

  display: flex !important;

  flex-direction: column !important;

  gap: var(--mv-gap) !important;

  row-gap: var(--mv-gap) !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual > .section > .section-header {

  padding-bottom: 0 !important;

  margin-bottom: 0 !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual > .section > .section-body,

html body #pg-lec.leche-serio-v1.mejora-visual > .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 #pg-lec.leche-serio-v1.mejora-visual > .section > .section-body > .section-content > * {

  margin-top: 0 !important;

  margin-bottom: 0 !important;

}



/* ══ Hero — bloque blanco + foto + toolbar ══ */

html body #pg-lec.leche-serio-v1.mejora-visual > .section > .section-header.lec-serio-panel.lec-serio-panel--hero {

  margin: 0 !important;

  padding: 0 !important;

  background: var(--mv-card) !important;

  background-image: none !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 #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero.dash-serio-hero--title-strip,

html body.light #pg-lec.leche-serio-v1.mejora-visual .lec-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 #pg-lec.leche-serio-v1.mejora-visual .lec-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 #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__kicker,

html body #pg-lec.leche-serio-v1.mejora-visual .lec-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 #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__ico-inline {

  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador {

  display: flex !important;

  flex-direction: column !important;

  align-items: center !important;

  justify-content: center !important;

  gap: 2px !important;

  padding: 5px 4px 6px !important;

  flex: 0 0 72px !important;

  width: 72px !important;

  min-width: 72px !important;

  max-width: 72px !important;

  height: 52px !important;

  min-height: 52px !important;

  max-height: 52px !important;

  box-sizing: border-box !important;

  background: rgba(255, 255, 255, 0.14) !important;

  border: 1px solid rgba(255, 255, 255, 0.42) !important;

  border-radius: 12px !important;

  box-shadow:

    inset 0 1px 0 rgba(255, 255, 255, 0.28),

    0 4px 14px rgba(0, 0, 0, 0.18) !important;

  backdrop-filter: blur(8px) !important;

  -webkit-backdrop-filter: blur(8px) !important;

  transform: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador:hover {

  transform: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador :is(

  .dash-serio-hero__stat-lbl,

  .dash-serio-hero__stat-unit,

  .dash-serio-hero__stat-val,

  .dash-serio-hero__stat-del

) {

  color: #ffffff !important;

  -webkit-text-fill-color: #ffffff !important;

  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28) !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador .dash-serio-hero__stat-lbl {

  order: 1 !important;

  font-size: 7px !important;

  font-weight: 800 !important;

  letter-spacing: 0.08em !important;

  line-height: 1.2 !important;

  margin: 0 !important;

  padding: 0 !important;

  text-transform: uppercase !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador .dash-serio-hero__stat-val {

  order: 2 !important;

  font-size: clamp(15px, 3.6vw, 17px) !important;

  font-weight: 900 !important;

  line-height: 1.05 !important;

  margin: 0 !important;

  padding: 1px 0 0 !important;

  font-variant-numeric: tabular-nums !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador .dash-serio-hero__stat-unit {

  order: 3 !important;

  font-size: 7px !important;

  font-weight: 800 !important;

  letter-spacing: 0.06em !important;

  line-height: 1.2 !important;

  margin: 0 !important;

  padding: 0 !important;

  text-transform: uppercase !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador .dash-serio-hero__stat-del {

  order: 4 !important;

  font-size: 7px !important;

  font-weight: 700 !important;

  line-height: 1.1 !important;

  margin-top: 0 !important;

  opacity: 0.92 !important;

}



@media (max-width: 520px) {

  html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador {

    flex: 0 0 66px !important;

    width: 66px !important;

    min-width: 66px !important;

    max-width: 66px !important;

    height: 48px !important;

    min-height: 48px !important;

    max-height: 48px !important;

  }



  html body #pg-lec.leche-serio-v1.mejora-visual .lec-serio-panel--hero .dash-serio-hero__stat.recuadro-contador .dash-serio-hero__stat-val {

    font-size: clamp(14px, 4vw, 16px) !important;

  }

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-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;

}



/* ══ Recuadro Resumen ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .dash-inicio-recuadro.lec-dash-recuadro-kpi-acciones {

  margin: 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;

}



/* ══ Cabeceras bloque — gemelas Dashboard Inicio (48px · franja · rayita) ══ */

html body #pg-lec.leche-serio-v1.mejora-visual :is(

  .lec-dash-recuadro__head.lec-dash-recuadro__head,

  .lec-prod-head.lec-prod-head,

  .lec-hist-head.lec-hist-head

) {

  display: flex !important;

  flex-direction: row !important;

  flex-wrap: nowrap !important;

  align-items: center !important;

  justify-content: flex-start !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: 4px solid var(--mv-accent) !important;

  box-shadow: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-dash-recuadro__head-brand,

html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-tit-wrap,

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-tit-wrap {

  display: flex !important;

  flex-direction: row !important;

  align-items: center !important;

  gap: 10px !important;

  min-width: 0 !important;

  min-height: 0 !important;

  flex: 0 1 auto !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-dash-recuadro__period-scroll {

  flex: 1 1 0 !important;

  min-width: 0 !important;

  align-self: center !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual :is(

  .lec-dash-recuadro__head,

  .lec-prod-head,

  .lec-hist-head

) .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 #pg-lec.leche-serio-v1.mejora-visual :is(

  .dash-inicio-recuadro__ico,

  .lec-prod-tit-ico,

  .lec-hist-tit-ico

) {

  width: var(--mv-head-rail) !important;

  height: var(--mv-head-rail) !important;

  min-width: var(--mv-head-rail) !important;

  min-height: var(--mv-head-rail) !important;

  max-width: var(--mv-head-rail) !important;

  max-height: var(--mv-head-rail) !important;

  object-fit: contain !important;

  display: block !important;

  flex-shrink: 0 !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual :is(

  .lec-dash-recuadro__head,

  .lec-prod-head,

  .lec-hist-head

) .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;

  max-width: none !important;

  border: none !important;

  margin: 0 !important;

  padding: 0 0 0 10px !important;

  box-sizing: border-box !important;

  align-self: center !important;

  overflow: visible !important;

  white-space: normal !important;

  text-overflow: unset !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual :is(

  .lec-dash-recuadro__head,

  .lec-prod-head,

  .lec-hist-head

) .serio-v1-title-box--header-bloque::before {

  content: "" !important;

  display: block !important;

  position: absolute !important;

  left: 0 !important;

  top: 50% !important;

  width: 1px !important;

  height: var(--hb-flank) !important;

  background: var(--mv-line, #cbd5e1) !important;

  pointer-events: none !important;

  transform: translateY(-50%) !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual :is(

  .dash-inicio-recuadro__tit,

  .lec-prod-tit,

  .lec-hist-tit

) {

  font-size: 14px !important;

  font-weight: 800 !important;

  line-height: 1.2 !important;

  letter-spacing: -0.01em !important;

  color: var(--texto-fuerte, #0f172a) !important;

  margin: 0 !important;

}



/* ══ Cuerpos — lienzo interior ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-dash-recuadro__body {

  padding: var(--mv-pad) !important;

  background: var(--mv-inner-canvas) !important;

  border-top: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-dash-kpi-block {

  padding: 0 !important;

  margin: 0 !important;

  border: none !important;

  border-bottom: none !important;

}



/* ══ KPI Resumen — tiles hub ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-grid2x3 {

  gap: var(--mv-gap-inner) !important;

}



/* Misma piel que Pesaje TOTAL DÍA / PROMEDIO (.pesaje-kpi-stat--hero) */
html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-cell {

  position: relative !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: stretch !important;

  justify-content: flex-start !important;

  text-align: left !important;

  min-height: 84px !important;

  padding: 10px 10px 9px !important;

  border: 1px solid #94a3b8 !important;

  border-top: 1px solid #94a3b8 !important;

  border-radius: 12px !important;

  background: linear-gradient(168deg, #f1f5f9 0%, #e8ecf1 45%, #dfe4ea 100%) !important;

  background-image: linear-gradient(168deg, #f1f5f9 0%, #e8ecf1 45%, #dfe4ea 100%) !important;

  background-color: #f1f5f9 !important;

  box-shadow:

    inset 0 1px 0 rgba(255, 255, 255, 0.88),

    inset 0 -1px 0 rgba(15, 23, 42, 0.04),

    0 1px 5px rgba(15, 23, 42, 0.07) !important;

  transform: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-cell--combo {

  text-align: left !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-cell--center {

  text-align: center !important;

  align-items: center !important;

}



/* Pill título = misma piel que Pesaje TOTAL DÍA / PROMEDIO (.pesaje-kpi-stat__lbl) */
html body #pg-lec.leche-serio-v1.mejora-visual .premium-stat-20260418 > .lec-prod-cell .lec-prod-ktit {

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  align-self: center !important;

  width: auto !important;

  max-width: 100% !important;

  background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%) !important;

  background-image: linear-gradient(180deg, #94a3b8 0%, #64748b 100%) !important;

  border: 1px solid #475569 !important;

  color: #ffffff !important;

  -webkit-text-fill-color: #ffffff !important;

  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25) !important;

  font-size: 10.5px !important;

  font-weight: 900 !important;

  letter-spacing: 0.07em !important;

  text-transform: uppercase !important;

  text-align: center !important;

  line-height: 1.2 !important;

  white-space: nowrap !important;

  overflow: hidden !important;

  text-overflow: ellipsis !important;

  padding: 4px 10px !important;

  border-radius: 12px !important;

  margin: 0 auto 8px !important;

  box-shadow:

    inset 0 1px 0 rgba(255, 255, 255, 0.25),

    0 1px 2px rgba(15, 23, 42, 0.10) !important;

  font-family: 'Segoe UI', Tahoma, Arial, sans-serif !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-kbig {

  font-size: 28px !important;

  font-weight: 900 !important;

  line-height: 1 !important;

  color: var(--texto-fuerte, #0f172a) !important;

  font-variant-numeric: tabular-nums !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-ksub {

  font-size: 10px !important;

  font-weight: 600 !important;

  color: var(--texto-suave, #64748b) !important;

  margin-top: 4px !important;

}



/* ══ Producción — marco único ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-wrap.lec-prod-wrap {

  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;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-wrap > :not(.lec-prod-head) {

  padding: var(--mv-pad) !important;

  background: var(--mv-inner-canvas) !important;

  box-sizing: border-box !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card.dash-leche-chart-card {

  border: none !important;

  border-radius: 0 !important;

  box-shadow: none !important;

  background: transparent !important;

  margin: 0 !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card .dash-leche-chart-card__head {

  padding: 0 0 var(--mv-gap-inner) !important;

  background: transparent !important;

  background-image: none !important;

  border: none !important;

  box-shadow: none !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card .dash-leche-chart-card__plot {

  background: var(--mv-card) !important;

  border: 1px solid var(--mv-line) !important;

  border-radius: 11px !important;

  overflow: hidden !important;

}



/* ══ Historial — marco único ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-outer.lec-hist-outer {

  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;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-outer > .lec-hist-stack,

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-outer > #lec-list {

  padding: var(--mv-pad) !important;

  background: var(--mv-inner-canvas) !important;

  box-sizing: border-box !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-outer > #lec-list {

  padding-top: 0 !important;

}



html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-outer > .lec-hist-stack + #lec-list {

  padding-top: 0 !important;

}



@media (max-width: 360px) {

  html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-kbig {

    font-size: 24px !important;

  }

}



/* ══ Pills Leche — radio unificado 9px (5 KPI + Ampliar + 4 vista gráfico) ══ */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card .dash-leche-chart-expand.dash-leche-chart-vb,
html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card button.dash-leche-chart-expand.dash-leche-chart-vb.btn-gris-ok {
  border-radius: 9px !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-prod-dash-card .dash-leche-chart-vtog .dash-leche-chart-vb {
  border-radius: 9px !important;
}



/* ══ Historial — filtro período + cabeceras de mes (compacto SERIO) ══
   Alturas fijas 32px en chips / fechas / Aplicar — no modificar. */

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-stack {
  gap: 6px !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter {
  padding: 8px 10px !important;
  gap: 6px !important;
  background: var(--gris-0, #ffffff) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__presets-outer {
  justify-content: stretch !important;
  overflow: visible !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__presets {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 4px !important;
  border-radius: 12px !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__lbl {
  flex: 0 0 auto !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  padding: 0 4px 0 2px !important;
}

/* Chips — altura 32px intacta; colores heredados de .fp.tb (no tocar activo) */
html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__chip {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__custom {
  margin-top: 0 !important;
  padding-top: 6px !important;
  border-top: 1px solid var(--gris-300, #cbd5e1) !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__custom-inner {
  gap: 6px !important;
  align-items: flex-end !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__field {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 3px !important;
  align-self: flex-end !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__field-lbl {
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .05em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
  padding-left: 2px !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__date {
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  border-radius: 10px !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  background: var(--gris-0, #ffffff) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__apply {
  align-self: flex-end !important;
  flex: 0 0 auto !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  background: var(--manto-btn-gris-ok-bg) !important;
  border: var(--manto-btn-gris-ok-border) !important;
  color: var(--manto-btn-gris-ok-color) !important;
  -webkit-text-fill-color: var(--manto-btn-gris-ok-color) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: var(--manto-btn-gris-ok-shadow) !important;
  cursor: pointer !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__apply:hover {
  border: var(--manto-btn-gris-ok-border-hover) !important;
  box-shadow: var(--manto-btn-gris-ok-shadow-hover) !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__apply:active {
  background: var(--manto-btn-gris-ok-bg-active, var(--manto-btn-gris-ok-bg)) !important;
  opacity: 1 !important;
}

/* Cabecera de mes / semana en la lista */
html body #pg-lec.leche-serio-v1.mejora-visual #lec-list.lec-hist-v4 {
  gap: 6px !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr {
  background: var(--gris-0, #ffffff) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex-wrap: nowrap !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__tit {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__stats {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__stat {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 2px !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  background: var(--gris-50, #f8fafc) !important;
  border: 1px solid var(--gris-300, #cbd5e1) !important;
  white-space: nowrap !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__stat-val {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: var(--texto-fuerte, #0f172a) !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__stat-unit,
html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr__stat-lbl {
  font-size: 9px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--texto-suave, #64748b) !important;
}

html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-body {
  margin-top: 4px !important;
  gap: 6px !important;
}

@media (max-width: 380px) {
  html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-filter__chip {
    flex: 1 1 auto !important;
    min-width: 58px !important;
  }
  html body #pg-lec.leche-serio-v1.mejora-visual .lec-hist-mes-hdr {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
}

