/* DC CONTROL 10.4.81r11 — optimización móvil global.
   Conserva la paleta sólida r10. Corrige tablas, tarjetas, importes, scroll y nav en iPhone. */
@media(max-width:700px){
 html,body{max-width:100%;overflow-x:hidden!important}
 #view{padding-left:10px!important;padding-right:10px!important;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important;max-width:100%!important;overflow-x:hidden!important}
 .module-103,.module-104,.section,.card{max-width:100%!important;min-width:0!important}
 /* Barra inferior: compacta y sin caja gigante */
 .bottom-nav,.bottom-nav.v1049-nav-centered{left:8px!important;right:8px!important;bottom:max(4px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;margin:0!important;padding:5px!important;gap:4px!important;border-radius:20px!important;height:auto!important;min-height:0!important;overflow:visible!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
 .bottom-nav button,.bottom-nav button.nav1048,.bottom-nav button.nav1048.active{min-width:0!important;width:100%!important;height:58px!important;min-height:58px!important;padding:5px 2px!important;border-radius:15px!important}
 .bottom-nav button.nav1048 .nav-icon1048{width:25px!important;height:25px!important;margin:0 auto 2px!important}.bottom-nav button.nav1048 .nav-icon1048 svg{width:23px!important;height:23px!important}.bottom-nav button.nav1048 .nav-label1048,.bottom-nav button.nav1048 small{font-size:9px!important;line-height:1!important;white-space:nowrap!important}
 /* KPI: dos columnas, altura natural y números que caben */
 .exec-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.exec-grid .exec-card{min-height:112px!important;height:auto!important;padding:12px!important;border-radius:17px!important}
 .exec-grid .exec-card b{font-size:clamp(18px,5.4vw,25px)!important;line-height:1.04!important;letter-spacing:-.035em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;max-width:100%!important}.exec-grid .exec-card span{font-size:12px!important;line-height:1.15!important}.exec-grid .exec-card small{font-size:10px!important;line-height:1.2!important}
 /* Tablas: en móvil son tarjetas compactas; elimina min-width heredado de escritorio */
 .enterprise-table-wrap,.v1049-table-zone{overflow:visible!important;max-width:100%!important;background:transparent!important;border:0!important;box-shadow:none!important}
 .enterprise-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;background:transparent!important}.enterprise-table thead{display:none!important}.enterprise-table tbody{display:block!important;width:100%!important}.enterprise-table tr{display:block!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;margin:0 0 9px!important;padding:9px 10px!important;border-radius:15px!important;overflow:hidden!important}
 .enterprise-table td{display:grid!important;grid-template-columns:minmax(88px,.8fr) minmax(0,1.2fr)!important;gap:8px!important;align-items:center!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;padding:5px 2px!important;border:0!important;text-align:right!important;overflow-wrap:anywhere!important;white-space:normal!important}
 .enterprise-table td:before{content:attr(data-label)!important;display:block!important;font-size:10px!important;line-height:1.15!important;font-weight:800!important;text-align:left!important;opacity:.72!important;min-width:0!important}.enterprise-table td:empty{display:none!important}.enterprise-table td>*{max-width:100%!important;min-width:0!important}
 .enterprise-table td.amount{font-size:14px!important;font-weight:900!important;text-align:right!important}.enterprise-table button,.enterprise-table select,.enterprise-table input{max-width:100%!important;min-width:0!important}
 /* Reportes y grupos: sin filas gigantes */
 .reports-1075 .enterprise-table,.rec20 .enterprise-table,.sicar27 .enterprise-table{min-width:0!important}.rec-group{height:auto!important;min-height:0!important}.rec-group summary{padding:12px!important}.rec-group .enterprise-table-wrap{overflow:visible!important}
 /* Tarjetas genéricas: altura natural */
 .card,.metric,.report-card,.movement-card-1031{height:auto!important;min-height:0!important}.row{min-height:0!important;height:auto!important;padding:8px 0!important}
 /* Gráficos: nunca más anchos que viewport */
 canvas,svg{max-width:100%!important}.chart-wrap,.report-chart,.gps-history-map{max-width:100%!important;overflow:hidden!important}
 /* Formularios y tabs */
 .form-grid,.grid,.grid2{min-width:0!important}.module-tabs,.employee-tabs-1031,.rec-history-tabs{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}.finance-tabs1066{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}.finance-tabs1066 button{min-width:0!important;min-height:44px!important;font-size:10px!important;padding:7px 4px!important}
}
@media(max-width:390px){
 #view{padding-left:8px!important;padding-right:8px!important}.exec-grid{gap:7px!important}.exec-grid .exec-card{padding:10px!important;min-height:108px!important}.exec-grid .exec-card b{font-size:clamp(17px,5.1vw,22px)!important}.enterprise-table td{grid-template-columns:minmax(78px,.75fr) minmax(0,1.25fr)!important}.bottom-nav,.bottom-nav.v1049-nav-centered{left:5px!important;right:5px!important}.bottom-nav button,.bottom-nav button.nav1048,.bottom-nav button.nav1048.active{height:55px!important;min-height:55px!important}.bottom-nav button.nav1048 .nav-label1048,.bottom-nav button.nav1048 small{font-size:8px!important}
}
