.category-list-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.category-list-card .kt-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eef2f7;
    background: #fff;
}

.category-list-card .kt-card-body {
    padding: 0.85rem 1rem 1rem;
}

.category-table-wrap {
    border: 1px solid #eef2f7;
    border-radius: 0.625rem;
    overflow: hidden;
    background: #fff;
}

.dataTables_wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "length filter"
        "table table"
        "info paginate";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 0;
    float: none !important;
}

.dataTables_wrapper .dataTables_length {
    grid-area: length;
    justify-self: start;
    padding: 0.35rem 0.25rem 0.15rem 0.25rem;
}

.dataTables_wrapper .dataTables_filter {
    grid-area: filter;
    justify-self: end;
    text-align: right;
    padding: 0.35rem 0.25rem 0.15rem 0.25rem;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.875rem;
    background-color: #fff;
}

.dataTables_wrapper .dataTables_filter input {
    width: 220px !important;
    margin-left: 0 !important;
}

.dataTables_wrapper table.dataTable {
    grid-area: table;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

.dataTables_wrapper table.dataTable thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 0.7rem 0.75rem !important;
    white-space: nowrap;
}

.dataTables_wrapper table.dataTable tbody td {
    vertical-align: middle;
    color: #111827;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 0.75rem 0.75rem !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
    background: #f9fbff;
}

.dataTables_wrapper table.dataTable tbody td img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.dataTables_wrapper table.dataTable tbody td:last-child {
    white-space: nowrap;
}

.dataTables_wrapper table.dataTable tbody td:last-child a,
.dataTables_wrapper table.dataTable tbody td:last-child button {
    width: 1.95rem;
    height: 1.95rem;
    border-radius: 0.45rem;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.35rem;
    transition: all 0.15s ease;
}

.dataTables_wrapper table.dataTable tbody td:last-child a:hover,
.dataTables_wrapper table.dataTable tbody td:last-child button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin-top: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    float: none !important;
}

.dataTables_wrapper .dataTables_info {
    grid-area: info;
    justify-self: start;
    padding: 0.2rem 0.25rem 0.35rem 0.25rem;
}

.dataTables_wrapper .dataTables_paginate {
    grid-area: paginate;
    justify-self: end;
    padding: 0.2rem 0.25rem 0.35rem 0.25rem;
}

@media (max-width: 768px) {
    .dataTables_wrapper {
        grid-template-columns: 1fr;
        grid-template-areas:
            "length"
            "filter"
            "table"
            "info"
            "paginate";
    }

    .dataTables_wrapper .dataTables_filter {
        justify-self: stretch;
        text-align: left;
    }

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

    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
    }
}
