.app-datatable {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 0.75rem;
    width: 100%;
}

.app-datatable .dataTables_wrapper {
    font-size: 0.84rem;
}

.app-datatable .app-datatable__table {
    margin: 0 !important;
}

.app-datatable table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    color: #1f2937;
}

.app-datatable table.dataTable thead th {
    background: #f8fafc;
    border-bottom: 1px solid #d9e1eb;
    color: #553333;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.58rem 0.65rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.app-datatable table.dataTable tbody td {
    padding: 0.48rem 0.65rem;
    vertical-align: middle;
}

.app-datatable table.dataTable tbody tr:last-child td {
    border-bottom-color: #cbd5e1;
}

.app-datatable table.dataTable tbody tr:hover td {
    background: #f9fbfd;
}

.app-datatable .dataTables_length label,
.app-datatable .dataTables_filter label,
.app-datatable .dataTables_info {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0;
}

.app-datatable .dataTables_length label,
.app-datatable .dataTables_filter label {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
}

.app-datatable .dataTables_filter {
    text-align: right;
}

.app-datatable .dataTables_filter input,
.app-datatable .dataTables_length select {
    background-color: #ffffff;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    color: #1f2937;
    font-size: 0.875rem;
    min-height: 2.05rem;
}

.app-datatable .dataTables_length select {
    min-width: 4.25rem;
    padding: 0.25rem 1.7rem 0.25rem 0.55rem;
}

.app-datatable .dataTables_filter input {
    margin-left: 0;
    min-width: 14rem;
    padding: 0.32rem 0.65rem;
}

.app-datatable .dataTables_filter input:focus,
.app-datatable .dataTables_length select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.14);
    outline: 0;
}

.app-datatable .dataTables_paginate .pagination {
    justify-content: flex-end;
    margin: 0;
}

.app-datatable .page-link {
    border-color: #d8e0ea;
    color: #334155;
    font-size: 0.82rem;
    line-height: 1.2;
    min-width: 2rem;
    padding: 0.38rem 0.6rem;
    text-align: center;
}

.app-datatable .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.app-datatable .dataTables_processing {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    color: #334155;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

.app-datatable--compact {
    padding: 0.6rem;
}

.app-datatable--compact table.dataTable tbody td,
.app-datatable--compact table.dataTable thead th {
    padding: 0.38rem 0.55rem;
}

@media (max-width: 767.98px) {
    .app-datatable {
        padding: 0.75rem;
    }

    .app-datatable .dataTables_filter {
        text-align: left;
    }

    .app-datatable .dataTables_filter input {
        margin-left: 0;
        margin-top: 0.35rem;
        min-width: 100%;
        width: 100%;
    }

    .app-datatable .dataTables_paginate .pagination {
        justify-content: flex-start;
    }
}
