/*
 LGFT v4.51.27.7 — Mobile Header Tooltip De-Clutter
 Scope: screen-only. Fixes auto-generated help icons leaking into mobile table labels.
 Does not touch print, login/auth, price sync, QR, permissions or database logic.
*/

@media screen and (max-width: 768px) {
  /* Keep mobile tooltips working for real/manual help controls, but do not show
     auto-generated question-mark icons inside dense tables and KPI headers. */
  table.table th > .lgft-tip.auto-help,
  table.table td > .lgft-tip.auto-help,
  .lgft-data-table th > .lgft-tip.auto-help,
  .lgft-data-table td > .lgft-tip.auto-help,
  .table-card-label .lgft-tip,
  .kpi .label > .lgft-tip.auto-help,
  .stat .label > .lgft-tip.auto-help,
  .metric .label > .lgft-tip.auto-help,
  .summary-card .label > .lgft-tip.auto-help {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  /* Prevent hidden auto-help remnants from stretching mobile table headers. */
  table.table th,
  table.table td,
  .lgft-data-table th,
  .lgft-data-table td {
    gap: 0 !important;
  }

  .table-card-label {
    display: block !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .lgft-tooltip-portal.show {
    display: block !important;
  }
}

@media print {
  /* Screen-only repair. Do not alter portrait printing. */
}
