/* ERP shell 2026: navegación superior compacta y drawer móvil. */
:root{--erp-shell-height:52px;--erp-shell-accent:#178084;--erp-shell-accent-dark:#0d5e62;--erp-shell-ink:#1d2a34;--erp-shell-muted:#67737d;--erp-shell-border:#d4dbe0;--erp-shell-bg:#fff}
.erp-shell-brand,.erp-shell-header,.erp-shell-nav{font-family:inherit}
.erp-shell-brand{position:fixed;z-index:1042;top:0;left:0;width:148px;height:var(--erp-shell-height);background:var(--erp-shell-bg);border-right:1px solid var(--erp-shell-border);border-bottom:1px solid var(--erp-shell-border)}
.erp-shell-brand__link{display:flex;align-items:center;height:100%;padding:4px 14px}.erp-shell-brand__link img{display:block;width:92px;height:42px;object-fit:contain}.erp-shell-toggle{display:none}
.erp-shell-header{position:fixed;z-index:1041;top:0;right:0;width:230px;height:var(--erp-shell-height);background:var(--erp-shell-bg);border-bottom:1px solid var(--erp-shell-border)}
.erp-shell-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;height:100%;padding:0 12px}.erp-shell-theme,.erp-shell-user__trigger{height:32px;color:var(--erp-shell-ink);background:transparent;border:1px solid transparent;font-size:11px;cursor:pointer}.erp-shell-theme{display:inline-flex;align-items:center;gap:5px;padding:0 7px}.erp-shell-theme:hover,.erp-shell-theme:focus-visible,.erp-shell-user__trigger:hover,.erp-shell-user__trigger:focus-visible{background:#f2f5f6;border-color:#d8dfe3;outline:0}
.erp-shell-theme i{font-size:12px}.erp-shell-user__trigger{display:flex;align-items:center;gap:7px;max-width:142px;padding:0 7px;font-weight:650}.erp-shell-user__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.erp-shell-user__chevron,.erp-nav__chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.erp-shell-user__menu{min-width:150px;padding:4px;border:1px solid var(--erp-shell-border);border-radius:2px;box-shadow:0 6px 16px rgba(30,44,54,.12)}.erp-shell-user__logout{width:100%;padding:7px 9px;color:#7a2525;background:#fff;border:0;font-size:11px;text-align:left}.erp-shell-user__logout:hover{background:#f8eeee}

.erp-shell-nav{position:fixed;z-index:1040;top:0;right:230px;left:148px;height:var(--erp-shell-height);background:var(--erp-shell-bg);border-bottom:1px solid var(--erp-shell-border)}.erp-shell-nav__drawer{height:100%}.erp-shell-nav__mobile-head{display:none}.erp-nav{display:flex;align-items:stretch;height:100%;padding:0 4px;margin:0;list-style:none}.erp-nav__module{position:relative;display:flex;height:100%;list-style:none}.erp-nav__trigger{position:relative;display:flex;align-items:center;gap:7px;height:100%;padding:0 10px;color:#3f4c57;background:transparent;border:0;border-bottom:3px solid transparent;font-size:11px;font-weight:600;white-space:nowrap;cursor:pointer}.erp-nav__trigger:hover,.erp-nav__trigger:focus-visible,.erp-nav__module.is-open>.erp-nav__trigger{color:var(--erp-shell-accent-dark);background:#f2f7f7;outline:0}.erp-nav__module.is-active>.erp-nav__trigger{color:var(--erp-shell-accent-dark);border-bottom-color:var(--erp-shell-accent);font-weight:750}
.erp-nav__dropdown{position:absolute;top:calc(100% - 1px);left:0;width:max-content;min-width:190px;max-width:280px;padding:4px 0;margin:0;visibility:hidden;opacity:0;background:#fff;border:1px solid var(--erp-shell-border);box-shadow:0 7px 18px rgba(32,45,55,.13);list-style:none;transform:translateY(-3px);transition:opacity .12s ease,transform .12s ease,visibility .12s;pointer-events:none}.erp-nav__module.is-open>.erp-nav__dropdown,.erp-nav__module:hover>.erp-nav__dropdown,.erp-nav__module:focus-within>.erp-nav__dropdown{visibility:visible;opacity:1;transform:translateY(0);pointer-events:auto}.erp-nav__dropdown li{list-style:none}.erp-nav__dropdown a{position:relative;display:block;padding:7px 12px;color:#34414c;font-size:11px;line-height:1.2;white-space:nowrap}.erp-nav__dropdown a:hover,.erp-nav__dropdown a:focus-visible{color:var(--erp-shell-accent-dark);background:#f1f6f6;outline:0}.erp-nav__dropdown a.is-active{padding-left:15px;color:#164f52;background:#eaf4f4;border-left:3px solid var(--erp-shell-accent);font-weight:750}.erp-shell-overlay{display:none}

/* Neutraliza la geometría vertical heredada sin alterar los módulos. */
body .content-body,[data-header-position=fixed] .content-body{margin-left:0!important;padding-top:var(--erp-shell-height)!important;transition:none}.footer{padding-left:0!important}.menu-toggle .content-body{margin-left:0!important}.menu-toggle .footer{padding-left:0!important}

@media (max-width:1199px) and (min-width:1101px){.erp-shell-brand{width:126px}.erp-shell-brand__link{padding-inline:10px}.erp-shell-brand__link img{width:82px}.erp-shell-nav{left:126px;right:190px}.erp-shell-header{width:190px}.erp-shell-actions{padding-inline:7px}.erp-shell-theme span{display:none}.erp-nav__trigger{padding-inline:7px;font-size:10px}}

@media (max-width:1100px){:root{--erp-shell-height:48px}.erp-shell-brand{right:0;width:auto;border-right:0}.erp-shell-brand__link{width:112px;padding:3px 10px}.erp-shell-brand__link img{width:78px;height:39px}.erp-shell-toggle{position:absolute;top:7px;right:8px;display:flex;align-items:center;gap:7px;height:34px;padding:0 7px;color:var(--erp-shell-ink);background:#fff;border:1px solid #cbd4da;font-size:10px;font-weight:700;cursor:pointer}.erp-shell-toggle__lines{display:flex;flex-direction:column;gap:3px;width:17px}.erp-shell-toggle__lines i{display:block;width:17px;height:2px;background:var(--erp-shell-accent-dark)}
.erp-shell-header{z-index:1043;right:54px;width:auto;height:var(--erp-shell-height);background:transparent;border:0}.erp-shell-actions{padding:0}.erp-shell-theme{display:none}.erp-shell-user__trigger{max-width:150px;height:32px}.erp-shell-user__name{max-width:115px}
.erp-shell-nav{z-index:1051;inset:0;width:auto;height:auto;visibility:hidden;background:transparent;border:0;pointer-events:none}.erp-shell-nav__drawer{position:absolute;top:0;bottom:0;left:0;width:min(82vw,300px);height:auto;overflow-y:auto;background:#fff;border-right:1px solid var(--erp-shell-border);box-shadow:5px 0 18px rgba(27,40,50,.16);transform:translateX(-102%);transition:transform .18s ease}.erp-shell-nav__mobile-head{display:flex;align-items:center;justify-content:space-between;height:49px;padding:4px 10px;border-bottom:1px solid var(--erp-shell-border)}.erp-shell-nav__mobile-head img{width:78px;height:39px;object-fit:contain}.erp-shell-nav__mobile-head button{padding:5px 6px;color:var(--erp-shell-accent-dark);background:#fff;border:1px solid #ccd5da;font-size:9px;font-weight:700}
.erp-shell-overlay{position:fixed;z-index:1050;inset:0;display:block;background:rgba(17,28,35,.38)}.erp-shell-overlay[hidden]{display:none}body.erp-nav-open{overflow:hidden}body.erp-nav-open .erp-shell-nav{visibility:visible;pointer-events:auto}body.erp-nav-open .erp-shell-nav__drawer{transform:translateX(0)}
.erp-nav{display:block;height:auto;padding:5px 0}.erp-nav__module{display:block;height:auto}.erp-nav__trigger{justify-content:space-between;width:100%;height:39px;padding:0 13px;border-bottom:1px solid #e4e8eb;font-size:11px;text-align:left}.erp-nav__module.is-active>.erp-nav__trigger{border-bottom:1px solid #d8e4e4;border-left:3px solid var(--erp-shell-accent)}.erp-nav__chevron{transition:transform .12s}.erp-nav__module.is-open .erp-nav__chevron{transform:rotate(225deg) translate(-1px,-1px)}
.erp-nav__dropdown{position:static;width:auto;min-width:0;max-width:none;max-height:0;padding:0;visibility:hidden;overflow:hidden;opacity:1;background:#f6f8f9;border:0;box-shadow:none;transform:none;transition:max-height .16s ease;pointer-events:none}.erp-nav__module:hover>.erp-nav__dropdown,.erp-nav__module:focus-within>.erp-nav__dropdown{visibility:hidden;max-height:0;pointer-events:none}.erp-nav__module.is-open>.erp-nav__dropdown{visibility:visible;max-height:420px;pointer-events:auto}.erp-nav__dropdown a{padding:8px 18px;font-size:10px}.erp-nav__dropdown a.is-active{padding-left:18px;border-left:3px solid var(--erp-shell-accent)}
body .content-body,[data-header-position=fixed] .content-body{padding-top:var(--erp-shell-height)!important}}

@media (max-width:480px){.erp-shell-user__name{max-width:90px}.content-body .container-fluid,.content-body .container-sm,.content-body .container-md,.content-body .container-lg,.content-body .container-xl,.content-body .container-xxl{padding-right:10px;padding-left:10px}}
