/*
 * Topbar wide layout.
 * On large desktop screens the action buttons use the empty space in the
 * first row. Smaller screens keep the two-row layout for readability.
 */
@media (min-width: 1600px) {
  .topbar {
    position: relative;
    min-height: var(--topbar-h);
  }

  .topbar-row-main {
    position: relative;
    z-index: 2;
  }

  /* The live counter moves into the free space beside the page title. */
  .topbar-row-main .topbar-center {
    position: absolute;
    left: 140px;
    width: max-content;
    padding: 0;
  }

  .topbar-row-actions {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    max-height: var(--topbar-h);
    padding: 0 152px 0 24px;
    border-top: 0;
    background: transparent;
    pointer-events: none;
  }

  #topbar-actions-primary {
    flex: 0 1 auto;
    width: max-content;
    max-width: calc(100% - 150px);
    padding-block: 0;
    overflow-x: auto;
    pointer-events: auto;
  }

  .topbar-actions-group-end {
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .topbar-row-actions #server-status-panel {
    top: calc(100% + 10px);
    right: 152px;
    left: auto;
    pointer-events: auto;
  }

  .topbar.topbar-actions-collapsed .topbar-row-actions {
    height: 0;
    min-height: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }
}
