/* header-controls-align-20261109
   One height and one vertical center for language, account, and currency.
   Phone widths keep the existing 36px control height and the existing wrap.
   Quick assessment keeps its own phone top bar. */

.topbar-tools > .topbar-settings > summary,
.topbar-tools > .account-panel > summary {
  align-items: center;
  display: flex;
  justify-content: center;
  line-height: 1.2;
  overflow: visible;
  padding-bottom: 0;
  padding-top: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.topbar-tools > .global-currency-field > select,
.topbar-tools > .global-currency-field > .currency-selected-label {
  line-height: 1.2;
  padding-bottom: 0;
  padding-top: 0;
}

.topbar-tools > .global-currency-field > select {
  appearance: none;
  background-image: none;
}

.topbar-tools > .global-currency-field::after {
  align-self: center;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #3d5248;
  content: "";
  grid-area: 1 / 1;
  height: 0;
  justify-self: end;
  margin-right: 12px;
  pointer-events: none;
  width: 0;
  z-index: 3;
}

@media (min-width: 768px) {
  html:not([data-homepage-view="qhc"]) .topbar-tools > .topbar-settings > summary,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .account-panel > summary,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .global-currency-field > select,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .global-currency-field > .currency-selected-label,
  .workforce-standalone .topbar-tools > .topbar-settings > summary,
  .workforce-standalone .topbar-tools > .account-panel > summary,
  .workforce-standalone .topbar-tools > .global-currency-field > select,
  .workforce-standalone .topbar-tools > .global-currency-field > .currency-selected-label {
    box-sizing: border-box;
    font-size: 0.875rem;
    font-weight: 500;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  html:not([data-homepage-view="qhc"]) .topbar-tools > .topbar-settings > summary,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .account-panel > summary,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .global-currency-field,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .global-currency-field > select,
  html:not([data-homepage-view="qhc"]) .topbar-tools > .global-currency-field > .currency-selected-label,
  .workforce-standalone .topbar-tools > .topbar-settings > summary,
  .workforce-standalone .topbar-tools > .account-panel > summary,
  .workforce-standalone .topbar-tools > .global-currency-field,
  .workforce-standalone .topbar-tools > .global-currency-field > select,
  .workforce-standalone .topbar-tools > .global-currency-field > .currency-selected-label {
    box-sizing: border-box;
    font-size: 0.8125rem;
    font-weight: 500;
    height: 36px;
    line-height: 1.2;
    min-height: 36px;
  }

  html:not([data-homepage-view="qhc"]) .topbar-tools > .topbar-settings > summary,
  .workforce-standalone .topbar-tools > .topbar-settings > summary {
    height: 36px;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }
}

/* 1181–1460 used to stop this cluster at 400px.
   Bahasa Indonesia plus the unset currency placeholder is wider than that,
   so the text painted past the page. Let the cluster be as wide as the
   visible labels, and let the placeholder stay whole. */
@media (min-width: 1181px) and (max-width: 1460px) {
  .topbar-tools {
    max-width: max-content;
  }

  .topbar-tools > .global-currency-field {
    max-width: max-content;
  }
}

