/* InfraTrack v2.7 Mobile / iPad Experience */
:root{--mobile-safe-bottom:env(safe-area-inset-bottom,0px)}
.mobile-scan-fab{position:fixed;right:18px;bottom:calc(18px + var(--mobile-safe-bottom));z-index:9999;width:58px;height:58px;border:0;border-radius:22px;background:var(--primary,#0b84ff);color:#fff;box-shadow:0 18px 40px rgba(15,23,42,.22);display:none;align-items:center;justify-content:center;font-size:24px;font-weight:900;transition:.18s ease}.mobile-scan-fab:active{transform:scale(.96)}
.mobile-bottom-actions{position:fixed;left:0;right:0;bottom:0;z-index:9000;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-top:1px solid #e2e8f0;padding:10px 14px calc(10px + var(--mobile-safe-bottom));display:none;gap:10px;box-shadow:0 -12px 35px rgba(15,23,42,.08)}
.mobile-bottom-actions a,.mobile-bottom-actions button{flex:1;min-height:44px;border-radius:14px;border:1px solid #dbe6f3;background:#fff;font-weight:900;color:#0f172a}.mobile-bottom-actions .primary{background:var(--primary,#0b84ff);color:#fff;border-color:var(--primary,#0b84ff)}
@media(max-width:900px){
  body{font-size:15px}.main{padding-bottom:86px!important}.mobile-scan-fab{display:flex}.mobile-bottom-actions{display:flex}
  .dashboard-grid,.cards,.stat-grid,.grid,.proc-grid{grid-template-columns:1fr!important}
  .card,.panel,.proc-card,.ops-panel{border-radius:22px!important;box-shadow:0 12px 30px rgba(15,23,42,.06)!important}
  table.responsive,table.table,table.data-table,.asset-table{border:0!important;width:100%!important}
  table.responsive thead,table.table thead,table.data-table thead,.asset-table thead{display:none!important}
  table.responsive tr,table.table tr,table.data-table tr,.asset-table tr{display:block!important;margin:0 0 14px!important;background:#fff!important;border:1px solid #dbe6f3!important;border-radius:22px!important;padding:14px!important;box-shadow:0 12px 30px rgba(15,23,42,.05)!important;transition:.18s ease!important}
  table.responsive tr:active,table.table tr:active,table.data-table tr:active,.asset-table tr:active{transform:scale(.99)}
  table.responsive td,table.table td,table.data-table td,.asset-table td{display:flex!important;justify-content:space-between!important;gap:12px!important;border:0!important;border-bottom:1px solid #eef2f7!important;padding:10px 2px!important;text-align:right!important;word-break:break-word!important}
  table.responsive td:last-child,table.table td:last-child,table.data-table td:last-child,.asset-table td:last-child{border-bottom:0!important}
  table.responsive td:before,table.table td:before,table.data-table td:before,.asset-table td:before{content:attr(data-label);font-weight:900;color:#64748b;text-align:left;min-width:120px}
  .btn,button,input,select,textarea{min-height:44px}.toolbar,.filters,.action-bar{position:sticky;top:0;z-index:20;background:rgba(248,251,255,.92);backdrop-filter:blur(14px);border-radius:20px;padding:10px!important;gap:8px!important;overflow-x:auto}.toolbar::-webkit-scrollbar,.filters::-webkit-scrollbar,.action-bar::-webkit-scrollbar{display:none}
  .appbar .global-search{max-width:none!important;width:calc(100vw - 32px)!important}.app-actions{gap:8px!important}.org-chip{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
@media(max-width:640px){.side{transform:translateX(-100%);transition:.22s ease}.side.mobile-open{transform:translateX(0)}.main,.appbar{margin-left:0!important}.appbar{left:0!important}.brand small{display:block}.mobile-hide{display:none!important}}
