.pdfcatalog__header {
  margin-bottom: 1.25rem;
}

.pdfcatalog__search {
  width: 100%;
}

.pdfcatalog__search .input-group {
  width: 100%;
}
.pdfcatalog__search .input-group:has(.pdfcatalog__search-reset) .btn {
  border-radius: 0;
}

.pdfcatalog__search .form-control {
  border-radius: 0.45rem 0 0 0.45rem;
  padding: 0.8rem 1rem;
  background: #fff;
}

.pdfcatalog__search .btn {
  border-radius: 0 0.45rem 0.45rem 0;
  min-width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pdfcatalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pdfcatalog__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  line-height: 1;
}

.pdfcatalog__filter-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

.pdfcatalog__filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.8rem;
}

.pdfcatalog__filter.is-active .pdfcatalog__filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.pdfcatalog__summary {
  margin-bottom: 1.5rem;
}

.pdfcatalog__list {
  display: grid;
  gap: 1rem;
}

.pdfcatalog__item {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

.pdfcatalog__item-main {
  min-width: 0;
}

.pdfcatalog__item-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.325rem 0 0;
  font-size: 1rem;
}

.pdfcatalog__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex: 0 0 auto;
}

.pdfcatalog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: -0.375rem 0 0;
  color: #666;
  font-size: 0.9rem;
}

.pdfcatalog__meta span:not(:last-child)::after {
  content: "";
}

.pdfcatalog__description {
  margin-top: 0.5rem;
}

.pdfcatalog__item-action {
  flex: 0 0 auto;
}

.pdfcatalog__item-action .btn {
  border-radius: 4px;
}

.pdfcatalog__item-action i {
  margin-right: 0.25rem;
}

.pdfcatalog__pagination {
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .pdfcatalog__item {
    display: block;
  }

  .pdfcatalog__item-action {
    margin-top: 1rem;
  }

  .pdfcatalog__meta {
    margin-left: 0;
  }
}

.pdfcatalog__search {
  display: flex;
  width: 100%;
  gap: 0.5rem;
}

.pdfcatalog__search-input {
  flex: 1 1 auto;
  width: 100%;
}

.pdfcatalog__search-submit,
.pdfcatalog__search-reset {
  width: 50px;
  min-width: 50px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.pdfcatalog__search-reset {
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, .25);
  border-left: 0;
  border-radius: 0 0.45rem 0.45rem 0;
  background: #fff;
  color: inherit;
}

.pdfcatalog__search-reset:hover {
  text-decoration: none;
}
