/* The management controls and views share one responsive layout. */
#topbar h1,
#topbar .crumb {
  min-width: 0;
  overflow-wrap: anywhere;
}
#topbar .crumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#topbar .topbar-right {
  flex-shrink: 0;
}
#tt-role-switch {
  width: clamp(132px, 15vw, 192px);
  min-height: 36px;
  color: var(--text);
}
#topbar .topbar-refresh {
  min-width: 38px;
  justify-content: center;
}
#topbar .portal-link {
  white-space: nowrap;
}
@media (max-width: 960px) {
  #topbar .menu-toggle,
  #topbar .topbar-refresh,
  #topbar .portal-link,
  #tt-role-switch,
  #sidebar .nav-close {
    min-height: 44px;
  }
  #topbar .menu-toggle,
  #topbar .topbar-refresh,
  .modal-head .x {
    min-width: 44px;
  }
}
@media (max-width: 640px) {
  #topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    gap: 6px 8px;
  }
  #topbar .topbar-right {
    display: contents;
  }
  #topbar .menu-toggle {
    grid-area: 1 / 1;
  }
  #topbar h1 {
    grid-area: 1 / 2;
  }
  #topbar .topbar-refresh {
    grid-area: 1 / 3;
    justify-self: end;
  }
  #tt-role-switch {
    grid-area: 2 / 1 / 3 / 3;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
  #topbar .portal-link {
    grid-area: 2 / 3;
    justify-content: center;
    padding-inline: 12px;
  }
  #view .btn,
  #modal-root .btn,
  .modal-head .x {
    min-height: 44px;
  }
  #view .card-head > .right {
    min-width: 0;
    flex-wrap: wrap;
  }
  .card-head,
  .toolbar,
  .cell-value {
    min-width: 0;
  }
  .responsive-table .cell-value {
    overflow-wrap: anywhere;
  }
  .responsive-table .cell-value .btn {
    max-width: 100%;
    white-space: normal;
  }
}
