/* FariDocs 1.22.5 — date filters and flexible catalog categories. */
.document-filter {
    align-items: end;
}

.document-filter input[type="date"] {
    min-width: 148px;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #cbdbe1;
    border-radius: 8px;
    background: #fbfdfd;
    color: inherit;
    font: inherit;
}

.workspace-authenticated .documents-toolbar {
    grid-template-columns: 1fr;
}

.workspace-authenticated .documents-toolbar .document-filter {
    max-width: none;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto auto;
}

.document-filter-apply {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #123b5d;
    border-radius: 10px;
    background: #123b5d;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e6f5f3;
    color: #08776d;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.product-category-fields [hidden] {
    display: none !important;
}

.product-catalog-table {
    min-width: 1160px;
}

.product-catalog-table th:nth-child(1) { width: 8%; }
.product-catalog-table th:nth-child(2) { width: 15%; }
.product-catalog-table th:nth-child(3) { width: 11%; }
.product-catalog-table th:nth-child(4) { width: 20%; }
.product-catalog-table th:nth-child(5) { width: 7%; }
.product-catalog-table th:nth-child(6) { width: 11%; }
.product-catalog-table th:nth-child(7) { width: 7%; }
.product-catalog-table th:nth-child(8) { width: 9%; }
.product-catalog-table th:nth-child(9) { width: 12%; }

[data-theme="dark"] .document-filter-apply {
    border-color: #35c6bb;
    background: #168f88;
}

[data-theme="dark"] .document-filter input[type="date"] {
    border-color: #365666;
    background: #081e29;
    color: #e5f1f5;
    color-scheme: dark;
}

[data-theme="dark"] .product-category-badge {
    background: #153f43;
    color: #7ce1d8;
}

@media (max-width: 980px) {
    .workspace-authenticated .documents-toolbar .document-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .workspace-authenticated .documents-toolbar .document-filter {
        grid-template-columns: 1fr;
    }

    .document-filter label,
    .document-filter input[type="date"],
    .document-filter-apply,
    .document-filter-reset {
        width: 100%;
    }

    .document-filter-reset {
        justify-content: center;
    }
}
