:root { --pg-typeface: Outfit, system-ui, sans-serif; }

body,
body :is(button, input, textarea, select, option, kbd, dialog, .select2-container, .select2-dropdown),
body #pg-print {
  font-family: var(--pg-typeface);
}

/* Apex creates SVG labels and tooltip headings with inline font declarations. */
body .apexcharts-canvas :is(text, tspan, .apexcharts-legend-text, .apexcharts-tooltip, .apexcharts-tooltip-title) {
  font-family: var(--pg-typeface) !important;
}

/* Keep the magnifier and text baselines consistent across both search dialogs and registers. */
body :is(#search, #finder, .pt-search),
body .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field {
  box-sizing: border-box;
  border-radius: 999px;
  min-height: 38px;
  padding-inline: 37px 14px;
  color: var(--ink);
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2375879b' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
  background-position: 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
}
body :is(#search, #finder, .pt-search):focus-visible,
body .select2-container .select2-dropdown .select2-search--dropdown .select2-search__field:focus-visible {
  outline: 2px solid #4991c9;
  outline-offset: 1px;
}
header #globaltools #findAll {
  border-radius: 999px !important;
  min-height: 35px;
  padding-inline: 12px;
}

header #globaltools :is(#layers, #modeSwitch, #guide, #bell) {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  flex: 0 0 34px;
  border-radius: 50%;
}
header #globaltools :is(#layers, #modeSwitch, #guide, #bell) svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.85;
}
header #globaltools #bell sup {
  font-family: var(--pg-typeface);
  font-size: 9px;
  min-width: 15px;
  min-height: 15px;
  right: -3px;
  top: -4px;
}
@media (pointer: coarse) {
  header #globaltools :is(#layers, #modeSwitch, #guide, #bell) {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }
}
