/* InmoPlus ERP 5.25.0 — carcasa común de módulos, aislada y responsive */
.imp-module-shell{width:100vw;max-width:none;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);--ims-teal:#005c67;--ims-teal-dark:#003f48;--ims-green:#80c342;--ims-bg:#f5f7fa;--ims-line:#e2e8f0;--ims-text:#172033;min-height:100vh;display:grid;grid-template-columns:272px minmax(0,1fr);background:var(--ims-bg);color:var(--ims-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;position:relative}
.imp-module-shell *{box-sizing:border-box}.imp-module-shell__sidebar{height:100vh;position:sticky;top:0;display:flex;flex-direction:column;background:linear-gradient(180deg,var(--ims-teal-dark),var(--ims-teal));padding:18px 14px;color:#fff;overflow-y:auto;z-index:1002}.imp-module-shell__brand{display:flex;align-items:center;justify-content:center;min-height:78px;padding:8px 10px;margin-bottom:12px}.imp-module-shell__brand img{display:block;width:220px;height:auto;max-width:100%;max-height:none;object-fit:contain;object-position:center;flex:0 0 auto}.imp-module-shell__nav{display:grid;gap:5px}.imp-module-shell__nav-link,.imp-module-shell__sidebar-foot a{display:flex;align-items:center;gap:12px;min-height:45px;padding:10px 13px;border-radius:10px;color:#fff;text-decoration:none;font-weight:650}.imp-module-shell__nav-link:hover,.imp-module-shell__nav-link.is-active{background:var(--ims-green);color:#17330a}.imp-module-shell__sidebar-foot{margin-top:auto;padding-top:14px;border-top:1px solid rgba(255,255,255,.18)}.imp-module-shell__workspace{min-width:0}.imp-module-shell__header{height:72px;position:sticky;top:0;z-index:1000;display:flex;align-items:center;gap:14px;padding:0 24px;background:#fff;border-bottom:1px solid var(--ims-line);box-shadow:0 2px 12px rgba(15,23,42,.04)}.imp-module-shell__menu-button{display:none;border:0;background:transparent;padding:8px;color:var(--ims-teal);cursor:pointer}.imp-module-shell__heading{display:grid;line-height:1.15}.imp-module-shell__heading span{font-size:11px;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.imp-module-shell__heading strong{font-size:18px}.imp-module-shell__header-actions{margin-left:auto}.imp-module-shell__profile{display:flex;align-items:center;gap:9px;color:var(--ims-text);text-decoration:none;font-weight:650}.imp-module-shell__profile img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #e7f5db}.imp-module-shell__content{min-width:0;padding:0 22px 30px}.imp-module-shell__content>.imp-migration-scope{width:100%;min-width:0}.imp-module-shell__mobile-nav,.imp-module-shell__overlay{display:none}
.imp-module-shell :is(.inm-neg-app,.inm-con-app,.inm-pay-app,.inm-del-app,.inm-close-app,.inm-agenda-front){max-width:none;margin:20px 0}.imp-module-shell table{max-width:100%}.imp-module-shell img{max-width:100%}
@media(max-width:900px){body:has(.imp-module-shell){padding-bottom:76px}.imp-module-shell{display:block;min-height:100dvh}.imp-module-shell__sidebar{position:fixed;left:0;top:0;bottom:0;width:min(86vw,330px);height:100dvh;transform:translateX(-105%);transition:transform .24s ease;visibility:hidden;box-shadow:18px 0 50px rgba(0,0,0,.22)}.imp-module-shell.is-menu-open .imp-module-shell__sidebar{transform:translateX(0);visibility:visible}.imp-module-shell__overlay{position:fixed;inset:0;border:0;background:rgba(0,20,24,.48);z-index:1001}.imp-module-shell.is-menu-open .imp-module-shell__overlay{display:block}.imp-module-shell__header{height:64px;padding:0 13px}.imp-module-shell__menu-button{display:inline-grid;place-items:center}.imp-module-shell__profile span{display:none}.imp-module-shell__content{padding:0 10px 22px}.imp-module-shell__mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:1000;height:72px;padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ims-line);box-shadow:0 -8px 24px rgba(15,23,42,.09)}.imp-module-shell__mobile-nav a,.imp-module-shell__mobile-nav button{border:0;background:transparent;color:#526173;text-decoration:none;display:grid;place-items:center;align-content:center;gap:3px;font:inherit;padding:2px;min-width:0}.imp-module-shell__mobile-nav a.is-active{color:var(--ims-teal)}.imp-module-shell__mobile-nav span{font-size:9px;line-height:1.1;max-width:64px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.imp-module-shell :is(.inm-neg-app,.inm-con-app,.inm-pay-app,.inm-del-app,.inm-close-app,.inm-agenda-front){margin:10px 0;padding:12px}.imp-module-shell :is(.inm-neg-head,.inm-con-head,.inm-pay-head,.inm-del-head,.inm-close-head,.inm-agenda-front__hero){border-radius:14px}}
@media(prefers-reduced-motion:reduce){.imp-module-shell__sidebar{transition:none}}
html.imp-shell-lock,html.imp-shell-lock body{overflow:hidden}

/* 5.25.0: libera la aplicación de los contenedores estrechos del tema sin afectar páginas públicas. */
body.imp-migration-525 .entry-content:has(> .imp-module-shell),
body.imp-migration-525 main:has(.imp-module-shell),
body.imp-migration-525 .site-main:has(.imp-module-shell),
body.imp-migration-525 article:has(.imp-module-shell){max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body.imp-migration-525 .imp-module-shell .imp-migration-scope{max-width:none!important}
body.imp-migration-525 .imp-module-shell__content>.imp-migration-scope>.inm-exp-front{max-width:none;width:100%;margin:20px 0}
@media(min-width:901px){body.imp-migration-525 .imp-module-shell{min-height:100vh}.imp-module-shell__content{padding:0 28px 36px}.imp-module-shell__sidebar{width:272px}}


/* ==========================================================
 * InmoPlus ERP 5.27.1 — Hotfix de alineación del Expediente Maestro
 * Corrige márgenes heredados del tema, ancho del workspace y desbordes.
 * ========================================================== */
body.imp-migration-page-expedientes{
  overflow-x:hidden!important;
  background:var(--ims-bg,#f5f7fa)!important;
}
body.imp-migration-page-expedientes :is(
  .site-content,.content-area,.site-main,.entry-content,
  article.page,.page-content,.elementor,.elementor-section,
  .elementor-container,.elementor-column,.elementor-widget-wrap,
  .elementor-widget,.elementor-widget-container
):has(.imp-module-shell){
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
body.imp-migration-page-expedientes .imp-module-shell{
  width:100%!important;
  margin:0!important;
  overflow:hidden;
}
body.imp-migration-page-expedientes .imp-module-shell__workspace,
body.imp-migration-page-expedientes .imp-module-shell__content,
body.imp-migration-page-expedientes .imp-migration-scope{
  width:100%;
  max-width:none!important;
  min-width:0;
  margin:0!important;
}
body.imp-migration-page-expedientes .imp-module-shell__content{
  padding:12px 24px 32px!important;
  overflow-x:hidden;
}
body.imp-migration-page-expedientes .inm-exp-front__detail-nav{
  width:100%;
  max-width:none!important;
  margin:0 0 10px!important;
  padding:0!important;
  line-height:1.2;
}
body.imp-migration-page-expedientes .inm-master-file{
  width:100%;
  max-width:none!important;
  min-width:0;
  margin:0!important;
  padding:0!important;
}
body.imp-migration-page-expedientes .inm-master-file__hero{
  width:100%;
  margin:0!important;
  border-radius:14px 14px 10px 10px;
}
body.imp-migration-page-expedientes .inm-master-file__progress{
  margin:-3px 14px 0!important;
}
body.imp-migration-page-expedientes .inm-master-file__tabs{
  width:100%;
  max-width:100%;
  margin:0!important;
  padding:10px 0 8px!important;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-inline:contain;
}
body.imp-migration-page-expedientes .inm-master-file__tabs a{
  flex:0 0 auto;
  min-height:40px;
  padding:8px 10px;
}
body.imp-migration-page-expedientes .inm-master-file__content{
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0!important;
  padding:0!important;
}
body.imp-migration-page-expedientes .inm-master-card{
  width:100%;
  max-width:100%;
  margin:0!important;
}
body.imp-migration-page-expedientes .inm-master-title h2{
  margin:2px 0 0!important;
}
body.imp-migration-page-expedientes .inm-master-data{
  margin:12px 0 0!important;
}
body.imp-migration-page-expedientes .inm-master-data div{
  min-width:0;
}
body.imp-migration-page-expedientes .inm-master-data dd{
  overflow-wrap:anywhere;
}
@media(min-width:901px){
  body.imp-migration-page-expedientes .imp-module-shell__workspace{
    overflow:hidden;
  }
  body.imp-migration-page-expedientes .imp-module-shell__content{
    padding:12px 28px 36px!important;
  }
}
@media(max-width:900px){
  body.imp-migration-page-expedientes .imp-module-shell__content{
    padding:10px 10px 24px!important;
  }
  body.imp-migration-page-expedientes .inm-master-file__hero{
    padding:18px;
  }
  body.imp-migration-page-expedientes .inm-master-file__tabs{
    margin-inline:-2px!important;
    padding-inline:2px!important;
  }
}
