@media (max-width: 720px) {
  html,
  body,
  #root {
    max-width: 100%;
    overflow-x: hidden;
  }

  header,
  [data-cy='AppHeader.breadcrumbs'] {
    max-width: 100vw;
    min-width: 0;
  }

  header [aria-label^='Menu do usu'] {
    min-width: 0 !important;
    max-width: calc(100vw - 11rem) !important;
    padding-left: 0.35rem !important;
    padding-right: 0.25rem !important;
  }

  header [aria-label^='Menu do usu'] p {
    max-width: 8.75rem !important;
  }

  [data-cy='AppHeader.breadcrumbs'] {
    overflow-x: auto;
    overflow-y: hidden;
  }

  main,
  [role='main'] {
    max-width: 100vw;
    overflow-x: hidden;
  }

  [role='alert'] {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  [data-testid='ListaAtendimentoFilterTags'],
  [data-testid='ListaAtendimentoFilterTags'] > * {
    max-width: 100%;
    min-width: 0;
  }

  [data-testid='ListaAtendimentoFilterTags'] > * {
    display: flex !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }

  [data-testid='ListaAtendimentoFilterTags'] * {
    min-width: 0;
    white-space: normal !important;
  }

  [data-testid='cidadao.listaAtendimento'] {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  [data-testid='cidadao.listaAtendimento'] > div:first-child {
    flex-shrink: 0;
    margin-right: 0.5rem !important;
  }

  [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0;
    padding: 0.5rem 0.5rem 0.5rem 0 !important;
    width: 100% !important;
  }

  [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) > * {
    box-sizing: border-box;
    flex-basis: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0.125rem 0 !important;
    width: 100% !important;
  }

  [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) > *:last-child > * {
    align-items: flex-start !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    justify-content: space-between !important;
    min-width: 0;
    width: 100%;
  }

  [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) > *:nth-child(2) > * {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    max-width: 100%;
  }

  [data-testid='cidadao.listaAtendimento'] span,
  [data-testid='cidadao.listaAtendimento'] p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  [data-testid='cidadao.listaAtendimento'] button {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    flex-shrink: 0;
  }
}

@media (max-width: 720px) {
  body.doc-tasy-lista-atendimento-page {
    overflow-x: hidden;
  }

  body.doc-tasy-lista-atendimento-page main,
  body.doc-tasy-lista-atendimento-page [role='main'] {
    box-sizing: border-box;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body.doc-tasy-lista-atendimento-page h1 {
    font-size: 1.35rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  body.doc-tasy-lista-atendimento-page form {
    box-sizing: border-box;
    display: block !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page form > div {
    box-sizing: border-box;
    display: grid !important;
    gap: 0.5rem !important;
    grid-auto-flow: row !important;
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page form > div > div,
  body.doc-tasy-lista-atendimento-page form > div > div > div {
    box-sizing: border-box;
    flex-basis: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page form input[placeholder^='Pesquise'] {
    box-sizing: border-box;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page form label {
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  body.doc-tasy-lista-atendimento-page form label > span {
    white-space: normal !important;
  }

  body.doc-tasy-lista-atendimento-page form + button,
  body.doc-tasy-lista-atendimento-page form + span,
  body.doc-tasy-lista-atendimento-page form + div {
    max-width: 100% !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page form + button,
  body.doc-tasy-lista-atendimento-page form + span button,
  body.doc-tasy-lista-atendimento-page form + div button {
    justify-content: center !important;
    min-height: 2.75rem !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] {
    box-sizing: border-box;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] > div {
    align-items: stretch !important;
    display: grid !important;
    gap: 0.35rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] > div > * {
    box-sizing: border-box;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2rem 0.4rem !important;
    line-height: 1.2 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] + *,
  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] ~ * {
    box-sizing: border-box;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] + * button,
  body.doc-tasy-lista-atendimento-page [data-testid='ListaAtendimentoFilterTags'] ~ * button {
    justify-content: center !important;
    min-height: 2.75rem !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] {
    border-radius: 0.35rem !important;
    margin-top: 0.35rem !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) {
    gap: 0.2rem !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] > div:nth-child(2) > div {
    flex-basis: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] [class*='Tag'] {
    max-width: 100% !important;
    white-space: normal !important;
  }

  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] button,
  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] button:hover,
  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] button:focus,
  body.doc-tasy-lista-atendimento-page [data-testid='cidadao.listaAtendimento'] button:active {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 720px) {
  @supports selector(:has(*)) {
    body:has(input[placeholder^='Pesquise por nome']) main,
    body:has(input[placeholder^='Pesquise por nome']) [role='main'] {
      overflow-x: hidden;
    }

    body:has(input[placeholder^='Pesquise por nome']) form {
      width: 100%;
    }

    body:has(input[placeholder^='Pesquise por nome']) form > div {
      display: block !important;
      width: 100%;
    }

    body:has(input[placeholder^='Pesquise por nome']) form > div > div {
      box-sizing: border-box;
      max-width: 100% !important;
      min-width: 0 !important;
      width: 100% !important;
    }

    body:has(input[placeholder^='Pesquise por nome']) div:has(> form):has(> button) {
      align-items: stretch !important;
      display: grid !important;
      gap: 0.5rem !important;
      grid-auto-flow: row !important;
      grid-template-columns: minmax(0, 1fr) !important;
      width: 100%;
    }

    body:has(input[placeholder^='Pesquise por nome']) div:has(> [data-testid='ListaAtendimentoFilterTags']) {
      align-items: stretch !important;
      display: grid !important;
      gap: 0.5rem !important;
      grid-template-columns: minmax(0, 1fr) !important;
      width: 100%;
    }

    body:has(input[placeholder^='Pesquise por nome']) input[placeholder^='Pesquise por nome'] {
      width: 100% !important;
    }

    body:has(input[placeholder^='Pesquise por nome']) label {
      white-space: normal !important;
    }
  }
}
