/* V2.5.1 — cabeçalho e conteúdo administrativo mais compactos em celular. */
@media (max-width: 700px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "user menu" "brand brand" "links links";
    grid-template-rows: min-content min-content min-content;
    align-content: start;
    height: auto !important;
    min-height: 0 !important;
    gap: 6px 10px;
    padding: 9px 12px;
    margin-bottom: 11px;
  }

  .top-user {
    grid-area: user;
    align-self: center;
    gap: 3px 7px;
    line-height: 1.25;
  }

  .top-user b {
    max-width: 100%;
    white-space: normal;
    font-size: 13px;
  }

  .topbar .menu-toggle {
    grid-area: menu;
    align-self: center;
    justify-self: end;
    height: auto !important;
    min-height: 44px;
    padding: 0 12px;
  }

  .topbar .top-brand {
    grid-area: brand;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    justify-self: start;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    gap: 1px;
    text-align: left;
    line-height: 1.2;
  }

  .topbar .top-brand strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .topbar .top-brand small {
    margin-top: 0;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: .08em;
  }

  .topbar .top-links {
    grid-area: links;
    display: none;
  }

  .topbar .top-links.aberto {
    display: grid;
    grid-column: 1 / -1;
    max-height: min(58dvh, 520px);
    overflow-y: auto;
    margin-top: 3px;
  }

  .titulo {
    gap: 6px;
    margin-bottom: 12px;
  }

  .team-list-head {
    padding: 12px;
    gap: 9px;
  }

  /* A regra geral da agenda oculta tabelas no celular. Reexibe a lista da equipe. */
  .team-list .team-table-wrap {
    display: block !important;
  }

  .team-search input {
    min-height: 46px;
  }

  .new-employee > summary .btn {
    min-height: 48px;
  }
}
