.documents-plugin {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    color: #0f172a;
    transition: height .25s ease, opacity .15s ease
}

.documents-plugin.is-loading {
    opacity: .65
}

.documents-plugin * {
    box-sizing: border-box
}

.taty-docs-hide-page-title .entry-title,
.taty-docs-hide-page-title .page-title,
.taty-docs-hide-page-title h1.entry-title,
.taty-docs-hide-page-title h1.page-title,
.taty-docs-hide-page-title .post-title,
.taty-docs-hide-page-title .single-title {
    display: none !important
}

.documents-plugin__title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 32px !important;
    margin-bottom: 1.5rem;
    letter-spacing: -.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    gap: .5rem
}

.documents-plugin__title i {
    color: #2563eb;
    font-size: 2rem
}

.documents-plugin__categories {
    background: #fff;
    padding: 1.5rem 1.5rem .8rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
    border: 1px solid #e9eef2
}

.categories__caption {
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #475569;
    margin-bottom: 1rem
}

.categories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem 2.5rem;
    align-items: center
}

.category-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    white-space: nowrap;
    cursor: default
}

.category-item input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    border-radius: 4px;
    cursor: pointer
}

.category-item label {
    cursor: pointer;
    color: #1e293b;
    font-weight: 500
}

.documents-plugin__search {
    display: flex;
    gap: .5rem;
    margin-bottom: 2.2rem
}

.search__field {
    flex: 1;
    position: relative
}

.search__field i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none
}

.documents-plugin .search__field input {
    width: 100%;
    padding: .9rem 3rem .9rem 3rem;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
    padding-inline-start: 3rem !important;
    padding-inline-end: 3rem !important;
    border: 1px solid #dde3e9;
    border-radius: 60px;
    font-size: 1rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .02);
    transition: .15s
}

.search__clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: none;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer
}

.search__field.is-has-value .search__clear {
    display: inline-flex
}

.search__clear:hover {
    background: #f1f5f9;
    color: #64748b
}

.search__clear:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12)
}

.search__clear i {
    margin: 0 !important;
    font-size: .9rem
}

.search__field input:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1)
}

.search__button {
    background: #2563eb;
    border: none;
    border-radius: 60px;
    padding: 0 1.8rem;
    color: #fff;
    font-weight: 500;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: default;
    box-shadow: 0 4px 8px rgba(37, 99, 235, .2);
    white-space: nowrap
}

.search__button i {
    font-size: .9rem
}

.documents-plugin__list {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.document-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.8rem;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .02);
    transition: .1s ease;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.document-card:hover {
    border-color: #d9e2ef;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .04)
}

.document-card__content {
    width: 100%
}

.document-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 .35rem;
    color: #0f172a
}

.document-card__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem
}

.document-card__header .document-card__title {
    margin: 0
}

.attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 30px;
    padding: .18rem .75rem;
    font-size: .8rem;
    color: #1d4ed8;
    font-weight: 600
}

.attachment-badge i {
    font-size: .85rem;
    color: #2563eb
}

.child-documents {
    margin-top: .5rem;
    margin-left: 1rem;
    border-left: 2px solid #dce5f0;
    padding-left: 1.2rem
}

.child-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid #edf2f8;
    font-size: .95rem;
    gap: 1rem;
    flex-wrap: wrap
}

.child-document:last-child {
    border-bottom: none
}

.child-document__info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap
}

.child-document__date {
    color: #64748b;
    font-size: .85rem;
    white-space: nowrap
}

.child-document__date i {
    margin-right: .2rem;
    font-size: .75rem;
    color: #94a3b8
}

.child-document__title {
    font-weight: 500;
    color: #0f172a
}

.child-document__link {
    color: #2563eb;
    text-decoration: none;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    white-space: nowrap
}

.child-document__link i {
    font-size: .8rem
}

.document-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: .75rem;
    color: #64748b;
    font-size: .85rem;
    flex-wrap: wrap
}

.documents-plugin .document-card__meta span {
    display: inline-flex;
    align-items: center
}

.document-card__meta i {
    font-size: .75rem;
    color: #94a3b8;
    margin-right: .2rem
}

.documents-plugin .fas,
.documents-plugin .far,
.documents-plugin .fa {
    font-style: normal;
    line-height: 1
}

.documents-plugin .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900
}

.documents-plugin .far {
    font-family: "Font Awesome 6 Free";
    font-weight: 400
}

.document-card__category {
    background: #f1f5f9;
    padding: .2rem .7rem;
    border-radius: 30px;
    font-weight: 500;
    color: #334155;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .01em
}

.documents-plugin .document-card__description {
    color: #334155;
    line-height: 1.5;
    margin: .5rem 0 .2rem !important;
    font-size: .95rem;
    max-width: 100%
}

.documents-plugin .document-card__action {
    margin-left: 0;
    margin-top: .75rem !important
}

.documents-plugin a.btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: .6rem !important;
    background: #f8fafc !important;
    border: 1px solid #d0d9e3 !important;
    padding: .7rem 1.6rem !important;
    border-radius: 40px !important;
    font-weight: 500 !important;
    font-size: .9rem !important;
    line-height: 1 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    transition: .1s !important;
    cursor: pointer !important
}

.documents-plugin a.btn i {
    color: #475569 !important;
    font-size: .9rem !important
}

.documents-plugin a.btn.btn--download {
    background: #f0f4fe !important;
    border-color: #b9d0f8 !important;
    color: #1e4fd9 !important
}

.documents-plugin a.btn.btn--download i {
    color: #2563eb !important
}

.documents-plugin a.btn.btn--external {
    background: #f0f9ff !important;
    border-color: #b8d1f0 !important;
    color: #0263b0 !important
}

.documents-plugin a.btn.btn--external i {
    color: #0284c7 !important
}

.documents-plugin a.btn:hover {
    filter: brightness(.99)
}

.documents-plugin a.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important
}

.filter-hint {
    font-size: .85rem;
    margin: -.5rem 0 1.5rem;
    color: #475569;
    background: #f1f5f9;
    padding: .4rem 1.2rem;
    border-radius: 30px;
    display: inline-block
}

.filter-hint i {
    color: #2563eb;
    margin-right: .3rem
}

.documents-plugin__pagination {
    margin-top: 2rem;
    text-align: right;
    font-size: .85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem
}

.pagination__link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px
}

.pagination__link i {
    opacity: .6
}

.pagination__link--disabled i {
    opacity: .4
}

.pagination__text {
    color: #94a3b8
}

@media (max-width:650px) {
    .documents-plugin {
        padding: 1.5rem 1rem
    }

    .categories__list {
        gap: 1rem 1.5rem
    }

    .document-card {
        padding: 1.2rem 1.4rem
    }

    .documents-plugin__search {
        flex-direction: column
    }

    .search__button {
        justify-content: center;
        padding: .9rem 1.8rem
    }
}