/* HM1 CONSTATA V11.36 - zoom por gestos del touchpad que recalcula layout. */
html.hm136-layout-zoom .content,
html.hm136-layout-zoom .content > * { min-width:0!important;max-width:100%!important; }
html.hm136-layout-zoom .layout {min-width:0!important;max-width:100%!important;}
html.hm136-layout-zoom .content :is(.grid,.route-grid,.planning-layout,.split,.targeted-grid,.report-grid,.formgrid,.source-grid,.system-stat,.danger-grid) {min-width:0!important;max-width:100%!important;}
html.hm136-layout-zoom .content :is(input,select,textarea,button) {max-width:100%!important;min-width:0!important;}
/* Reglas de @media de v11.34 dependen del ancho de la pantalla física y
   no de CSS zoom. El modo de fichas se activa por ancho EFECTIVO de v11.36. */
html.hm136-layout-cards .content .table-wrap.hm134-card-ready {overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table {display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table thead {display:none!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;min-width:0!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody tr {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 12px!important;max-width:100%!important;min-width:0!important;width:100%!important;border:1px solid #e5dcf0!important;border-radius:16px!important;padding:10px!important;background:#fff!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody td {display:block!important;max-width:100%!important;min-width:0!important;width:100%!important;grid-column:auto!important;white-space:normal!important;word-break:break-word!important;overflow-wrap:anywhere!important;padding:8px 4px!important;border:0!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody td::before {content:attr(data-hm-label)!important;display:block!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;color:#705390!important;margin-bottom:5px!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody td[colspan],
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody td[data-hm-wide],
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody td:has(> form) {grid-column:1/-1!important;}
html.hm136-layout-cards .content .table-wrap.hm134-card-ready table tbody tr:has(td[colspan]){display:block!important;}
html.hm136-layout-small .content .table-wrap.hm134-card-ready table tbody tr {grid-template-columns:minmax(0,1fr)!important;}
html.hm136-layout-small .content .table-wrap.hm134-card-ready table tbody td {grid-column:1/-1!important;}
html.hm136-layout-small .content :is(.route-grid,.planning-layout,.split,.targeted-grid,.report-grid,.formgrid,.source-grid,.system-stat,.danger-grid,.cols) {grid-template-columns:minmax(0,1fr)!important;}
html.hm136-layout-small .content :is(.searchbar,.assignbar,.toolbar){flex-wrap:wrap!important;}
html.hm136-layout-small .content .route-add-stop{grid-template-columns:minmax(0,1fr)!important;}
#hm136-zoom-reset{position:fixed;bottom:14px;right:14px;z-index:2000;max-width:min(260px,calc(100vw - 28px));border:1px solid #d5bced;border-radius:13px;padding:8px 12px;background:#fff;color:#4a2475;box-shadow:0 6px 24px rgba(38,14,68,.20);font:700 12px system-ui,sans-serif;cursor:pointer;min-height:37px;display:none;touch-action:manipulation;}
#hm136-zoom-reset[data-active="true"]{display:block;}
#hm136-zoom-reset:hover,#hm136-zoom-reset:focus-visible{background:#f5edff;outline:2px solid #b99ce2;}
/* Centrado de los iconos en menú, usuario, indicadores y rutas. */
.side .navico,.top .user-avatar,.content .hm133-head-brand,
.content .hm133-kpi-icon,.content .hm133-route-icon,
.content .route-card-icon,.content .icon-box{
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:0!important;text-align:center!important;line-height:1!important;
}
.side .navico > svg.ico,.top .user-avatar > svg.ico,
.content .hm133-head-brand > svg.ico,.content .hm133-kpi-icon > svg.ico,
.content .hm133-route-icon > svg.ico,.content .route-card-icon > svg.ico,
.content .icon-box > svg.ico{
 display:block!important;float:none!important;position:static!important;
 margin:0!important;transform:none!important;vertical-align:middle!important;
 flex:0 0 auto!important;align-self:center!important;justify-self:center!important;
}
@media(prefers-reduced-motion:reduce){#hm136-zoom-reset{transition:none!important;}}
