/* PF Tech - Inicio compacto R4 - 20261021-r4 */
html body:not(.erp-guest) #erp-empresa-box{position:relative;margin:0 0 8px!important;padding:8px 12px!important;border-radius:9px!important}
html body #erp-empresa-box>div:first-child{gap:8px!important;min-width:0}
html body #erp-empresa-box #negocio-selector{min-width:160px!important;width:230px;max-width:100%;min-height:30px!important;padding:4px 8px!important;font-size:13px!important}
html body #erp-empresa-box button{min-height:30px!important;padding:5px 9px!important;font-size:12px!important;margin:0!important}
html body #erp-empresa-box strong{font-size:12px!important}
html body #erp-empresa-box #negocio-badge{background:#174b39!important;color:#e5fff1!important;font-size:11px!important}
html body #erp-empresa-box #negocio-ayuda{margin-top:4px!important;font-size:11px!important;line-height:1.3!important;opacity:1!important}
html body #erp-empresa-box #negocio-error:empty{display:none!important}
html body:has(#contenido .pf561-home) .layout>main{padding:10px 20px 22px!important}
html body:has(#contenido .pf561-home) .layout>main>header{display:none!important}
html body:has(#contenido .pf561-home) #contenido{padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body #contenido .pf561-home.pf565-dark{padding:12px 14px!important;border-radius:12px!important;max-width:none!important;background:linear-gradient(135deg,#14172e,#0d1b30)!important;box-shadow:0 8px 24px #101a3026!important}
html body #contenido .pf561-home-head{margin-bottom:9px!important;gap:10px!important;align-items:center!important}
html body #contenido .pf561-home-head h2{font-size:22px!important;color:#f8fbff!important;margin:0!important}
html body #contenido .pf561-home-head p{margin:3px 0 0!important;font-size:12px!important;color:#c0cee5!important}
html body #contenido .pf561-actions button{min-height:32px!important;padding:6px 10px!important;font-size:12px!important}
html body #contenido .pf565-modules{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:0 0 9px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body #contenido .pf565-module{box-sizing:border-box!important;min-height:72px!important;min-width:0!important;margin:0!important;padding:8px 10px!important;gap:4px!important;border-radius:8px!important;background:linear-gradient(125deg,#213453,#29395a)!important;border-color:#495e82!important;box-shadow:none!important;display:grid!important;grid-template-columns:27px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:center!important;align-items:center!important}
html body #contenido .pf565-module.purple{background:linear-gradient(125deg,#493085,#5d3aab)!important;border-color:#9978ec!important}
html body #contenido .pf565-module i{grid-row:1 / 3;width:27px!important;height:30px!important;border-radius:6px!important;font-size:18px!important}
html body #contenido .pf565-module b{font-size:13px!important;line-height:1.25!important}
html body #contenido .pf565-module small{grid-column:2;color:#d5e0f2!important;font-size:10px!important;line-height:1.3!important;white-space:normal!important}
html body #contenido .pf565-module:hover{background:#34466e!important;transform:translateY(-1px)!important}
html body #contenido .pf561-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;background:transparent!important;padding:0!important;margin:0!important}
html body #contenido .pf561-kpi{box-sizing:border-box!important;min-height:76px!important;min-width:0!important;padding:9px 12px!important;border-radius:8px!important;background:#203452!important;border:1px solid #465c80!important;box-shadow:none!important}
html body #contenido .pf561-kpi.kpi-ventas-hoy{background:#382b64!important;border-color:#8065bd!important}
html body #contenido .pf561-kpi.kpi-stock.good{background:#173e37!important;border-color:#427f6b!important}
html body #contenido .pf561-kpi.kpi-stock.warn,html body #contenido .pf561-kpi.kpi-alertas.warn{background:#594118!important;border-color:#c59138!important}
html body #contenido .pf561-kpi.kpi-utilidad.negative{background:#602b3b!important;border-color:#c86a83!important}
html body #contenido .pf561-kpi b{font-size:21px!important;line-height:1.15!important;margin-top:5px!important;color:#fff!important;overflow-wrap:anywhere}
html body #contenido .pf561-kpi span{font-size:11px!important;color:#dce6f7!important}
html body #contenido .pf561-kpi small{margin-top:4px!important;font-size:11px!important;line-height:1.3!important;color:#d0dcef!important}
html body #contenido .pf565-quick-panel{margin-top:9px!important;padding:0!important}
html body #contenido .pf561-panel-head{padding:7px 11px!important;min-height:0!important}
html body #contenido .pf561-panel-head button{min-height:28px!important;padding:5px 9px!important}
html body #contenido .pf565-quick-actions{grid-template-columns:repeat(6,minmax(0,1fr))!important;padding:8px!important;gap:8px!important}
html body #contenido .pf565-quick{min-height:60px!important;padding:8px!important;gap:3px!important;background:#213656!important}
html body #contenido .pf565-quick i{font-size:17px!important}
html body #contenido .pf565-chart{padding:10px 12px!important}
html body #contenido .pf565-bars{height:135px!important}
html body.mn-top-only #erp-main-nav .ms-preferences,html body.mn-top-only #erp-main-nav .ms-preferences label{color:#edf2ff!important;opacity:1!important}
@media(min-width:1201px){
 html body.mn-top-only:not(.ms-lateral):not(.ms-menu-hidden):not(.erp-guest) #ms-toolbar{position:relative!important;height:0!important;min-height:0!important;padding:0!important;border:0!important;overflow:visible!important}
 html body.mn-top-only:not(.ms-lateral):not(.ms-menu-hidden) #ms-toggle{position:absolute;right:78px;top:10px;min-height:30px;padding:5px 8px;font-size:11px}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav.erp-nav{padding:7px 190px 7px 16px!important;gap:2px!important;min-height:50px!important}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav .brand{margin-right:8px!important;min-height:36px!important}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav .ms-group>summary{padding:8px!important;min-height:34px!important;font-size:12px!important;gap:5px!important}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav>button[data-screen]{min-height:34px!important;padding:7px 9px!important}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav>button.signout{position:absolute!important;right:12px!important;top:10px!important;min-height:30px!important;padding:6px 10px!important}
 html body.mn-top-only:not(.ms-lateral) #erp-main-nav .ms-preferences{gap:6px!important;padding:0 4px!important;font-size:11px!important}
 html body #erp-empresa-box>div:first-child{padding-right:430px}
 html body #erp-empresa-box #negocio-ayuda{position:absolute;right:12px;top:50%;transform:translateY(-50%);width:410px;margin:0!important;font-size:10px!important}
 html body #erp-empresa-box:has(#negocio-form:not([hidden]))>div:first-child{padding-right:0}
 html body #erp-empresa-box:has(#negocio-form:not([hidden])) #negocio-ayuda{position:static;transform:none;width:auto;margin-top:4px!important}
}
@media(max-width:1100px){html body #contenido .pf565-modules,html body #contenido .pf565-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body #contenido .pf561-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
 html body:has(#contenido .pf561-home) .layout>main{padding:10px!important}
 html body #contenido .pf565-modules,html body #contenido .pf565-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body #contenido .pf561-home-head{align-items:flex-start!important}
 html body #erp-empresa-box #negocio-selector{width:100%;flex:1 1 170px}
 html body #contenido .pf561-home.pf565-dark{padding:10px!important}
}
@media(max-width:430px){html body #contenido .pf561-kpis{grid-template-columns:1fr!important}}
