:root {
  --officejur-header-height: 68px;
  --officejur-header-navy: #17213a;
}

office-document-header {
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: var(--officejur-header-height);
  height: var(--officejur-header-height);
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  background: var(--officejur-header-navy);
  box-shadow: 0 8px 28px rgba(23, 33, 58, .18);
}

.topbar .brand,
.topbar .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.topbar .brand img,
.topbar .brand-link img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.topbar .brand > span,
.topbar .brand-link > span {
  display: block;
  min-width: 0;
}

.topbar .brand strong,
.topbar .brand h1,
.topbar .brand-link strong {
  display: block;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font: 700 18px/1.15 Georgia, "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .brand small,
.topbar .brand > span > span,
.topbar .brand-link small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #c8cfdd;
  font: 700 11px/1.25 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.topbar office-app-switcher {
  flex: 0 0 auto;
}

.topbar .action-icon {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 620px) {
  .topbar {
    gap: 10px;
    padding-inline: 14px;
  }

  .topbar .brand,
  .topbar .brand-link {
    gap: 8px;
    min-width: 0;
  }

  .topbar .brand img,
  .topbar .brand-link img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .topbar .top-actions {
    width: auto;
    margin-left: auto;
  }

  .topbar .top-actions > .button,
  .topbar .top-actions > .btn {
    width: auto;
  }

  office-document-header .topbar .brand > span {
    display: none;
  }

  office-document-header .topbar .top-actions > .button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  office-document-header .topbar .action-label {
    display: none;
  }

  office-document-header .topbar .action-icon {
    display: block;
  }
}
