.acetec-pdf-library,
.acetec-pdf-library * {
  box-sizing: border-box;
}

.acetec-pdf-library {
  --acetec-pdf-accent: #007db1;
  --acetec-pdf-dark: #001d31;
  --acetec-pdf-text: #212529;
  --acetec-pdf-muted: #52606b;
  --acetec-pdf-border: #d9e1e7;
  color: var(--acetec-pdf-text);
  font-family: inherit;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

.pdf-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.pdf-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--acetec-pdf-border);
  border-radius: 4px;
  color: var(--acetec-pdf-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 13px;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pdf-chip:hover,
.pdf-chip:focus-visible {
  background: #f1f6f8;
  border-color: var(--acetec-pdf-accent);
  color: #005f87;
  text-decoration: none;
}

.pdf-chip.is-active {
  background: var(--acetec-pdf-dark);
  border-color: var(--acetec-pdf-dark);
  color: #fff;
}

.pdf-chip:focus-visible,
.pdf-link:focus-visible,
.pdf-download:focus-visible,
.pdf-search-input:focus-visible,
.pdf-search-clear:focus-visible {
  outline: 2px solid var(--acetec-pdf-accent);
  outline-offset: 2px;
}

.pdf-searchbar {
  align-items: center;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 36px;
  margin: 0 0 24px;
  max-width: 760px;
  position: relative;
}

.pdf-search-icon {
  border: 1.7px solid #60758a;
  border-radius: 50%;
  grid-column: 1;
  grid-row: 1;
  height: 13px;
  justify-self: end;
  pointer-events: none;
  position: relative;
  width: 13px;
  z-index: 1;
}

.pdf-search-icon::after {
  background: #60758a;
  content: "";
  height: 1.7px;
  position: absolute;
  right: -5px;
  top: 10px;
  transform: rotate(45deg);
  transform-origin: left center;
  width: 6px;
}

.pdf-search-input {
  appearance: none;
  background: #fff;
  border: 1px solid #cbd9e2;
  border-radius: 5px;
  color: var(--acetec-pdf-text);
  font: inherit;
  font-size: 15px;
  grid-column: 1 / -1;
  grid-row: 1;
  height: 48px;
  letter-spacing: 0;
  margin: 0;
  padding: 0 44px 0 42px;
  width: 100%;
}

.pdf-search-input::placeholder {
  color: #6c7780;
  font-size: 14px;
  opacity: 1;
}

.pdf-search-input:focus {
  border-color: var(--acetec-pdf-accent);
}

.pdf-search-clear {
  align-items: center;
  appearance: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 3px;
  color: #52606b !important;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 22px;
  grid-column: 3;
  grid-row: 1;
  height: 32px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0 !important;
  width: 32px;
  z-index: 1;
}

.pdf-search-clear[hidden] {
  display: none !important;
}

.pdf-search-clear:hover {
  background: #eef3f5 !important;
  color: var(--acetec-pdf-dark) !important;
}

.pdf-search-status {
  color: var(--acetec-pdf-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: -12px 0 18px;
}

.pdf-search-status[hidden] {
  display: none !important;
}

.pdf-library-results {
  display: grid;
  gap: 38px;
}

.pdf-category-section {
  margin: 0;
  min-width: 0;
}

.pdf-category-section[hidden] {
  display: none !important;
}

.pdf-section-header {
  align-items: center;
  border-bottom: 2px solid var(--acetec-pdf-dark);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0;
  padding: 0 4px 9px;
}

.acetec-pdf-library .pdf-section-title {
  color: inherit;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0;
}

.pdf-section-count {
  align-items: center;
  background: #eef5f8;
  border: 1px solid #d4e2e9;
  border-radius: 3px;
  color: #33434f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-width: 28px;
  padding: 6px 7px;
}

.pdf-list {
  margin: 0;
  padding: 0;
}

.pdf-row {
  align-items: center;
  border-bottom: 1px solid #e1e7ec;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 40px;
  margin: 0;
  min-height: 62px;
  padding: 10px 4px;
  transition: background-color 140ms ease;
}

.pdf-row:hover {
  background: #f4f7f8;
}

.pdf-row[hidden] {
  display: none !important;
}

.pdf-left {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-width: 0;
}

.pdf-icon {
  color: var(--acetec-pdf-accent);
  display: inline-flex;
}

.pdf-icon svg,
.pdf-download svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.pdf-copy {
  display: block;
  min-width: 0;
}

.pdf-link {
  color: var(--acetec-pdf-text);
  display: inline;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.pdf-link:hover,
.pdf-link:focus-visible {
  color: #005f87;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pdf-meta {
  color: var(--acetec-pdf-muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.pdf-download {
  align-items: center;
  border-radius: 4px;
  color: var(--acetec-pdf-accent);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  justify-self: end;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
  width: 36px;
}

.pdf-download:hover,
.pdf-download:focus-visible {
  background: #e9f4f8;
  color: #005f87;
  text-decoration: none;
}

.pdf-empty,
.pdf-empty-global,
.pdf-search-empty {
  border-left: 3px solid var(--acetec-pdf-accent);
  color: var(--acetec-pdf-muted);
  margin: 14px 0 0;
  padding: 9px 12px;
}

.pdf-search-empty[hidden] {
  display: none !important;
}

@media (max-width: 780px) {
  .acetec-pdf-library {
    margin: 0 !important;
    padding: 0 18px !important;
  }

  .pdf-filterbar {
    flex-wrap: nowrap;
    margin-left: -18px;
    margin-right: -18px;
    overflow-x: auto;
    padding: 0 18px 4px;
    scrollbar-width: thin;
  }

  .pdf-chip {
    flex: 0 0 auto;
  }

  .pdf-searchbar {
    max-width: none;
  }

  .pdf-library-results {
    gap: 30px;
  }

  .pdf-row {
    padding: 12px 4px;
  }

  .pdf-meta {
    max-width: 100%;
  }
}

@media print {
  .pdf-filterbar,
  .pdf-searchbar,
  .pdf-search-status,
  .pdf-search-empty,
  .pdf-download {
    display: none !important;
  }

  .acetec-pdf-library {
    padding: 0 !important;
  }

  .pdf-category-section,
  .pdf-row {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .pdf-row {
    grid-template-columns: 1fr;
  }
}
