.cdm-documents { width: 100%; }
.cdm-filter-select-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 66px;
    margin: 6px 0 30px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}
.cdm-filter-select {
    width: min(300px, 100%);
    min-height: 42px;
    padding: 8px 54px 8px 24px;
    border: 0;
    border-radius: 5px;
    background-color: var(--cdm-accent-color, #1678aa);
    background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.cdm-filter-select:focus { outline: 2px solid rgba(22,120,170,.25); outline-offset: 3px; }
.cdm-filter-select option { background: #fff; color: #222; }
.cdm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.cdm-filter { appearance: none; border: 1px solid currentColor; background: transparent; color: inherit; padding: 8px 14px; cursor: pointer; font: inherit; line-height: 1.2; }
.cdm-filter.is-active { background: currentColor; }
.cdm-filter.is-active::first-line { color: #fff; }

.cdm-list {
    display: grid;
    gap: 10px;
}

.cdm-document {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin: 0;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.cdm-document[hidden] { display: none !important; }

.cdm-document__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    min-height: 32px;
    line-height: 1;
    opacity: 1;
    transition: color .2s ease;
    position: relative;
}

.cdm-document__title {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    transition: color .2s ease;
}

.cdm-document__language {
    display: block;
    margin-top: 2px;
    color: #7a7a7a;
    font-size: 12px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

.cdm-document:hover,
.cdm-document:focus-visible {
    background: #fff;
    border-left-color: var(--cdm-accent-color, #0073aa);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    transform: translateY(-1px);
    outline: none;
}

.cdm-document:hover .cdm-document__icon,
.cdm-document:focus-visible .cdm-document__icon {
    opacity: 1;
    transform: none;
}

.cdm-document:hover .cdm-document__title,
.cdm-document:focus-visible .cdm-document__title {
    color: var(--cdm-accent-color, #0073aa);
}

.cdm-document:hover .cdm-document__language,
.cdm-document:focus-visible .cdm-document__language {
    color: #7a7a7a;
}

.cdm-pagination-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    margin-top: 28px;
    min-height: 66px;
    padding: 12px 24px;
    border-radius: 999px;
    background: #fff;
    box-sizing: border-box;
}
.cdm-pagination-wrap[hidden] { display: none !important; }
.cdm-pagination-total { order: 2; display:flex; align-items:center; align-self:stretch; margin: 0; color: #333; font-size: 14px; white-space: nowrap; }
.cdm-pagination { order: 1; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 4px; margin: 0; }
.cdm-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #222;
    cursor: pointer;
    font: inherit;
    line-height: 1;
    text-transform: none;
    transition: background-color .2s ease, color .2s ease;
}
.cdm-page--nav { padding-inline: 8px; }
.cdm-page:hover:not(:disabled), .cdm-page:focus-visible { background: #eef7fb; color: var(--cdm-accent-color, #1678aa); outline: none; }
.cdm-page.is-active { background: var(--cdm-accent-color, #1678aa); color: #fff; font-weight: 600; }
.cdm-page:disabled { color: #aaa; cursor: not-allowed; opacity: .55; }
.cdm-page-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; }

.cdm-no-results, .cdm-empty, .cdm-notice { margin: 16px 0; }

@media (max-width: 600px) {
    .cdm-filter-select-wrap { align-items: stretch; flex-direction: column; gap: 6px; }
    .cdm-filter-select { width: 100%; }
    .cdm-document { align-items: flex-start; padding: 12px; }
    .cdm-document__icon { flex-basis: 28px; width: 28px; min-height: 28px; font-size: 21px; }
    .cdm-document__title { font-size: 15px; }
}

@media (max-width: 700px) {
    .cdm-filter-select-wrap { padding: 12px; border-radius: 18px; }
    .cdm-filter-select { width: 100%; }
    .cdm-pagination-wrap { flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; }
    .cdm-pagination-total { order: 1; }
    .cdm-pagination { order: 2; max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .cdm-page--nav span:not([aria-hidden="true"]) { display: none; }
}


/* v0.8.6: bundled PDF SVG icon. The mask uses the plugin asset locally, inherits currentColor and requires no external request. */
.cdm-document__icon::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    -webkit-mask: url("pdf-file.svg") center / contain no-repeat;
    mask: url("pdf-file.svg") center / contain no-repeat;
}
.cdm-document__icon {
    color: #9a9a9a;
    transition: color .2s ease;
}
.cdm-document:hover .cdm-document__icon,
.cdm-document:focus-visible .cdm-document__icon {
    color: var(--cdm-accent-color, #0073aa);
}
