@media (max-width: 767px) {
  .premium-topbar, .app.sidebar-collapsed .premium-topbar {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "title" "actions" "search" !important;
    width: 100%; box-sizing: border-box; padding: 12px !important;
  }
  .premium-topbar .topbar-title-block { min-width: 0; }
  .premium-topbar .page-title {
    font-size: 23px !important; line-height: 1.15 !important;
    white-space: normal !important; overflow: visible !important;
    overflow-wrap: anywhere; max-width: 100%;
  }
  .premium-actions { width: 100% !important; justify-content: flex-end !important; flex-wrap: wrap !important; }
  .premium-search { box-sizing: border-box; width: 100% !important; min-width: 0; max-width: 100%; }
  .premium-search input { box-sizing: border-box; width: 100%; min-width: 0; font-size: 16px; }
  #view-equipes .card-head { gap: 12px; padding: 16px; flex-direction: column; align-items: stretch; }
  #view-equipes .card-head .primary { width: 100%; min-height: 44px; white-space: normal; }
  #view-equipes .table-wrap { overflow: visible; padding: 0 12px 12px; box-sizing: border-box; }
  #view-equipes table { display: block; width: 100% !important; min-width: 0 !important; border: 0; }
  #view-equipes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #view-equipes tbody { display: grid; gap: 12px; width: 100%; }
  #view-equipes tbody tr { display: grid; grid-template-columns: minmax(0, 1fr); height: auto !important; min-height: 0; padding: 12px; border: 1px solid #e4d7c2; border-radius: 14px; background: #fffdf9; }
  #view-equipes tbody td { display: block; box-sizing: border-box; width: 100% !important; min-width: 0; height: auto !important; padding: 8px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #view-equipes tbody td::before { display: block; margin-bottom: 4px; color: #8b6b37; font-size: 10px; font-weight: 700; text-transform: uppercase; }
  #view-equipes tbody td:nth-child(1)::before { content: "Nome"; }
  #view-equipes tbody td:nth-child(2)::before { content: "E-mail"; }
  #view-equipes tbody td:nth-child(3)::before { content: "Função"; }
  #view-equipes tbody td:nth-child(4)::before { content: "Permissões"; }
  #view-equipes tbody td:nth-child(5)::before { content: "Status"; }
  #view-equipes tbody td:nth-child(6)::before { content: "Ações"; }
  #view-equipes tbody td .row { flex-wrap: wrap; gap: 8px; min-width: 0; }
  #view-equipes tbody td button { min-height: 44px; max-width: 100%; white-space: normal; }
  #view-equipes tbody td .chip { max-width: 100%; box-sizing: border-box; white-space: normal; height: auto; }
}
