@media (max-width: 991px) {
  .container-xl {
    max-width: 100% !important;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .page,
  .page-wrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .offcanvas.offcanvas-end.mobile-menu {
    width: 100% !important;
  }

  .mobile-menu-nav {
    flex: 1;
  }

  .mobile-menu-footer-row {
    justify-content: space-between;
  }

  .page-body .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

.table-responsive {
  overflow-x: hidden;
}

.table-responsive table {
    border: 0;
  }
.teams-table .table-responsive,
.requests-table .table-responsive {
  overflow-x: auto;
}

  .table-responsive thead {
    display: none;
  }

  .table-responsive tbody tr {
    display: block;
    border: 1px solid var(--tblr-border-color);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--tblr-card-bg);
  }

  .users-table .table-responsive tbody tr {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* Rows render as cards: the table must stop sizing them from its fixed-layout columns. */
  .users-table .table-responsive table,
  .users-table .table-responsive tbody {
    display: block;
    width: 100%;
  }

  .table-responsive td {
    display: flex;
    flex-direction: column;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid var(--tblr-border-color);
    font-size: 0.85rem;
  }

  .table-responsive td:last-child {
    border-bottom: 0;
  }

  .table-responsive td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tblr-muted);
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
    display: block;
    width: 100%;
  }

  .table-responsive td > * {
    color: var(--tblr-body-color);
  }

  .users-table tbody td .badge {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .users-table tbody td .user-roles-badges .badge {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }

  .users-table tbody td,
  .users-table tbody td a,
  .users-table tbody td .text,
  .users-table tbody td .text-muted {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

.users-table tbody td:last-child,
.requests-table td:last-child,
.teams-table td:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  width: auto !important;
  overflow-x: auto;
  padding-right: 0.75rem;
  flex-direction: row;
  align-items: center;
}

.users-table thead th:last-child,
.requests-table thead th:last-child,
.teams-table thead th:last-child {
  text-align: left !important;
}

  .teams-table {
    overflow-x: auto;
  }

  .teams-table table {
    min-width: 0;
  }

  .teams-table td,
  .teams-table .badge {
    white-space: normal;
    word-break: break-word;
  }

  .teams-table .badge {
    display: inline-block;
    max-width: 100%;
  }
}
