/* ZONE v6.5 — hard restore mobile report tables (Safari-safe)
   Loaded after theme-zone.css so old experimental card rules cannot win. */
@media (max-width:720px){
  html body .table-layout-scroll,
  html body .profile-archive-panel .table-layout-scroll,
  html body .home-panel .table-layout-scroll{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0!important;
    margin:0!important;
    background:#fff!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    touch-action:pan-x pan-y!important;
  }

  html body .table-layout-scroll > table.report-table,
  html body .profile-archive-panel table.profile-report-table,
  html body .home-panel table.report-table{
    display:table!important;
    width:900px!important;
    min-width:900px!important;
    max-width:none!important;
    table-layout:fixed!important;
    border-collapse:collapse!important;
    border-spacing:0!important;
    background:#fff!important;
  }

  html body .profile-archive-panel table.profile-report-table{
    width:760px!important;
    min-width:760px!important;
  }

  html body .table-layout-scroll > table.report-table > thead,
  html body .profile-archive-panel table.profile-report-table > thead,
  html body .home-panel table.report-table > thead{
    display:table-header-group!important;
  }
  html body .table-layout-scroll > table.report-table > tbody,
  html body .profile-archive-panel table.profile-report-table > tbody,
  html body .home-panel table.report-table > tbody{
    display:table-row-group!important;
  }
  html body .table-layout-scroll > table.report-table tr,
  html body .profile-archive-panel table.profile-report-table tr,
  html body .home-panel table.report-table tr{
    display:table-row!important;
    grid-template-columns:none!important;
    gap:0!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body .table-layout-scroll > table.report-table th,
  html body .table-layout-scroll > table.report-table td,
  html body .profile-archive-panel table.profile-report-table th,
  html body .profile-archive-panel table.profile-report-table td,
  html body .home-panel table.report-table th,
  html body .home-panel table.report-table td{
    display:table-cell!important;
    grid-column:auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:44px!important;
    min-height:0!important;
    padding:8px 9px!important;
    vertical-align:middle!important;
    border:0!important;
    border-bottom:1px solid #e5ece8!important;
    background:#fff!important;
    text-align:left!important;
    white-space:nowrap!important;
  }
  html body .table-layout-scroll > table.report-table td::before,
  html body .profile-archive-panel table.profile-report-table td::before,
  html body .home-panel table.report-table td::before{
    content:none!important;
    display:none!important;
  }

  html body .table-layout-scroll .col-time{width:76px!important}
  html body .table-layout-scroll .col-attacker{width:132px!important}
  html body .table-layout-scroll .col-team{width:140px!important}
  html body .table-layout-scroll .col-hmrls{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    padding-left:4px!important;
    padding-right:4px!important;
    text-align:center!important;
  }
  html body .table-layout-scroll .col-url{width:255px!important;min-width:255px!important}
  html body .table-layout-scroll .col-os{width:78px!important}
  html body .table-layout-scroll .col-mirror{width:60px!important;text-align:center!important}

  /* Profile tables have one identity column intentionally removed. */
  html body .profile-report-attacker .col-team{width:142px!important}
  html body .profile-report-team .col-attacker{width:142px!important}
  html body .profile-archive-panel .profile-report-table .col-url{width:240px!important;min-width:240px!important}
  html body .profile-archive-panel .profile-report-table .col-os{width:76px!important}
  html body .profile-archive-panel .profile-report-table .col-mirror{width:58px!important}

  html body .table-layout-scroll .col-hmrls > *,
  html body .table-layout-scroll .col-mirror > *{
    margin-left:auto!important;
    margin-right:auto!important;
  }
  html body .table-layout-scroll .url-cell{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body .table-layout-scroll .reporter-identity{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    flex-wrap:nowrap!important;
    min-width:0!important;
  }
  html body .table-layout-scroll .identity-link{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body .table-layout-scroll .country-flag{
    display:inline-flex!important;
    margin-inline:auto!important;
  }
}

/* ZONE v6.10 — keep report marker icons perfectly centered on mobile */
@media(max-width:720px){
  html body .table-layout-scroll .col-hmrls.hmrls-head,
  html body .home-panel .col-hmrls.hmrls-head{
    padding-left:4px!important;
    padding-right:4px!important;
    text-align:center!important;
  }
  html body .table-layout-scroll .hmrls-icon-wrap,
  html body .home-panel .hmrls-icon-wrap{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    height:22px!important;
    margin:0 auto!important;
    line-height:0!important;
  }
  html body .table-layout-scroll .hmrls-icon,
  html body .home-panel .hmrls-icon{
    display:block!important;
    width:18px!important;
    height:18px!important;
    max-width:18px!important;
    max-height:18px!important;
    object-fit:contain!important;
  }
  html body .table-layout-scroll .hmrls-icon-head,
  html body .home-panel .hmrls-icon-head{
    width:16px!important;
    height:16px!important;
    max-width:16px!important;
    max-height:16px!important;
    opacity:.78!important;
  }
}

/* ZONE v7.0 — compact H/M/R/S icon columns and visible On Hold fields */
@media(max-width:720px){
  html body .table-layout-scroll .hmrls-location-head,
  html body .home-panel .hmrls-location-head{
    font-size:9px!important;
    text-align:center!important;
  }
  html body .pending-public-table .col-url{
    min-width:230px!important;
    width:230px!important;
    max-width:230px!important;
  }
  html body .pending-public-table .col-mirror{
    min-width:68px!important;
    width:68px!important;
  }
  html body .pending-public-table .col-status{
    min-width:84px!important;
    width:84px!important;
  }
}
