body > main,
body > main > section {
  min-width: 0;
}

body > header nav {
  min-width: 0;
  flex-shrink: 1;
}

body > footer .flex.space-x-6 {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

body > footer .flex.space-x-6 > * {
  margin-left: 0;
}

@media (min-width: 768px) and (max-width: 1279px) {
  body > header nav > a {
    padding-inline: 6px;
    font-size: 11px;
  }
  body > header > div:first-child {
    gap: 8px;
  }
  body > header > div:first-child > div:first-child {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }
}

main select,
main input {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  body > header > div:first-child {
    gap: 6px;
    padding-inline: 12px;
  }
  body > header > div:first-child > div:first-child a {
    gap: 6px;
  }
  body > header > div:first-child > div:first-child a > div:first-child {
    width: 24px;
    height: 28px;
  }
  body > header .font-bold.text-base {
    font-size: 14px;
  }
  body > header > div:first-child > div:last-child {
    gap: 3px;
  }
  body > header > div:first-child > div:last-child > * {
    margin-left: 0 !important;
  }
  body > header button[onclick="openQuickSearchModal()"],
  body > header #btn-header-login,
  body > header #btn-theme-toggle,
  body > header button[onclick="toggleMobileNav()"] {
    width: 28px;
    min-width: 28px;
    padding-inline: 0;
    flex-shrink: 0;
    justify-content: center;
  }
  body > header .header-login-text {
    display: none;
  }
  body > header #btn-lang-toggle {
    padding-inline: 4px;
    font-size: 10px;
  }
}

@media (max-width: 639px) {
  #screener-workspace .condition-row {
    grid-template-columns: minmax(0, 1fr) 28px;
  }
  #screener-workspace .condition-row > select {
    grid-column: 1 / -1;
  }
  #screener-workspace .flex.items-center.space-x-3 {
    flex-wrap: wrap;
    gap: 8px;
  }
  #screener-workspace .flex.items-center.space-x-3 > * {
    margin-left: 0;
  }
  #screener-workspace .flex.items-center.space-x-2:has(> button) {
    flex-wrap: wrap;
    gap: 8px;
  }
  #screener-workspace .flex.items-center.space-x-2:has(> button) > * {
    margin-left: 0;
  }
  #screener-workspace .flex.items-center.justify-between,
  #screener-workspace h3.flex {
    flex-wrap: wrap;
    gap: 8px;
  }
  #data-workspace h2 {
    flex-wrap: wrap;
    gap: 8px;
  }
}
