/* Misión Jardines · interfaz operativa compacta / responsive · 2026-10-11
   Solo afecta pantallas autenticadas con menú compartido. Ninguna regla oculta datos,
   botones de pago, controles de acceso ni elementos de validación. */
body.mj-shared-sidebar-enabled {
  --mj-product-gap: 14px;
  --mj-product-radius: 14px;
}
body.mj-shared-sidebar-enabled,
body.mj-shared-sidebar-enabled main,
body.mj-shared-sidebar-enabled :is(.card,.panel,.metric,.hl-card,.analysis-card,.table-wrap,.table-scroll) {
  min-width: 0;
}
body.mj-shared-sidebar-enabled :is(main,.analysis-page,.dashboard,.wrap,.shell,.content,.club-wrap,.map-page-shell) {
  max-width: 100%;
}
body.mj-shared-sidebar-enabled :is(h1,h2,h3) { overflow-wrap: anywhere; }
body.mj-shared-sidebar-enabled :is(input,select,textarea,button) { max-width: 100%; }
body.mj-shared-sidebar-enabled button,
body.mj-shared-sidebar-enabled a { -webkit-tap-highlight-color:transparent; }
body.mj-shared-sidebar-enabled :is(button,a,input,select,textarea,summary):focus-visible {
  outline: 2px solid #b76a18!important;
  outline-offset: 2px;
}
/* La búsqueda global flotante deja de tapar títulos y herramientas. */
body.mj-shared-sidebar-enabled:not(.mj-home)::before {
  content:"";position:fixed;top:0;left:var(--mj-side-width);right:0;height:70px;
  z-index:89;background:rgba(249,250,252,.97);border-bottom:1px solid #e8edf2;
  pointer-events:none;
}
body.mj-shared-sidebar-enabled.mj-shared-sidebar-collapsed:not(.mj-home)::before{left:0}
/* app.html ya dibuja el encabezado en el documento exterior. No repetir el
   pseudo-elemento dentro del iframe: es una capa fija por encima de diálogos. */
body.mj-embedded.mj-shared-sidebar-enabled:not(.mj-home)::before {
  content:none!important;
  display:none!important;
}
/* En modo directo, despejar el encabezado delante de cualquier modal.
   Mantener el menú lateral visible en computadora para no perder navegación. */
body.mj-shared-sidebar-enabled:not(.mj-home):has(:is(
  .finance-pay-overlay:not([hidden]),
  .modal-shell:not([hidden]), .edit-modal:not([hidden]), dialog[open]
))::before{
  content:none!important;display:none!important;
}
body.mj-shared-sidebar-enabled:not(.mj-home):has(:is(
  .finance-pay-overlay:not([hidden]),
  .modal-shell:not([hidden]), .edit-modal:not([hidden]), dialog[open]
)) :is(.mj-top-tools,.mj-search-launch,.mj-account-top){
  visibility:hidden!important;pointer-events:none!important;
}
@media(max-width:820px){
  body.mj-shared-sidebar-enabled:not(.mj-home):has(:is(
    .finance-pay-overlay:not([hidden]),
    .modal-shell:not([hidden]), .edit-modal:not([hidden]), dialog[open]
  )) :is(.mj-side-tab,.mj-shared-sidebar){
    visibility:hidden!important;pointer-events:none!important;
  }
}
body.mj-shared-sidebar-enabled:not(.mj-home) .mj-top-tools{top:11px!important}
body.mj-shared-sidebar-enabled:not(.mj-home) :is(
  .analysis-page,.club-wrap,.cuotas-shell,.visit-shell,.sec-shell,.res-shell,.rep-shell,
  .map-page-shell,.content,.wrap,.shell
){min-width:0}
body.page-analisis.mj-shared-sidebar-enabled { padding-top:86px!important; }
body.page-club.mj-shared-sidebar-enabled { padding-top:86px!important; }
body.mj-shared-sidebar-enabled .mj-side-group { margin-bottom:7px!important;padding-bottom:5px!important; }
body.mj-shared-sidebar-enabled .mj-side-link { height:36px!important; }
body.mj-shared-sidebar-enabled .mj-side-label { margin-top:4px!important;padding-bottom:6px!important; }
body.mj-shared-sidebar-enabled .mj-side-nav { padding-top:9px!important; }
body.mj-shared-sidebar-enabled .mj-side-support { padding:10px 11px!important;margin-top:5px!important; }
body.mj-shared-sidebar-enabled .mj-side-support>summary {
  list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;
  cursor:pointer;font-size:11px;font-weight:800;color:#243248;
}
body.mj-shared-sidebar-enabled .mj-side-support>summary::-webkit-details-marker{display:none}
body.mj-shared-sidebar-enabled .mj-side-support>summary::after{content:none!important;display:none!important}
body.mj-shared-sidebar-enabled .mj-side-support>summary::marker{content:""}
body.mj-shared-sidebar-enabled .mj-side-support>p{margin:8px 0!important}
body.mj-shared-sidebar-enabled .mj-side-support>a{display:flex!important;align-items:center!important;justify-content:center!important}
body.mj-shared-sidebar-enabled .mj-side-account{min-height:48px!important}
body.mj-shared-sidebar-enabled .mj-side-logout{min-height:36px!important;margin-top:6px!important}
/* Títulos operativos: información primero, sin enormes bloques decorativos. */
body.mj-shared-sidebar-enabled :is(.analysis-hero,.club-hero,.cuotas-hero,.map-hero,.sec-hero,.hero,.hl-welcome) {
  padding:15px 19px!important;margin-bottom:12px!important;
  border-radius:var(--mj-product-radius)!important;
  box-shadow:0 3px 12px rgba(27,44,65,.035)!important;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-hero{
  display:flex;align-items:center;flex-wrap:wrap;gap:6px 17px;
  background:#fff!important;border-left:3px solid #e98526!important;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-hero .eyebrow{flex:0 0 100%;font-size:9px!important}
body.page-analisis.mj-shared-sidebar-enabled .analysis-hero h1{font-size:clamp(23px,2vw,29px);margin:0;line-height:1.15}
body.page-analisis.mj-shared-sidebar-enabled .analysis-hero p{margin:0;flex:1 1 290px;line-height:1.35}
body.mj-shared-sidebar-enabled :is(.hero,.sec-hero,.club-hero,.cuotas-hero,.map-hero) h1 {
  margin:3px 0 5px!important;font-size:clamp(23px,2.5vw,31px)!important;line-height:1.15!important;
}
body.mj-shared-sidebar-enabled :is(.hero,.sec-hero,.club-hero,.cuotas-hero,.map-hero) p {
  font-size:12px!important;line-height:1.4!important;max-width:720px;
}
body.mj-shared-sidebar-enabled :is(.hero-card,.source-card,.shift-card,.role-card,.cuotas-period-card) {
  padding:10px 13px!important;border-radius:12px!important;box-shadow:none!important;
}
body.mj-shared-sidebar-enabled .heading h1{font-size:clamp(24px,2.8vw,32px)!important}
body.mj-shared-sidebar-enabled .heading{margin-bottom:14px!important}
body.mj-shared-sidebar-enabled :is(.topline,.sec-topline,.cuotas-topbar) {
  margin-bottom:10px!important;gap:9px!important;min-height:0!important;
}
/* KPIs: número legible y 2 columnas reales en teléfonos, sin tarjetas de 140 px. */
body.mj-shared-sidebar-enabled :is(.metric-grid,.metrics,.cuotas-metrics-grid,.hl-kpis,.kpi-grid) {
  gap:10px!important;
}
body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi,.kpi-card) {
  min-width:0;min-height:0!important;padding:12px 13px!important;border-radius:12px!important;
  box-shadow:none!important;
}
body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi,.kpi-card) strong {
  overflow-wrap:anywhere;font-variant-numeric:tabular-nums;
}
body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric) :is(small,span) { line-height:1.35; }
body.page-analisis.mj-shared-sidebar-enabled .metric-grid{margin-bottom:11px!important}
body.page-analisis.mj-shared-sidebar-enabled .metric {
  padding:11px 14px!important;border-top:2px solid #e7aa7b!important;
  background:#fff!important;
}
body.page-analisis.mj-shared-sidebar-enabled .metric:nth-child(2n){border-top-color:#8ecdb3!important}
body.page-analisis.mj-shared-sidebar-enabled .metric:nth-child(3n){border-top-color:#aec5eb!important}
body.page-analisis.mj-shared-sidebar-enabled .metric small{margin-bottom:5px;font-size:11px!important}
body.page-analisis.mj-shared-sidebar-enabled .metric strong{font-size:clamp(17px,2vw,23px)!important;color:#25413b}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more{
  margin:0 0 13px;border:1px solid #e5e9ef;border-radius:12px;background:#fff;overflow:hidden;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more>summary {
  list-style:none;padding:10px 14px;cursor:pointer;font-size:12px;font-weight:800;
  color:#965418;display:flex;align-items:center;justify-content:space-between;gap:10px;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more>summary::-webkit-details-marker{display:none}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more>summary:after{content:"Mostrar ▾"}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more[open]>summary:after{content:"Ocultar ▴"}
body.page-analisis.mj-shared-sidebar-enabled .analysis-more .metric-grid{
  padding:10px 12px;border-top:1px solid #eef0f4;margin:0!important;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-card{padding:15px!important;margin-bottom:12px!important;border-radius:13px!important}
body.page-analisis.mj-shared-sidebar-enabled .analysis-card h2{font-size:17px;margin:5px 0 11px}
body.page-analisis.mj-shared-sidebar-enabled .analysis-page nav.analysis-tabs {
  margin:10px 0 12px!important;padding:4px!important;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-page nav.analysis-tabs>a{
  min-height:35px;padding:8px 17px;
}
body.page-analisis.mj-shared-sidebar-enabled .donut-wrapper{min-height:0;gap:15px}
body.page-analisis.mj-shared-sidebar-enabled .donut{width:145px;height:145px}
body.page-analisis.mj-shared-sidebar-enabled .donut:before{inset:26px}
body.page-analisis.mj-shared-sidebar-enabled .donut>div{font-size:22px}
body.page-analisis.mj-shared-sidebar-enabled .bars{max-height:240px}
body.page-analisis.mj-shared-sidebar-enabled .filters{gap:9px!important}
body.page-analisis.mj-shared-sidebar-enabled .filters input,
body.page-analisis.mj-shared-sidebar-enabled .filters select{height:38px}
body.page-analisis.mj-shared-sidebar-enabled .filters .primary{min-height:38px;padding:8px 12px}
body.page-analisis.mj-shared-sidebar-enabled .analysis-pagination{
  display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:10px;
  color:#66758a;font-size:12px;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-pagination button{
  min-height:35px;padding:6px 11px;border-radius:9px;border:1px solid #dbe3eb;
  background:#fff;color:#42546d;font-weight:750;cursor:pointer;
}
body.page-analisis.mj-shared-sidebar-enabled .analysis-pagination button:disabled{opacity:.4;cursor:not-allowed}
/* Tablas conservan columnas y acciones. Scroll interno, nunca desbordar la ventana. */
body.mj-shared-sidebar-enabled :is(.table-scroll,.table-wrap,.table-card,.table-container,.houses-scroll) {
  max-width:100%;min-width:0;
}
body.mj-shared-sidebar-enabled :is(.table-scroll,.table-wrap,.table-container){
  overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
}
body.mj-shared-sidebar-enabled :is(.table-scroll,.table-wrap) table{width:100%}
body.mj-shared-sidebar-enabled :is(.table-scroll,.table-wrap) :is(th,td) {
  padding:9px 10px!important;vertical-align:middle;
}
body.mj-shared-sidebar-enabled :is(.table-scroll,.table-wrap) td{line-height:1.35!important}
body.mj-shared-sidebar-enabled :is(.filterbar,.filters,.toolbar,.filter-row) > *{min-width:0}
/* Varias pantallas con tarjeta de fondo usan demasiado margen vertical. */
body.mj-shared-sidebar-enabled :is(.club-card,.map-card,.analysis-card,.table-card,.pending-card) {
  box-shadow:0 3px 14px rgba(23,39,57,.035)!important;
}
body.mj-shared-sidebar-enabled .club-hero{gap:13px!important}
body.mj-shared-sidebar-enabled .club-card{padding:16px!important;border-radius:13px!important}
body.mj-shared-sidebar-enabled .club-tabs{padding:5px;gap:4px;margin-bottom:12px}
body.mj-shared-sidebar-enabled .club-tabs button{padding:9px 13px!important}
body.mj-shared-sidebar-enabled .calendar-days button{min-height:44px!important}
body.mj-shared-sidebar-enabled .house-btn{min-height:60px!important}
body.mj-shared-sidebar-enabled .house-grid{gap:8px!important}
body.mj-shared-sidebar-enabled .street-tab{min-height:44px!important}
body.mj-home.mj-shared-sidebar-enabled .dashboard{padding:20px 24px 32px!important}
body.mj-home.mj-shared-sidebar-enabled .hl-welcome{padding:14px 18px!important;gap:10px!important}
body.mj-home.mj-shared-sidebar-enabled .hl-welcome h1{font-size:clamp(23px,2.8vw,30px)!important;margin:3px 0!important}
body.mj-home.mj-shared-sidebar-enabled .hl-kpi{padding:11px 13px!important;min-height:0!important}
body.mj-home.mj-shared-sidebar-enabled .hl-kpis{gap:10px!important}
body.mj-home.mj-shared-sidebar-enabled .hl-card{box-shadow:0 3px 14px rgba(23,39,57,.045)!important}
/* Vistas operativas */
body.mj-shared-sidebar-enabled.page-visitas-v2 .metric-grid,body.mj-shared-sidebar-enabled.page-seguridad-v2 .metric-grid{gap:9px}
body.mj-shared-sidebar-enabled.page-visitas-v2 .metric,body.mj-shared-sidebar-enabled.page-seguridad-v2 .metric{padding:11px!important}
body.mj-shared-sidebar-enabled.page-visitas-v2 .metric-icon,body.mj-shared-sidebar-enabled.page-seguridad-v2 .metric-icon{width:34px!important;height:34px!important}
body.mj-shared-sidebar-enabled.page-visitas-v2 .metric strong,body.mj-shared-sidebar-enabled.page-seguridad-v2 .metric strong{font-size:20px!important}
body.mj-shared-sidebar-enabled .quick-card{padding:12px!important}
body.mj-shared-sidebar-enabled .cuotas-metric{min-height:0!important}
body.mj-shared-sidebar-enabled .cuotas-metric-icon{width:36px!important;height:36px!important}
body.mj-shared-sidebar-enabled .cuotas-metrics-grid{gap:9px!important}
@media(max-width:1100px){
  body.page-analisis.mj-shared-sidebar-enabled .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.mj-shared-sidebar-enabled :is(.metric-grid,.metrics,.hl-kpis,.cuotas-metrics-grid){gap:8px!important}
}
@media(max-width:820px){
  body.mj-shared-sidebar-enabled:not(.mj-home)::before{left:0;height:65px}
  body.mj-shared-sidebar-enabled:not(.mj-home) .mj-top-tools,
  body.mj-shared-sidebar-enabled.mj-shared-sidebar-collapsed:not(.mj-home) .mj-top-tools {
    left:56px!important;right:9px;top:10px!important;max-width:calc(100vw - 65px)!important;
  }
  body.mj-shared-sidebar-enabled:not(.mj-home) .mj-top-tools .mj-search-launch {
    flex:1 1 auto;min-width:0;width:auto!important;height:42px;max-width:none;
  }
  body.mj-shared-sidebar-enabled .mj-side-inner{padding:10px 13px 11px!important}
  body.mj-shared-sidebar-enabled .mj-side-logo{height:58px!important;flex-basis:58px!important}
  body.mj-shared-sidebar-enabled .mj-side-logo img{height:63px!important}
  body.mj-shared-sidebar-enabled .mj-side-community{padding:9px 11px 10px!important}
  body.mj-shared-sidebar-enabled .mj-side-nav{padding-top:6px!important}
  body.mj-shared-sidebar-enabled .mj-side-link{height:35px!important}
  body.mj-shared-sidebar-enabled .mj-side-support p{font-size:10px!important}
  body.mj-shared-sidebar-enabled .mj-side-support>a{min-height:34px!important}
  body.page-analisis.mj-shared-sidebar-enabled,
  body.page-club.mj-shared-sidebar-enabled{padding:76px 0 18px!important}
  body.mj-shared-sidebar-enabled :is(.analysis-page,.club-wrap,.map-page-shell,.content,.wrap,.shell,.res-shell,.rep-shell,.sec-shell,.visit-shell,.cuotas-shell) {
    max-width:calc(100vw - 20px)!important;width:calc(100vw - 20px)!important;margin-inline:auto!important;
  }
  body.mj-home.mj-shared-sidebar-enabled .dashboard{padding:12px 11px 24px!important}
  body.mj-shared-sidebar-enabled :is(.analysis-hero,.club-hero,.cuotas-hero,.map-hero,.sec-hero,.hero,.hl-welcome) {
    padding:11px 13px!important;margin-bottom:10px!important;gap:9px!important;
  }
  body.mj-shared-sidebar-enabled :is(.hero,.sec-hero,.club-hero,.cuotas-hero,.map-hero) h1{font-size:23px!important}
  body.mj-shared-sidebar-enabled :is(.hero,.sec-hero,.club-hero,.cuotas-hero,.map-hero) p{font-size:11px!important}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-hero{display:block}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-hero .eyebrow{display:block;margin-bottom:4px}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-hero h1{font-size:23px}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-hero p{margin-top:4px}
  body.mj-shared-sidebar-enabled :is(.metric-grid,.metrics,.cuotas-metrics-grid,.hl-kpis,.kpi-grid){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi,.kpi-card){
    padding:10px!important;min-height:0!important;
  }
  body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi,.kpi-card) strong{
    font-size:clamp(17px,4vw,21px)!important;
  }
  body.mj-shared-sidebar-enabled :is(.metric-icon,.cuotas-metric-icon,.kpi-icon){width:30px!important;height:30px!important}
  body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi) small{font-size:10px!important}
  body.mj-shared-sidebar-enabled .analysis-columns,
  body.mj-shared-sidebar-enabled .two-col{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  body.page-analisis.mj-shared-sidebar-enabled .filters{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.page-analisis.mj-shared-sidebar-enabled .filters>button{grid-column:1/-1}
  body.page-analisis.mj-shared-sidebar-enabled .expense-form{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  }
  body.page-analisis.mj-shared-sidebar-enabled .expense-form label:nth-child(4),
  body.page-analisis.mj-shared-sidebar-enabled .expense-form label:nth-child(5){grid-column:1/-1}
  body.page-analisis.mj-shared-sidebar-enabled .expense-form button{grid-column:1/-1}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-card{padding:12px!important}
  body.page-analisis.mj-shared-sidebar-enabled .donut{width:116px;height:116px}
  body.page-analisis.mj-shared-sidebar-enabled .donut:before{inset:21px}
  body.page-analisis.mj-shared-sidebar-enabled .donut-wrapper{gap:12px;flex-wrap:nowrap}
  body.page-analisis.mj-shared-sidebar-enabled .bar-row{grid-template-columns:100px minmax(0,1fr) 55px;gap:6px}
  body.page-analisis.mj-shared-sidebar-enabled .money-row{grid-template-columns:90px minmax(0,1fr) 80px;gap:6px}
  body.mj-shared-sidebar-enabled .club-card{padding:12px!important}
  body.mj-shared-sidebar-enabled .club-tabs button{padding:8px 10px!important}
  body.mj-shared-sidebar-enabled .calendar-days button{min-height:39px!important;padding:4px!important}
  body.mj-shared-sidebar-enabled .topline{flex-wrap:wrap!important}
  body.mj-shared-sidebar-enabled :is(.hero-card,.source-card,.shift-card){padding:8px 10px!important;min-width:0!important}
  body.mj-shared-sidebar-enabled :is(.topline,.sec-topline) .top-actions{flex-wrap:wrap!important}
  body.mj-shared-sidebar-enabled :is(.table-wrap,.table-scroll){overflow-x:auto!important}
  body.mj-shared-sidebar-enabled :is(.table-wrap,.table-scroll) table{font-size:11px!important}
  body.mj-shared-sidebar-enabled :is(.table-wrap,.table-scroll) :is(th,td){
    padding:7px 8px!important;font-size:11px!important;
  }
  body.mj-shared-sidebar-enabled .street-tabs{overflow-x:auto}
  body.mj-shared-sidebar-enabled .house-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  body.mj-shared-sidebar-enabled .house-btn{min-height:56px!important;font-size:17px!important}
  body.mj-shared-sidebar-enabled .heading{margin-bottom:10px!important}
  body.mj-shared-sidebar-enabled .heading h1{font-size:24px!important}
  body.mj-shared-sidebar-enabled .content{padding-top:76px!important}
  body.mj-shared-sidebar-enabled .wrap{padding-top:76px!important}
  body.mj-shared-sidebar-enabled .club-hero .hero-mark{display:none}
  body.mj-home.mj-shared-sidebar-enabled .hl-welcome{flex-direction:column;align-items:stretch}
  body.mj-home.mj-shared-sidebar-enabled .hl-actions{width:100%;gap:6px}
  body.mj-home.mj-shared-sidebar-enabled .hl-action,
  body.mj-home.mj-shared-sidebar-enabled .hl-refresh{min-height:36px!important;padding:7px 10px!important}
  body.mj-home.mj-shared-sidebar-enabled .hl-traffic-face{grid-template-rows:280px 190px!important}
  body.mj-home.mj-shared-sidebar-enabled .hl-environment-scene{height:490px!important}
  body.mj-home.mj-shared-sidebar-enabled .hl-map-frame{height:240px!important}
}
@media(max-width:430px){
  body.mj-shared-sidebar-enabled .mj-top-tools .mj-search-launch{font-size:12px!important}
  body.mj-shared-sidebar-enabled .mj-side-tab{height:42px!important}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-more>summary{font-size:11px}
  body.page-analisis.mj-shared-sidebar-enabled .donut-wrapper{flex-wrap:wrap}
  body.mj-shared-sidebar-enabled :is(.metric,.cuotas-metric,.hl-kpi,.kpi-card){padding:9px!important}
  body.mj-shared-sidebar-enabled .hl-kpi :is(small,span){line-height:1.25}
}
@media(prefers-reduced-motion:reduce){
  body.mj-shared-sidebar-enabled .mj-side-support>summary::after{content:none!important;display:none!important}
}

/* Análisis: lecturas de viviendas y egresos como tarjetas de dos columnas en teléfonos.
   Solo afecta tablas de consulta sin edición ni acciones embebidas. */
@media(max-width:700px){
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll{
    border:0!important;background:transparent;max-height:none!important;overflow:visible!important;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll table{
    display:block;min-width:0!important;width:100%!important;border-collapse:separate;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll thead{
    position:absolute!important;width:1px!important;height:1px!important;
    padding:0!important;margin:-1px!important;overflow:hidden!important;
    clip-path:inset(50%);white-space:nowrap;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll tbody{
    display:grid;grid-template-columns:minmax(0,1fr);gap:9px;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll tbody tr{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;
    padding:11px 12px;border:1px solid #e3e8ee;border-radius:12px;background:#fff;
    box-shadow:0 2px 8px rgba(17,31,50,.025);
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll tbody td{
    display:block!important;min-width:0;max-width:100%;overflow-wrap:anywhere;
    padding:0!important;border:0!important;color:#2d3f54;font-size:12px!important;
    font-weight:650;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll tbody td[data-label]::before{
    content:attr(data-label);display:block;margin-bottom:2px;
    color:#8290a4;font-weight:700;font-size:10px;
  }
  body.page-analisis.mj-shared-sidebar-enabled .table-scroll tbody tr td[colspan]{
    grid-column:1/-1;font-weight:500;text-align:center;padding:9px!important;
  }
  body.page-analisis.mj-shared-sidebar-enabled #financeExpenseRows td:nth-child(3){
    grid-column:1/-1;
  }
  body.page-analisis.mj-shared-sidebar-enabled .analysis-pagination{
    justify-content:space-between;gap:6px;flex-wrap:wrap;
  }
  body.page-analisis.mj-shared-sidebar-enabled .analysis-pagination button{min-height:39px}
  body.page-analisis.mj-shared-sidebar-enabled .residences-filter label:first-child{grid-column:1/-1}
  body.page-analisis.mj-shared-sidebar-enabled .heading{align-items:flex-start;flex-direction:column}
  body.page-analisis.mj-shared-sidebar-enabled .analysis-more .metric-grid{padding:8px}
}

/* El panel lateral móvil se cierra tocando fuera, sin bloquear acciones del contenido. */
body.mj-shared-sidebar-enabled .mj-mobile-scrim[hidden]{display:none!important}
body.mj-shared-sidebar-enabled .mj-mobile-scrim{display:none}
body.mj-shared-sidebar-enabled :is(.analysis-hero,.club-hero,.cuotas-hero,.map-hero,.sec-hero,.hero,.hl-welcome){
  min-height:0!important;
}
body.page-cuotas.mj-shared-sidebar-enabled .cuotas-table-card .cuotas-table th,
body.page-cuotas.mj-shared-sidebar-enabled .cuotas-table-card .cuotas-table td{
  padding:8px 10px!important;font-size:12px!important;
}
body.page-cuotas.mj-shared-sidebar-enabled .cuotas-metric{
  min-height:0!important;gap:9px!important;align-items:center!important;
}
body.page-cuotas.mj-shared-sidebar-enabled .cuotas-metric-content strong{
  font-size:clamp(18px,2vw,23px)!important;
}
body.page-cuotas.mj-shared-sidebar-enabled .cuotas-hero {
  min-height:0!important;
}
body.mj-shared-sidebar-enabled :is(.modal-box,.modal-dialog,.edit-modal-dialog,.receipt-large-modal,.choice-modal,.modal-content) {
  max-width:calc(100vw - 24px);
}
body.mj-shared-sidebar-enabled :is(.modal-box,.modal-dialog,.edit-modal-dialog,.choice-modal){
  max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;
}
@media(max-width:820px){
  body.mj-shared-sidebar-enabled .mj-mobile-scrim:not([hidden]){
    display:block;position:fixed;inset:0;z-index:99;border:0;border-radius:0;
    padding:0;margin:0;background:rgba(19,32,49,.43);cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  body.mj-shared-sidebar-enabled:not(.mj-shared-sidebar-collapsed):not(.mj-embedded){overflow:hidden!important}
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-filters{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  }
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-filter-search{grid-column:1/-1}
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-filters .cuotas-filter-actions{
    grid-column:1/-1;
  }
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-metric-icon{width:29px!important;height:29px!important}
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-metric-content strong{font-size:19px!important}
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-metric-content span{font-size:9px!important}
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-table-card .table-wrap{
    max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain;
  }
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-table-card .cuotas-table th,
  body.page-cuotas.mj-shared-sidebar-enabled .cuotas-table-card .cuotas-table td{padding:7px 8px!important}
  body.mj-shared-sidebar-enabled .modal-shell{
    max-width:100vw;overflow-y:auto;overscroll-behavior:contain;
  }
  body.mj-shared-sidebar-enabled :is(.modal-box,.modal-dialog,.edit-modal-dialog,.receipt-large-modal,.choice-modal){
    max-height:calc(100dvh - 18px);
  }
  body.mj-shared-sidebar-enabled .metrics:has(> .metric:nth-child(3):last-child){
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.mj-shared-sidebar-enabled .metrics:has(> .metric:nth-child(3):last-child) .metric{
    padding:9px!important;
  }
  body.mj-shared-sidebar-enabled .metrics:has(> .metric:nth-child(3):last-child) .metric strong{
    font-size:17px!important;
  }
}
@media(max-width:370px){
  body.mj-shared-sidebar-enabled .metrics:has(> .metric:nth-child(3):last-child){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Ajustes por tarea; el orden prioriza la captura/consulta antes que el adorno. */
body.page-visitas-v2.mj-shared-sidebar-enabled .hero,
body.page-seguridad-v2.mj-shared-sidebar-enabled .sec-hero,
body.reports-page.mj-shared-sidebar-enabled .hero,
body.residents-page.mj-shared-sidebar-enabled .hero{
  min-height:0!important;padding:13px 17px!important;
}
body.mj-shared-sidebar-enabled :is(.sec-shell,.visit-shell,.rep-shell,.res-shell) :is(.panel-pad,.panel-head){
  padding:12px 14px!important;
}
body.page-visitas-v2.mj-shared-sidebar-enabled .metric-grid,
body.page-seguridad-v2.mj-shared-sidebar-enabled .metric-grid,
body.reports-page.mj-shared-sidebar-enabled .metrics,
body.residents-page.mj-shared-sidebar-enabled .metrics{
  margin-bottom:12px!important;
}
body.page-seguridad-v2.mj-shared-sidebar-enabled .quick-grid {gap:10px!important;margin-bottom:12px!important}
body.page-seguridad-v2.mj-shared-sidebar-enabled .quick-card{min-height:0!important}
body.page-mapa.mj-shared-sidebar-enabled .map-hero{min-height:0!important}
body.page-mapa.mj-shared-sidebar-enabled .map-card-head{padding:12px 14px!important}
body.payments-v2.mj-shared-sidebar-enabled .admin-workspace{gap:10px!important}
body.payments-v2.mj-shared-sidebar-enabled .admin-panel{padding:13px!important}
body.payments-v2.mj-shared-sidebar-enabled .pending-card{padding:11px!important}
body.payments-v2.mj-shared-sidebar-enabled .card{border-radius:13px!important}
body.page-calendario.mj-shared-sidebar-enabled .hero{min-height:0!important}
body.page-calendario.mj-shared-sidebar-enabled .card{padding:12px!important}
body.page-directorio.mj-shared-sidebar-enabled .hero{min-height:0!important}
body.mj-shared-sidebar-enabled .gate-collapse>summary{padding:10px 12px!important}
body.mj-shared-sidebar-enabled .tag-panel{padding:9px!important}
body.mj-shared-sidebar-enabled .street-tab{padding:7px 10px!important}
body.mj-shared-sidebar-enabled .board-head{padding:11px 14px 6px!important}
body.mj-shared-sidebar-enabled .house-grid{padding:10px 14px 14px!important}
@media(max-width:820px){
  body.page-seguridad-v2.mj-shared-sidebar-enabled .quick-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  body.page-seguridad-v2.mj-shared-sidebar-enabled .quick-card{padding:10px!important}
  body.page-seguridad-v2.mj-shared-sidebar-enabled .dashboard{
    grid-template-columns:minmax(0,1fr)!important;gap:10px!important;
  }
  body.page-visitas-v2.mj-shared-sidebar-enabled .filterbar,
  body.page-seguridad-v2.mj-shared-sidebar-enabled .filterbar,
  body.reports-page.mj-shared-sidebar-enabled .filters,
  body.residents-page.mj-shared-sidebar-enabled .filters,
  body.page-directorio.mj-shared-sidebar-enabled .filters{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.page-visitas-v2.mj-shared-sidebar-enabled :is(.filterbar,.form-grid)>*,
  body.page-seguridad-v2.mj-shared-sidebar-enabled :is(.filterbar,.form-grid)>*,
  body.reports-page.mj-shared-sidebar-enabled .filters>*,
  body.residents-page.mj-shared-sidebar-enabled .filters>*,
  body.page-directorio.mj-shared-sidebar-enabled .filters>*{min-width:0!important}
  body.page-visitas-v2.mj-shared-sidebar-enabled .filterbar> :first-child,
  body.page-seguridad-v2.mj-shared-sidebar-enabled .filterbar> :first-child,
  body.reports-page.mj-shared-sidebar-enabled .filters> :first-child,
  body.residents-page.mj-shared-sidebar-enabled .filters> :first-child,
  body.page-directorio.mj-shared-sidebar-enabled .filters> :first-child{
    grid-column:1/-1;
  }
  body.mj-shared-sidebar-enabled .form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;
  }
  body.mj-shared-sidebar-enabled .form-grid .wide,
  body.mj-shared-sidebar-enabled .form-grid label.wide{grid-column:1/-1}
  body.mj-shared-sidebar-enabled .admin-workspace{grid-template-columns:minmax(0,1fr)!important}
  body.payments-v2.mj-shared-sidebar-enabled .pending-payments{grid-template-columns:minmax(0,1fr)!important}
  body.payments-v2.mj-shared-sidebar-enabled .pending-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.payments-v2.mj-shared-sidebar-enabled .pending-filter-bar button{grid-column:1/-1}
  body.page-mapa.mj-shared-sidebar-enabled .map-tools{
    flex-wrap:wrap!important;gap:8px!important;
  }
  body.page-mapa.mj-shared-sidebar-enabled .map-tools>*{
    min-width:0!important;max-width:100%;
  }
  body.page-club.mj-shared-sidebar-enabled .reservation-grid{
    grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  }
  body.page-calendario.mj-shared-sidebar-enabled .calendar-actions{
    flex-wrap:wrap!important;gap:7px!important;
  }
  body.page-calendario.mj-shared-sidebar-enabled .calendar-grid{
    min-width:0!important;max-width:100%;
  }
  body.mj-shared-sidebar-enabled .house-top{gap:8px!important}
  body.mj-shared-sidebar-enabled .tag-item{gap:8px!important}
}
@media(max-width:520px){
  body.page-visitas-v2.mj-shared-sidebar-enabled :is(.panel,.panel-pad),
  body.page-seguridad-v2.mj-shared-sidebar-enabled :is(.panel,.panel-pad){padding:10px!important}
  body.page-visitas-v2.mj-shared-sidebar-enabled .metric-icon,
  body.page-seguridad-v2.mj-shared-sidebar-enabled .metric-icon{display:none!important}
  body.page-visitas-v2.mj-shared-sidebar-enabled .metric strong,
  body.page-seguridad-v2.mj-shared-sidebar-enabled .metric strong{font-size:18px!important}
  body.mj-shared-sidebar-enabled :is(.filterbar,.filters,.toolbar) input,
  body.mj-shared-sidebar-enabled :is(.filterbar,.filters,.toolbar) select{
    min-width:0!important;width:100%!important;min-height:40px;
  }
  body.mj-shared-sidebar-enabled .modal-shell{padding:8px!important}
}

/* Flujos públicos de acceso: mismo lenguaje visual, sin alterar validaciones. */
.login-page{min-height:0;max-width:min(1120px,calc(100vw - 40px));border-radius:20px;box-shadow:0 13px 38px rgba(26,43,60,.09)}
.login-page .login-showcase{min-height:560px;padding:32px}
.login-page .login-form-section{min-width:0}
.registration-shell{max-width:1120px;margin:22px auto;border-radius:20px;box-shadow:0 12px 32px rgba(30,47,66,.07)}
.registration-shell .registration-story{padding:32px;gap:23px}
.registration-shell .registration-content{padding:30px 34px}
.registration-shell .back-link{margin-bottom:20px}
.registration-shell .registration-content h2{font-size:29px}
.page-invitacion{min-width:0}
.page-invitacion>main{width:min(680px,calc(100% - 24px));max-width:680px!important;margin:28px auto;padding:18px}
.page-invitacion .panel{padding:16px;border-radius:13px}
.page-invitacion .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.page-invitacion input{min-width:0}
@media(max-width:980px){
  .login-page{width:min(640px,calc(100% - 28px));max-width:640px}
  .login-page .login-showcase{min-height:0;padding:22px}
  .registration-shell{margin:14px}
}
@media(max-width:760px){
  .registration-shell .registration-story{padding:18px;gap:10px}
  .registration-shell .registration-content{padding:20px}
  .registration-shell .story-copy h1{font-size:25px}
  .registration-shell .account-subtitle{font-size:12px;margin-bottom:14px}
}
@media(max-width:600px){
  .login-page{width:100%;max-width:100%;min-height:100dvh;border-radius:0;box-shadow:none}
  .login-page .login-showcase{display:none}
  .login-page .login-form-section{min-height:100dvh;padding:24px 18px}
  .login-page .login-heading h2{font-size:26px}
  .page-invitacion>main{width:calc(100% - 18px);padding:10px;margin:12px auto}
  .page-invitacion .grid{grid-template-columns:minmax(0,1fr);gap:4px}
  .page-invitacion h1{font-size:24px}
  .registration-shell{margin:8px;border-radius:14px}
  .registration-shell .registration-content{padding:18px 16px}
  .registration-shell .story-copy h1{font-size:23px}
}
