/* David 2026-11-03: Všechny/Nové/Použité hranaté (ne pill) */
nav[data-verze-chips] a {
  border-radius: 0.375rem !important; /* rounded-md */
}

/* 2026-11-20 hledat: pole v liště má pevnou výšku, placeholder je čitelný.
   Procento výšky ve flexu (h-full + min-h-0 + py-0) ho umělo složit na 0. */
header form input[name="q"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  height: 3rem !important;
  min-height: 3rem !important;
  max-height: none !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  padding: 0 0.75rem !important;
  color: #2f2f2f !important;
  background-color: #fff !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  -webkit-text-fill-color: #2f2f2f !important;
}
header form input[name="q"]::placeholder {
  color: #5c6b76 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #5c6b76 !important;
}
header form:has(input[name="q"]) > div:first-child {
  display: flex !important;
  min-height: 3rem !important;
  align-items: stretch !important;
}
header form a[data-add-firm] {
  position: static !important;
  display: block !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0.45rem 0 0 auto !important;
  text-align: right !important;
  line-height: 1.25rem !important;
  overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
  /* Formulář je ve flex řádku s logem. Natáhnout ho na výšku řádku,
     ať „Přidat firmu“ (absolute, top 100% + mezera pod paddingem py-3)
     sedí na stejné linii jako O nás / FAQ / Kontakt ve všech jazycích. */
  header form:has(input[name="q"]) {
    position: relative !important;
    z-index: 30 !important;
    width: min(40rem, 50%) !important;
    max-width: 40rem !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  header form a[data-add-firm] {
    position: absolute !important;
    top: calc(100% + 1.3rem) !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: max-content !important;
    max-width: 18rem !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}
