/* OPAT-EXP-001.3.2 — selector de artículos y equilibrio de filtros. */
.rn-service-field {
  position: relative;
}

.rn-service-field > small {
  color: #617784;
  font-weight: 500;
}

.rn-article-results {
  position: absolute;
  z-index: 3;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbd7dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgb(18 52 68 / 18%);
}

.rn-article-results[hidden] {
  display: none;
}

.rn-article-results button {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  text-align: left;
  background: #fff;
}

.rn-article-results button:hover,
.rn-article-results button:focus-visible {
  background: #eef6f9;
}

.rn-article-results span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.rn-article-results small {
  color: #a24a3a;
}

.rn-article-results p {
  margin: 0;
  padding: 10px;
  color: #617784;
  font-weight: 500;
}

.rn-list > .rn-empty {
  margin: 0;
  padding: 16px;
  border: 1px dashed #cbd7dd;
  border-radius: 9px;
  text-align: center;
  background: #f8fbfc;
}

@media (min-width: 1100px) {
  .rn-filters {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .rn-filters > :nth-child(-n + 3) {
    grid-column: span 4;
  }

  .rn-filters > :nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (min-width: 601px) and (max-width: 1099px) {
  .rn-filters {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .rn-filters > :nth-child(-n + 3) {
    grid-column: span 2;
  }

  .rn-filters > :nth-child(4),
  .rn-filters > :nth-child(5) {
    grid-column: span 3;
  }

  .rn-filters > :nth-child(6),
  .rn-filters > :nth-child(7) {
    grid-column: span 3;
  }
}

@media (max-width: 600px) {
  .rn-article-results {
    position: static;
    max-height: 230px;
    margin-top: 2px;
    box-shadow: none;
  }

  .rn-article-results button {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 52px;
  }
}
