/* ---------------------------------------------------------------------------
   WattMon adaptive tables  (paired with assets/js/wattmon-adaptive-table.js)

   When a wide table (e.g. the device-list widgets / admin device lists) would
   otherwise force a horizontal scrollbar on a small screen, the companion JS
   hides the least-important columns until it fits, and uses this wrapper as a
   last-resort scroll fallback.

   The JS inserts a <div class="rma-wrap"> around each table it adopts. Only
   selectors scoped to that wrapper are defined here, so nothing else on the
   page is affected.
   --------------------------------------------------------------------------- */

.rma-wrap {
    width: 100%;
    overflow-x: auto;               /* last-resort horizontal scroll if we can't hide enough */
    -webkit-overflow-scrolling: touch;
    /* Keep the header row readable without adding a sticky shadow on every theme. */
}

.rma-wrap > table {
    margin-bottom: 0;
}

/* Respect the existing "no responsive wrap" opt-out convention (Bootstrap 3). */
/* A table (or any ancestor) carrying .rma-opt-out is ignored by the helper. */
