/* Shared DataTables search field (DataTables 1 and 2). */
.body .dataTables_wrapper .dataTables_filter,
.body .dt-container .dt-search {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    text-align: left;
}

.body .dataTables_wrapper .dataTables_filter label,
.body .dt-container .dt-search label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    order: 0;
    margin: 0;
    color: #52647a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.body .dataTables_wrapper .dataTables_filter input,
.body .dt-container .dt-search input {
    order: 1;
    width: clamp(180px, 22vw, 300px);
    max-width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 9px 14px 9px 40px;
    border: 1px solid #d4dfeb;
    border-radius: 12px;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364778e' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 18px;
    color: #20344c;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(20, 46, 78, .04);
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.body .dataTables_wrapper .dataTables_filter input:hover,
.body .dt-container .dt-search input:hover {
    border-color: #a9bfd8;
    background-color: #fff;
}

.body .dataTables_wrapper .dataTables_filter input:focus,
.body .dt-container .dt-search input:focus {
    outline: 2px solid transparent;
    border-color: #3985d0;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(57, 133, 208, .16);
}

@media (max-width: 575.98px) {
    .body .dataTables_wrapper .dataTables_filter,
    .body .dt-container .dt-search {
        float: none;
        width: 100%;
        justify-content: flex-start;
        margin-top: 12px;
    }

    .body .dataTables_wrapper .dataTables_filter label {
        width: 100%;
    }

    .body .dataTables_wrapper .dataTables_filter input,
    .body .dt-container .dt-search input {
        flex: 1;
        width: auto;
        font-size: 16px;
    }
}
