/* TiKi Tax V5.5.6 mobile reporting consistency */
html,body,#root{max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
@media(max-width:767px){
  body{width:100%;max-width:100vw;overflow-x:hidden}
  main,[role="main"],.container{min-width:0!important;max-width:100%!important}
  main{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
  .container{padding-left:14px!important;padding-right:14px!important}
  [class*="max-w-"]{max-width:100%!important}
  [class*="grid-cols-"]>*{min-width:0}
  .tiki-mobile-wrap{display:flex!important;flex-wrap:wrap!important;max-width:100%!important}
  table{max-width:100%}
  input,select,button,textarea{max-width:100%}
  /* Mileage: toolbar/cards must not make page wider than viewport */
  body:has(h1) [class*="overflow-x-auto"]{max-width:100%}
  body:has(h1) .flex.gap-2,body:has(h1) .flex.gap-3,body:has(h1) .flex.gap-4{min-width:0}
  /* keep fixed mobile nav from covering last controls */
  #root>div{max-width:100vw}
}
