@media only screen and (max-width: 600px) {
  .nao-encontrado .icone-nao-encontrado {
    font-size: 3rem;
    margin-bottom: 10px;
  }

  .nao-encontrado .texto-nao-encontrado {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  #whatsapp {
    width: 50px;
    height: 50px;
    color: white;
    background: #128c7e;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: fixed;
    bottom: 60px;
    right: 20px;
    font-size: 1.5rem;

    &:hover {
      background-color: #18a191;
      cursor: pointer;
    }
  }

  #body {
    position: relative;
    height: 100vh !important;
    max-height: 100vh !important;
    display: flex;
    flex-direction: column;
  }

  #body > header {
    width: 100% !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    color: #ffffff !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between;

    background: var(--gradient-color-red) !important;
    background-color: var(--color-red) !important;
    border: 0 !important;
    border-bottom: 5px var(--color-light-blue) solid !important;
    border-radius: 0 !important;
    box-shadow: 0 0 15px #00000033 !important;
  }

  #content {
    display: flex;
    flex-direction: column;
  }

  #body > footer {
    width: 100%;
    min-height: 50px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff99;
    background: var(--gradient-color-red) !important;
    font-size: 0.9rem !important;
    text-align: center;
  }

  #content > .inner-content {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    height: calc(100vh - 60px - 50px) !important;
  }

  #body > header > .pesquisa-mobile {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh !important;
    background-color: #00000055;
    z-index: 999;
  }

  #body > header > .pesquisa-mobile .botao-fechar {
  }

  #body > header > .pesquisa-mobile .pesquisa {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 10px;
    padding-top: 7px;

    background-color: white;
    border-radius: 0 0 calc(57.6px / 2) calc(57.6px / 2);
    transition: 0.2s ease-in-out;
    justify-content: center;
  }

  #body > header > .pesquisa-mobile .barra-pesquisa {
    display: flex;
    gap: 10px;
    padding: 0;
  }

  #body > header > .pesquisa-mobile .barra-pesquisa .input {
    width: 100% !important;
  }

  #body > header > .pesquisa-mobile .barra-pesquisa .botao-fechar {
    color: white !important;
    background-color: var(--color-red);
    border-radius: 50%;
    width: 37.6px !important;
    height: 37.6px !important;
    max-width: 37.6px !important;
    max-height: 37.6px !important;
    min-width: 37.6px !important;
    min-height: 37.6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &:hover {
      background-color: var(--color-red-hover);
    }
  }

  #body > header > .pesquisa-mobile .results {
    margin-left: 10px !important;
    /* height: 800px !important; */
    max-height: 300px !important;
  }

  #body > header > .parte1-mobile #botao-pesquisa {
    display: flex;
  }

  #body > header > .parte1 {
    display: none;
  }

  #body > header > .parte2 {
    display: none;
  }

  #body > header > .parte3 {
    justify-content: right !important;
  }

  .header-perfil {
    height: 30px !important;
    width: 30px !important;
  }

  .nome-cliente {
    display: none;
  }

  /* A visualização do nav é alterado via js no arquivo index.php */
  #nav,
  #nav-mobile {
    height: fit-content;
    max-height: calc(100vh - 70px);
    width: 100% !important;
    position: absolute;
    top: 60px !important;
    left: 0 !important;
    border-radius: 0 !important;
    z-index: 99;
    overflow-y: scroll;
    display: none;
  }

  #nav a,
  #nav-mobile a {
    padding: 15px 0 !important;
    width: 100% !important;
  }

  .path-bar {
    width: 100% !important;
    background-color: var(--color-blue) !important;
    border-radius: 0px !important;
  }

  #home .info .esteira .legenda {
    display: flex;
    flex-direction: column;
    padding: 25px;
    gap: 15px;
  }

  #upload > form {
    display: flex;
    flex-direction: column;
  }

  #upload > form .header {
    display: flex !important;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 70px;
  }

  #upload > form > .formulario {
    flex-direction: column !important;
  }

  #upload > form > .formulario > .form-left,
  #upload > form > .formulario > .form-right {
    width: 100% !important;
  }

  #upload > form > .footer {
    grid-area: none;
    display: grid;
    justify-content: center;
    min-height: 70px;
  }

  #explorar {
    display: grid;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: repeat(3, auto) 1fr !important;
    grid-template-areas:
      "header"
      "tool-bar"
      "resultados"
      "conteudo";
    gap: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #explorar > .file-path-bar {
    grid-area: header;
    height: fit-content;
    background-color: #ffffff !important;
    color: var(--color-blue-hover) !important;
    padding: 15px;
    font-size: 1.1rem;
    width: 100% !important;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    border-bottom: 1px solid var(--color-light-blue);
    gap: 10px;
  }

  .pesquisa-explorar {
    width: 100%;
  }

  #explorar .tool-bar {
    background-color: #ffffffcc;
  }

  #explorar .tool-bar menu {
    text-decoration: none !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    width: fit-content;
    gap: 20px;
  }

  #explorar .tool-bar > menu > li > a,
  #explorar .tool-bar > .bloco-exibir > a {
    font-size: 1.7rem !important;
    color: var(--color-blue);
  }

  #explorar .tool-bar > menu > li > a > span {
    display: none;
  }

  #explorar .tool-bar *:is(.qtd-resultados, .selecionar-todos) {
    display: none;
  }

  #explorar .resultados {
    grid-area: resultados;
    display: flex;
    padding: 7px 15px;
    gap: 15px;
    background-color: #ffffff88;
    font-weight: normal !important;
  }

  #explorar .resultados > *:not(:first-child) {
    padding-left: 15px;
    border-left: 1px solid var(--color-blue);
  }

  #explorar > section {
    grid-area: conteudo;
    margin: 0 !important;
  }

  #explorar > aside {
    grid-area: conteudo;
    background-color: #fff;
    color: transparent;
    padding: 15px;
    overflow-x: hidden;
  }

  #explorar > aside.controle-aberto {
    animation: none;
    width: 100%;
    display: block;
  }

  #explorar > aside.controle-fechado {
    animation: none;
    display: none;
  }

  #explorar > aside.controle-aberto > form {
    animation: abre-aside 0.5s;
    display: grid;
  }

  #explorar > aside.controle-fechado > form {
    animation: fecha-aside 0.2s;
    display: none;
  }

  .documentos.enviar-aberto {
    display: none !important;
  }

  .documentos.modo-blocos {
    padding: 10px;
    display: grid;
    height: fit-content;
    max-height: 100%;
    grid-template-columns: repeat(auto-fit, 150px);
    justify-content: space-between;
    gap: 10px;
  }

  .documentos.modo-lista .lista-header .info,
  .documentos.modo-lista .documento .info {
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
  }

  .documentos.modo-lista .lista-header .info label:not(.nome),
  .documentos.modo-lista .documento .info div:not(.nome) {
    display: none;
  }

  #esteira .tool-bar {
    grid-area: tool-bar;
    display: flex;
    margin: 0 !important;
    background-color: #ffffff88;
    padding: 10px 15px;
    justify-content: center;
    gap: 10px;
    align-items: center;
    max-width: 1fr !important;
  }

  #mainModal {
    border-radius: 7px !important;
  }

  #modalFeedback {
    border-radius: 7px !important;
  }

  .ui.stackable.grid .row:first-child .dataTables_length {
    height: 100% !important;
    display: flex !important;
    align-items: center;
    justify-content: right;
  }

  .flyout.self-blue .content {
    padding: 0px !important;
  }

  .flyout.visualiza-documento .content .controls {
    padding: 10px !important;
    width: 100% !important;
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--color-blue);
    margin-bottom: 10px;
  }

  .flyout.visualiza-documento .content .controls button {
    padding: 10px;
    background: #00000000;
    color: var(--color-blue);
    border: 1px solid var(--color-blue);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.15rem;

    &:hover {
      background-color: var(--color-light-blue);
    }
  }
}

@media only screen and (max-width: 510px) {
  .documentos.modo-blocos {
    grid-template-columns: 1fr 1fr;
  }
}
