/* REPORT.IA v58.6 · mejora visual exclusiva para móvil
   No modifica lógica, datos, publicación, login ni escritorio. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{font-size:15px!important;padding-bottom:82px!important;overflow-x:hidden!important}
  .rcv34-shell{display:block!important;min-width:0!important;width:100%!important}
  .rcv34-side,.r483-nav-overlay{display:none!important}
  .rcv34-main{margin-left:0!important;width:100%!important;max-width:none!important;min-width:0!important;padding-bottom:86px!important}
  .rcv34-panel{width:100%!important;max-width:none!important;padding:14px 12px 24px!important;box-sizing:border-box!important}

  /* Cabecera: más aire y lectura */
  .rcv34-top{position:sticky!important;top:0!important;z-index:500!important;padding:12px!important;gap:10px!important;flex-wrap:wrap!important;background:rgba(255,255,255,.97)!important}
  .rcv34-top h1{font-size:23px!important;line-height:1.1!important}
  .rcv34-top p{font-size:12px!important;line-height:1.4!important}
  .rcv482-top-actions{width:100%!important;display:flex!important;gap:7px!important;flex-wrap:wrap!important}
  .rcv482-compare-top{min-height:42px!important;font-size:12px!important;padding:9px 12px!important}
  .rcv34-region{min-height:40px!important;font-size:11px!important}

  /* Inicio ejecutivo */
  .r49-hero{padding:20px 18px!important;border-radius:18px!important;margin:8px 0 14px!important}
  .r49-hero h2{font-size:26px!important;line-height:1.12!important}
  .r49-hero p{font-size:13px!important;line-height:1.5!important}
  .r530-command{padding:16px!important;border-radius:18px!important}
  .r530-command-head h2{font-size:21px!important}
  .r530-command-head p{font-size:12px!important;line-height:1.45!important}
  .r530-command-grid{grid-template-columns:1fr!important;gap:12px!important}
  .r530-command-grid>article{min-height:0!important}
  .r530-pulse,.r530-today,.r530-pending{padding:15px!important}
  .r530-actions{grid-template-columns:1fr!important;gap:10px!important}

  /* Accesos: una tarjeta por fila para evitar texto diminuto */
  .rcv34-menu-grid{grid-template-columns:1fr!important;gap:11px!important}
  .rcv34-menu-card{min-height:104px!important;padding:16px!important;gap:13px!important;border-radius:16px!important}
  .rcv34-menu-card .ico{width:52px!important;height:52px!important;font-size:27px!important}
  .rcv34-menu-card h3{font-size:17px!important;line-height:1.2!important}
  .rcv34-menu-card p{font-size:12px!important;line-height:1.45!important}
  .r472-module-status{font-size:10px!important}

  /* KPIs y tarjetas */
  .rcv42-kpis,.rcv34-kpis,.rcv481-kpis{gap:10px!important}
  .rcv42-kpis article,.rcv34-kpi,.rcv481-kpis article{flex:0 0 88%!important;min-height:112px!important;padding:15px!important}
  .rcv34-card,.r46-panel{padding:15px!important;border-radius:16px!important}
  .rcv34-card h3,.rcv42-top-head h3{font-size:18px!important}
  .rcv34-card p,.rcv42-top-head p{font-size:13px!important;line-height:1.45!important}

  /* Formularios y filtros cómodos al tacto */
  select,input,textarea{font-size:16px!important;min-height:44px}
  button{touch-action:manipulation}
  .rcv34-btn,.rcv44-report-btn{min-height:44px!important;font-size:12px!important}
  .rcv43-period-grid,.rcv481-period .rcv43-period-grid.is-compare{grid-template-columns:1fr!important;gap:10px!important}

  /* Tablas: conservar columnas, pero permitir desplazamiento horizontal legible */
  .rcv34-table-wrap,.r562-compare-table,.r570-productivity-tree{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .rcv34-table,.r562-compare-table>*,.r570-prod-head,.r570-prod-toggle{min-width:680px}

  /* Navegación inferior móvil */
  .r49-bottom-nav{display:grid!important;grid-template-columns:repeat(6,1fr)!important;min-height:74px!important;padding:7px 4px calc(7px + env(safe-area-inset-bottom))!important}
  .r49-bottom-nav button{min-height:56px!important;padding:4px 2px!important}
  .r49-bottom-nav button span{font-size:20px!important}
  .r49-bottom-nav button b{font-size:8px!important;line-height:1.1!important}

  /* Copiloto menos invasivo */
  .copilot-toggle,#copilotFab,.copilot-fab,.copilot-launcher{max-width:52px!important;width:52px!important;min-width:52px!important;height:52px!important;border-radius:50%!important}
  .copilot-toggle>span{display:none!important}
}

@media (max-width: 430px){
  .rcv34-panel{padding:11px 9px 22px!important}
  .rcv34-top{padding:10px!important}
  .rcv34-top h1{font-size:21px!important}
  .r49-hero h2{font-size:23px!important}
  .rcv42-kpis article,.rcv34-kpi,.rcv481-kpis article{flex-basis:92%!important}
}

/* REPORT.IA v59.4 · dock flotante móvil siempre accesible */
.r594-mobile-fab{display:none}
@media (max-width:900px), (hover:none) and (pointer:coarse){
  body{padding-bottom:154px!important}
  .rcv34-main{padding-bottom:154px!important}
  .r594-mobile-fab{
    position:fixed!important;right:12px!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;
    z-index:1900!important;display:flex!important;flex-direction:column!important;gap:8px!important;
    padding:7px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:20px!important;
    background:rgba(255,255,255,.88)!important;box-shadow:0 12px 34px rgba(15,42,90,.24)!important;
    backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important
  }
  .r594-mobile-fab button{
    width:54px!important;height:54px!important;min-height:54px!important;border:0!important;border-radius:15px!important;
    background:linear-gradient(145deg,#0b4db5,#176fd1)!important;color:#fff!important;box-shadow:0 5px 13px rgba(11,77,181,.24)!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;
    font-family:inherit!important;font-weight:800!important;cursor:pointer!important
  }
  .r594-mobile-fab button:active{transform:scale(.95)!important}
  .r594-mobile-fab button span{font-size:20px!important;line-height:20px!important;font-weight:900!important}
  .r594-mobile-fab button b{font-size:8px!important;line-height:10px!important;letter-spacing:.02em!important}
  /* tarjetas móviles con un poco más de profundidad visual, sin alterar escritorio */
  .rcv34-card,.r46-panel,.r530-command,.rcv34-menu-card{box-shadow:0 7px 22px rgba(20,55,100,.08)!important}
}
@media (max-width:430px){
  .r594-mobile-fab{right:8px!important;bottom:calc(78px + env(safe-area-inset-bottom))!important;padding:6px!important;gap:6px!important}
  .r594-mobile-fab button{width:50px!important;height:50px!important;min-height:50px!important;border-radius:14px!important}
}
