/* Shared rule for every page, including long titles and extra primary actions. */
html body #app .main > .topbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 8px 10px !important;
  width: 100% !important;
}
html body #app .topbar > .topbar-copy {
  display: contents !important;
}
html body #app .topbar > .topbar-copy::before {
  content: none !important;
  display: none !important;
}
html body #app .topbar .topbar-copy h1 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  font-size: var(--inline-title-size, 30px) !important;
  line-height: 1.18 !important;
}
html body #app .topbar .topbar-copy p {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  margin-bottom: 8px !important;
}
html body #app .topbar > .top-actions {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  width: auto !important;
  margin: 0 !important;
  gap: 0 !important;
}
html body #app .topbar > .topbar-primary {
  grid-column: 1 / -1 !important;
  grid-row: 3 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
html body #app .topbar > .topbar-primary:empty,
html body #app .topbar > .topbar-primary:has(#new-booking) {
  display: none !important;
}
html body #app .topbar > .topbar-primary > .btn {
  height: auto !important;
  min-height: 44px !important;
  white-space: normal !important;
}
@media (max-width: 900px) {
  html body #app .main > .screen-back + .topbar h1,
  html body #app .main > .screen-back + .topbar .topbar-copy p {
    margin-left: 46px !important;
  }
  html body #app .topbar > .top-actions .round-action {
    flex: 0 0 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    padding: 0 !important;
  }
  html body #app .topbar > .topbar-primary > .btn {
    flex: 1 1 100% !important;
  }
}
