/* JCC Quartile Browse UI Polish */

#quartileResults,
#quartileResults *,
.journal-ranking-explorer,
.journal-ranking-explorer * {
  box-sizing: border-box;
}

#quartileResults,
.journal-ranking-explorer {
  width: 100%;
}

#quartileResults table,
.journal-ranking-explorer table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

#quartileResults th,
#quartileResults td,
.journal-ranking-explorer th,
.journal-ranking-explorer td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7ecf4;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
  word-wrap: break-word;
}

#quartileResults th,
.journal-ranking-explorer th {
  background: #0F204B;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

#quartileResults td,
.journal-ranking-explorer td {
  color: #0F204B;
}

#quartileResults td:nth-child(1),
.journal-ranking-explorer td:nth-child(1) {
  font-weight: 600;
}

#quartileResults th:nth-child(1),
#quartileResults td:nth-child(1),
.journal-ranking-explorer th:nth-child(1),
.journal-ranking-explorer td:nth-child(1) {
  width: 37%;
}

#quartileResults th:nth-child(2),
#quartileResults td:nth-child(2),
.journal-ranking-explorer th:nth-child(2),
.journal-ranking-explorer td:nth-child(2) {
  width: 9%;
}

#quartileResults th:nth-child(3),
#quartileResults td:nth-child(3),
.journal-ranking-explorer th:nth-child(3),
.journal-ranking-explorer td:nth-child(3) {
  width: 14%;
}

#quartileResults th:nth-child(4),
#quartileResults td:nth-child(4),
#quartileResults th:nth-child(5),
#quartileResults td:nth-child(5),
#quartileResults th:nth-child(6),
#quartileResults td:nth-child(6),
#quartileResults th:nth-child(7),
#quartileResults td:nth-child(7),
.journal-ranking-explorer th:nth-child(4),
.journal-ranking-explorer td:nth-child(4),
.journal-ranking-explorer th:nth-child(5),
.journal-ranking-explorer td:nth-child(5),
.journal-ranking-explorer th:nth-child(6),
.journal-ranking-explorer td:nth-child(6),
.journal-ranking-explorer th:nth-child(7),
.journal-ranking-explorer td:nth-child(7) {
  width: 7%;
  text-align: center;
}

#quartileResults th:nth-child(8),
#quartileResults td:nth-child(8),
.journal-ranking-explorer th:nth-child(8),
.journal-ranking-explorer td:nth-child(8) {
  width: 19%;
}

#quartileSearch,
#rankingSearch,
input[placeholder*="Search within"],
input[placeholder*="Search all ranking"] {
  width: min(420px, 100%);
  padding: 12px 14px;
  border: 1px solid #ccd6e3;
  border-radius: 10px;
  font-size: 14px;
  margin: 10px 8px 14px 0;
}

button,
.quartile-btn,
#quartileSearchBtn,
#rankingSearchBtn {
  border-radius: 10px;
  padding: 10px 14px;
  border: 0;
  background: #0F204B;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

#quartileResults .pager,
.journal-ranking-explorer .pager,
.pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

#quartileResults .badge,
.journal-ranking-explorer .badge {
  display: inline-block;
  background: #eef4ff;
  color: #0F204B;
  border: 1px solid #cbdaf2;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
}
