/* Compact PITVU breed chooser. Side by side on desktop, vertical on mobile. */
.registry-workspace .breed-directory-group[data-breed-catalog] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  margin-top: 26px !important;
  margin-bottom: 26px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.registry-workspace .breed-directory-group > .breed-directory-primary,
.registry-workspace .breed-directory-group > .breed-directory-other {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  grid-column: auto !important;
  align-self: start !important;
}
.registry-workspace .breed-directory-group > .breed-directory-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 17px 20px !important;
  min-height: 70px !important;
}
.registry-workspace .breed-directory-group .breed-directory-name {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  writing-mode: horizontal-tb !important;
  line-height: 1.4 !important;
}
.registry-workspace .breed-directory-group .breed-directory-count {
  flex-shrink: 0 !important;
  margin-left: 12px !important;
}
.registry-workspace .breed-directory-group .breed-directory-other > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 70px !important;
  padding: 17px 20px !important;
  gap: 12px !important;
  list-style: none !important;
  cursor: pointer;
}
.registry-workspace .breed-directory-group .breed-directory-other > summary > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.registry-workspace .breed-directory-group .breed-directory-other > summary > span:last-child {
  flex: 0 0 auto;
}
.registry-workspace .breed-directory-group .breed-directory-other-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 10px !important;
  padding: 0 12px 12px !important;
}
.registry-workspace .breed-directory-group .breed-directory-other-grid > .breed-directory-card {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 62px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 14px !important;
}
@media (min-width: 900px) {
  .registry-workspace .breed-directory-group[data-breed-catalog] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
  }
}
@media (max-width: 899px) {
  .registry-workspace .breed-directory-group[data-breed-catalog] {
    display: flex !important;
    flex-direction: column !important;
  }
}
@media (max-width: 550px) {
  .registry-workspace .breed-directory-group .breed-directory-other-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .registry-workspace .breed-directory-group > .breed-directory-primary,
  .registry-workspace .breed-directory-group .breed-directory-other > summary {
    padding: 15px 16px !important;
  }
  .registry-workspace .breed-directory-group[data-breed-catalog] {
    margin-top: 20px !important;
  }
}
