.dataTables_wrapper { color: #334155; }
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { margin-bottom: 1rem; }
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label { font-weight: 600; }
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select { display: inline-block; width: auto; margin-left: .5rem; border: 1px solid #ced4da; border-radius: .375rem; padding: .375rem .75rem; }
.dataTables_wrapper .dataTables_filter input { min-width: 230px; }
.dataTables_wrapper .dataTables_paginate .pagination { flex-wrap: wrap; justify-content: flex-end; }
table.dataTable > thead > tr > th,
table.dataTable > tbody > tr > td { white-space: nowrap; }

table.dataTable > tbody > tr.child > td {
    background: #f8fafc;
    padding: .85rem 1rem;
    white-space: normal;
}

table.dataTable > tbody > tr.child ul.dtr-details {
    display: block;
    width: 100%;
}

table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: grid;
    grid-template-columns: minmax(7rem, 40%) minmax(0, 1fr);
    gap: .5rem 1rem;
    padding: .55rem 0;
    white-space: normal;
}

table.dataTable > tbody > tr.child .dtr-title {
    color: #475569;
    font-weight: 700;
}

table.dataTable > tbody > tr.child .dtr-data {
    color: #1f2937;
    min-width: 0;
    overflow-wrap: anywhere;
}

.admin-history table.dataTable {
    color: #1f2937;
    font-family: var(--bs-body-font-family, inherit);
    font-size: 0.9rem;
}

.admin-history table.dataTable > thead > tr > th {
    background-color: #f8fafc;
    color: #172033;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-history table.dataTable > tbody > tr > td {
    color: #1f2937;
    font-weight: 500;
}

.admin-history table.dataTable > tbody > tr > td small {
    color: #64748b !important;
    font-weight: 500;
}

.admin-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
}

.admin-status-badge--active {
    background: #dcfce7;
    color: #166534;
}

.admin-status-badge--expired {
    background: #fee2e2;
    color: #b91c1c;
}

.text-bg-primary {
    color: #fff !important;
    background-color: #0d6efd !important;
}

.text-bg-secondary {
    color: #fff !important;
    background-color: #6c757d !important;
}

.text-bg-success {
    color: #fff !important;
    background-color: #198754 !important;
}

.text-bg-light {
    color: #212529 !important;
    background-color: #f8f9fa !important;
}

@media (max-width: 575.98px) {
    .dataTables_wrapper .dataTables_filter input { min-width: 0; width: 100%; margin: .5rem 0 0; }
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length { text-align: left; }
    .dataTables_wrapper .dataTables_paginate .pagination { justify-content: flex-start; }
    table.dataTable > tbody > tr.child ul.dtr-details > li { grid-template-columns: 1fr; gap: .2rem; }
}
