/**
 * Don Gestión — DataTables theme
 * Aplica a tablas DataTables en .app-content (estilos UI; scroll global vía .dg-dt-hscroll).
 */

:root {
    --dg-dt-primary: #4454c3;
    --dg-dt-primary-light: #eef1fb;
    --dg-dt-text: #424e79;
    --dg-dt-text-muted: #8e98b3;
    --dg-dt-border: #e8ebf4;
    --dg-dt-radius: 10px;
    --dg-dt-stock-positive: #24a46d;
    --dg-dt-stock-negative: #e63757;
    --dg-dt-gap: 20px;
    --dg-dt-row-selected-bg: #d0daf5;
    --dg-dt-row-selected-hover-bg: #c4d0f0;
}

/* Card contenedor */
.app-content .dg-datatable-card {
    border: none;
    border-radius: var(--dg-dt-radius);
    box-shadow: 0 1px 8px rgba(68, 84, 195, 0.08);
    overflow: visible;
}

.app-content .dg-datatable-card > .card-body {
    padding: 1.5rem;
}

/* Toolbar acciones masivas */
.app-content .dg-datatable-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 var(--dg-dt-gap) 0 !important;
    padding: 0 !important;
    border: none !important;
}

.app-content .dg-datatable-toolbar form {
    margin: 0;
    display: inline-flex;
}

/* Scroll horizontal nativo — todas las DataTables (.dg-dt-hscroll asignada por datatable-hscroll.js) */
.table-responsive.dg-dt-hscroll {
    margin: 0 !important;
    padding: 0 0 10px !important;
    border: none !important;
    border-radius: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}

.table-responsive.dg-dt-hscroll .dataTables_wrapper,
.table-responsive.dg-dt-hscroll .dt-container {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: auto !important;
    min-width: 100% !important;
}

.table-responsive.dg-dt-hscroll table.dataTable {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

.table-responsive.dg-dt-hscroll::-webkit-scrollbar {
    height: 8px;
}

.table-responsive.dg-dt-hscroll::-webkit-scrollbar-track {
    background: #f0f2f8;
    border-radius: 4px;
}

.table-responsive.dg-dt-hscroll::-webkit-scrollbar-thumb {
    background: #c5cde8;
    border-radius: 4px;
}

.table-responsive.dg-dt-hscroll::-webkit-scrollbar-thumb:hover {
    background: #a8b4e0;
}

.app-content .dg-datatable .dataTables_wrapper,
.app-content .dg-datatable .dt-container {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: auto !important;
    min-width: 100% !important;
}

.app-content .dg-datatable .table-responsive {
    margin: 0 !important;
    padding: 0 0 10px !important;
    border: none !important;
    border-radius: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
}

.app-content .dg-datatable .table-responsive table.dataTable {
    width: max-content !important;
    min-width: 100% !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid var(--dg-dt-border) !important;
}

.app-content .dg-datatable-toolbar .btn {
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 5px;
    line-height: 1.35;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.app-content .dg-datatable-toolbar .btn-danger {
    color: #e63757 !important;
    border: 1px solid #e63757 !important;
}

.app-content .dg-datatable-toolbar .btn-danger:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-danger:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-danger:not(:disabled):active {
    color: #fff !important;
    background-color: #e63757 !important;
    border-color: #e63757 !important;
}

.app-content .dg-datatable-toolbar .btn-primary {
    color: var(--dg-dt-primary) !important;
    border: 1px solid var(--dg-dt-primary) !important;
}

.app-content .dg-datatable-toolbar .btn-primary:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-primary:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-primary:not(:disabled):active {
    color: #fff !important;
    background-color: var(--dg-dt-primary) !important;
    border-color: var(--dg-dt-primary) !important;
}

.app-content .dg-datatable-toolbar .btn-warning {
    color: #c9921a !important;
    border: 1px solid #f7b731 !important;
}

.app-content .dg-datatable-toolbar .btn-warning:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-warning:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-warning:not(:disabled):active {
    color: #fff !important;
    background-color: #f7b731 !important;
    border-color: #f7b731 !important;
}

.app-content .dg-datatable-toolbar .btn-success {
    color: #24a46d !important;
    border: 1px solid #24a46d !important;
}

.app-content .dg-datatable-toolbar .btn-success:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-success:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-success:not(:disabled):active {
    color: #fff !important;
    background-color: #24a46d !important;
    border-color: #24a46d !important;
}

.app-content .dg-datatable-toolbar .btn-info {
    color: #39afd1 !important;
    border: 1px solid #39afd1 !important;
}

.app-content .dg-datatable-toolbar .btn-info:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-info:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-info:not(:disabled):active {
    color: #fff !important;
    background-color: #39afd1 !important;
    border-color: #39afd1 !important;
}

.app-content .dg-datatable-toolbar .btn-secondary {
    color: #6c757d !important;
    border: 1px solid #6c757d !important;
}

.app-content .dg-datatable-toolbar .btn-secondary:not(:disabled):hover,
.app-content .dg-datatable-toolbar .btn-secondary:not(:disabled):focus,
.app-content .dg-datatable-toolbar .btn-secondary:not(:disabled):active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.app-content .dg-datatable-toolbar .btn:disabled {
    opacity: 0.45;
    background-color: transparent !important;
}

.btn i {
    font-size: 14px;
}

/* Wrapper DataTables (DT 1.x + DT 2.x) */
.app-content .dataTables_wrapper,
.app-content .dt-container {
    font-size: 14px;
    color: var(--dg-dt-text);
}

/* Barra: mostrar N (izq) + buscador + export (der) */
.app-content .dataTables_wrapper > .row.margin-bottom-12,
.app-content .dt-container > .row.margin-bottom-12 {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 !important;
    padding: 0 0 var(--dg-dt-gap) 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
}

.app-content .dataTables_wrapper > .row.margin-bottom-12 > [class*="col-"],
.app-content .dt-container > .row.margin-bottom-12 > [class*="col-"] {
    flex: 1 1 100%;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.app-content .dataTables_wrapper > .row.margin-bottom-12 .pull-left,
.app-content .dt-container > .row.margin-bottom-12 .pull-left {
    flex: 1 1 auto;
    float: none !important;
    display: flex;
    align-items: center;
    min-width: 0;
}

.app-content .dataTables_wrapper > .row.margin-bottom-12 .pull-right,
.app-content .dt-container > .row.margin-bottom-12 .pull-right {
    float: none !important;
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin-left: 0 !important;
}

.app-content div.dataTables_wrapper div.dataTables_length,
.app-content div.dataTables_wrapper div.dt-length,
.app-content div.dt-container div.dt-length,
.app-content div.dataTables_wrapper div.dataTables_filter,
.app-content div.dataTables_wrapper div.dt-search,
.app-content div.dt-container div.dt-search,
.app-content div.dataTables_wrapper div.dt-buttons,
.app-content div.dt-container div.dt-buttons,
.app-content div.dataTables_wrapper .dt-buttons,
.app-content div.dt-container .dt-buttons {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.app-content div.dataTables_wrapper div.dataTables_length label,
.app-content div.dataTables_wrapper div.dt-length label,
.app-content div.dt-container div.dt-length label,
.app-content div.dataTables_wrapper div.dataTables_filter label,
.app-content div.dataTables_wrapper div.dt-search label,
.app-content div.dt-container div.dt-search label {
    font-weight: 400;
    color: var(--dg-dt-text-muted);
    font-size: 13px;
    margin-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    white-space: nowrap;
}

.app-content div.dataTables_wrapper div.dataTables_filter,
.app-content div.dataTables_wrapper div.dt-search,
.app-content div.dt-container div.dt-search {
    margin-left: 0 !important;
}

.app-content div.dataTables_wrapper div.dataTables_length select,
.app-content div.dataTables_wrapper div.dt-length select,
.app-content div.dt-container div.dt-length select {
    height: 34px !important;
    padding: 2px 28px 2px 10px !important;
    border: 1px solid var(--dg-dt-border) !important;
    border-radius: 6px !important;
    color: var(--dg-dt-text) !important;
    margin: 0 !important;
    min-width: 68px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.app-content div.dataTables_wrapper div.dataTables_length select:focus,
.app-content div.dataTables_wrapper div.dt-length select:focus,
.app-content div.dt-container div.dt-length select:focus {
    border-color: rgba(68, 84, 195, 0.35) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(68, 84, 195, 0.10) !important;
}

.app-content div.dataTables_wrapper div.dataTables_filter label,
.app-content div.dataTables_wrapper div.dt-search label,
.app-content div.dt-container div.dt-search label {
    justify-content: flex-end;
    width: auto;
}

.app-content div.dataTables_wrapper div.dataTables_filter input,
.app-content div.dataTables_wrapper div.dt-search input,
.app-content div.dt-container div.dt-search input {
    height: 34px !important;
    padding: 4px 12px !important;
    border: 1px solid var(--dg-dt-border) !important;
    border-radius: 6px !important;
    color: var(--dg-dt-text) !important;
    margin: 0 !important;
    min-width: 200px !important;
    width: 220px;
    max-width: 280px;
    background-color: #fff !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-content div.dataTables_wrapper div.dataTables_filter input:focus,
.app-content div.dataTables_wrapper div.dt-search input:focus,
.app-content div.dt-container div.dt-search input:focus {
    border-color: rgba(68, 84, 195, 0.35) !important;
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(68, 84, 195, 0.10) !important;
}

.app-content .dataTables_wrapper > .row.margin-bottom-12 .dt-buttons,
.app-content .dt-container > .row.margin-bottom-12 .dt-buttons {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: 0 !important;
}

/* Tabla */
.app-content table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 1px solid var(--dg-dt-border) !important;
    border-radius: 0 !important;
}

.app-content table.dataTable thead th {
    background-color: var(--dg-dt-primary-light) !important;
    color: var(--dg-dt-primary) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--dg-dt-border) !important;
    border-top: none !important;
    border-radius: 0 !important;
    padding: 12px 14px !important;
    vertical-align: middle;
    white-space: nowrap;
}

.app-content table.dataTable thead th:first-child,
.app-content table.dataTable thead th:last-child {
    border-radius: 0 !important;
}

.app-content table.dataTable thead th.sorting,
.app-content table.dataTable thead th.sorting_asc,
.app-content table.dataTable thead th.sorting_desc,
.app-content table.dataTable thead > tr > th.dt-orderable-asc,
.app-content table.dataTable thead > tr > th.dt-orderable-desc,
.app-content table.dataTable thead > tr > th.dt-ordering-asc,
.app-content table.dataTable thead > tr > th.dt-ordering-desc {
    cursor: pointer;
    position: relative !important;
    padding-right: 28px !important;
}

/* Quitar íconos feather de custom.css en el <th> (dejar solo span.dt-column-order) */
.app-content table.dataTable thead th::before,
.app-content table.dataTable thead th::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Flechas DataTables: una sola columna a la derecha */
.app-content table.dataTable thead > tr > th span.dt-column-order {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    width: 12px !important;
    height: 16px !important;
    opacity: 1 !important;
    pointer-events: none;
}

.app-content table.dataTable thead > tr > th span.dt-column-order:before,
.app-content table.dataTable thead > tr > th span.dt-column-order:after {
    position: absolute !important;
    left: 0 !important;
    right: auto !important;
    display: block !important;
    font-size: 8px !important;
    line-height: 7px !important;
    opacity: 0.35 !important;
}

.app-content table.dataTable thead > tr > th span.dt-column-order:before {
    top: 0 !important;
    bottom: auto !important;
}

.app-content table.dataTable thead > tr > th span.dt-column-order:after {
    top: auto !important;
    bottom: 0 !important;
}

.app-content table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
.app-content table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after {
    opacity: 1 !important;
    color: var(--dg-dt-primary) !important;
}

.app-content table.dataTable thead > tr > th.dt-ordering-asc,
.app-content table.dataTable thead > tr > th.dt-ordering-desc,
.app-content table.dataTable thead th.sorting_asc,
.app-content table.dataTable thead th.sorting_desc {
    color: var(--dg-dt-primary) !important;
}

.app-content table.dataTable tbody td {
    padding: 11px 14px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--dg-dt-border) !important;
    vertical-align: middle;
    color: var(--dg-dt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

.app-content .dg-datatable table.dataTable tbody td:nth-child(1),
.app-content .dg-datatable table.dataTable tbody td:nth-child(2),
.app-content .dg-datatable table.dataTable tbody td:nth-child(3) {
    max-width: none;
    overflow: visible;
}

.app-content table.dataTable tbody tr:last-child td {
    border-bottom: none !important;
}

/* Fila Total (tfoot) — peso visual con paleta DG (#4454c3 / selected) */
.app-content table.dataTable tfoot tr.footer-total > td,
.app-content table.dataTable tfoot tr.bg-gray.footer-total > td {
    background-color: var(--dg-dt-row-selected-bg) !important;
    color: var(--dg-dt-text) !important;
    border-top: 2px solid var(--dg-dt-primary) !important;
    border-bottom: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 14px !important;
}

.app-content table.dataTable tfoot tr.footer-total strong,
.app-content table.dataTable tfoot tr.footer-total .display_currency {
    color: var(--dg-dt-primary) !important;
    font-weight: 700 !important;
}

.app-content table.dataTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fff;
}

.app-content table.dataTable.table-striped tbody tr:nth-of-type(even) {
    background-color: #fafbfe;
}

.app-content table.dataTable tbody tr:hover td {
    background-color: #f3f5fc;
}

/* Selección por checkbox: distinto del header, texto legible */
.app-content {
    --dt-row-selected: 208, 218, 245;
    --dt-row-selected-text: 66, 78, 121;
    --dt-row-selected-link: 68, 84, 195;
}

.app-content table.table.dataTable > tbody > tr.selected > *,
.app-content table.table.dataTable.table-striped > tbody > tr.selected > *,
.app-content table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1).selected > *,
.app-content table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
    box-shadow: none !important;
    background-color: var(--dg-dt-row-selected-bg) !important;
    color: var(--dg-dt-text) !important;
}

.app-content table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
    background-color: var(--dg-dt-row-selected-hover-bg) !important;
}

.app-content table.dataTable tbody > tr.selected > td:first-child {
    box-shadow: inset 3px 0 0 var(--dg-dt-primary) !important;
}

.app-content table.dataTable tbody > tr.selected td {
    color: var(--dg-dt-text) !important;
}

.app-content table.dataTable tbody > tr.selected .current_stock[data-orig-value^="-"] {
    color: var(--dg-dt-stock-negative) !important;
}

.app-content table.dataTable tbody > tr.selected .current_stock[data-orig-value]:not([data-orig-value="0"]):not([data-orig-value^="-"]) {
    color: var(--dg-dt-stock-positive) !important;
}

/* Stock coloreado */
.app-content table.dataTable .current_stock[data-orig-value^="-"] {
    color: var(--dg-dt-stock-negative) !important;
    font-weight: 600;
}

.app-content table.dataTable .current_stock[data-orig-value]:not([data-orig-value="0"]):not([data-orig-value^="-"]) {
    color: var(--dg-dt-stock-positive) !important;
    font-weight: 600;
}

/* Botón acciones por fila — misma línea horizontal */
table.dataTable tbody td:has(.btn-group) {
    white-space: nowrap !important;
    overflow: visible !important;
    max-width: none !important;
    vertical-align: middle !important;
}

table.dataTable tbody td .btn-group {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle !important;
    width: auto !important;
    max-width: none !important;
    flex-shrink: 0;
    margin-right: 6px;
}

table.dataTable tbody td:has(.btn-group) > a.btn,
table.dataTable tbody td:has(.btn-group) > .btn {
    display: inline-block !important;
    vertical-align: middle !important;
    width: auto !important;
    max-width: none !important;
    margin-right: 4px;
}

table.dataTable tbody td:has(.btn-group) > i.fa {
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 2px;
}

.app-content table.dataTable .btn-group .btn:not(.btn-xs),
.app-content table.dataTable .dropdown-toggle:not(.btn-xs) {
    font-size: 13px;
    border-radius: 6px;
}

/* Botones de acciones por fila: compactos pero legibles */
table.dataTable tbody td:has(.btn-group) .btn.btn-xs,
table.dataTable tbody td:has(.btn-group) > a.btn.btn-xs {
    padding: 4px 7px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

table.dataTable tbody td:has(.btn-group) .btn.btn-xs i,
table.dataTable tbody td:has(.btn-group) > a.btn.btn-xs i {
    margin-right: 3px;
    font-size: 11px;
}

/* Botones export/colvis */
.app-content .dataTables_wrapper .dt-buttons .btn,
.app-content .dataTables_wrapper .dt-buttons .dt-button {
    border-radius: 6px !important;
    background-color: var(--dg-dt-primary) !important;
    border-color: var(--dg-dt-primary) !important;
    color: #fff !important;
    font-size: 13px;
    padding: 6px 10px;
}

/* Footer: info + paginación */
.app-content .dataTables_wrapper > .dataTables_info,
.app-content .dataTables_wrapper > .dt-info,
.app-content .dt-container > .dt-info {
    margin-top: var(--dg-dt-gap) !important;
    padding-top: 16px !important;
    border-top: none !important;
    float: left;
    width: auto;
    clear: both;
}

.app-content .dataTables_wrapper > .dataTables_paginate,
.app-content .dataTables_wrapper > .dt-paging,
.app-content .dt-container > .dt-paging {
    margin-top: var(--dg-dt-gap) !important;
    padding-top: 16px !important;
    border-top: none !important;
    float: right;
    clear: right;
}

.app-content .dg-datatable .dt-container::after {
    content: '';
    display: table;
    clear: both;
}

.app-content .dg-datatable .dt-container > .dt-info,
.app-content .dg-datatable .dt-container > .dataTables_info {
    position: relative;
    float: left;
    clear: both;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: auto;
    max-width: 55%;
}

.app-content .dg-datatable .dt-container > .dt-paging,
.app-content .dg-datatable .dt-container > .dataTables_paginate {
    float: right;
    clear: none;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    width: auto;
    text-align: right;
}

.app-content .dataTables_wrapper > .row:last-child:not(:first-child) {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: var(--dg-dt-gap) !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--dg-dt-border) !important;
    width: 100% !important;
    clear: both;
}

.app-content .dataTables_wrapper > .row:first-child:last-child {
    margin-top: 0 !important;
}

.app-content div.dataTables_wrapper div.dataTables_info,
.app-content div.dt-container div.dt-info {
    color: var(--dg-dt-text-muted) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-top: 0 !important;
    width: auto !important;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.app-content div.dataTables_wrapper div.dataTables_paginate,
.app-content div.dt-container div.dt-paging {
    padding-top: 0 !important;
    width: auto !important;
    text-align: right !important;
    margin: 0 0 0 auto !important;
    float: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination,
.app-content div.dt-container div.dt-paging ul.pagination {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 4px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #f8f9fd !important;
    list-style: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.page-item,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.paginate_button,
.app-content div.dt-container div.dt-paging ul.pagination > li,
.app-content div.dt-container div.dt-paging ul.pagination > li.page-item,
.app-content div.dt-container div.dt-paging ul.pagination > li.dt-paging-button {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
    float: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button span,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > span,
.app-content div.dt-container div.dt-paging ul.pagination .page-link,
.app-content div.dt-container div.dt-paging ul.pagination li.paginate_button a,
.app-content div.dt-container div.dt-paging ul.pagination li.paginate_button span,
.app-content div.dt-container div.dt-paging ul.pagination > li > a,
.app-content div.dt-container div.dt-paging ul.pagination > li > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    background-color: transparent !important;
    color: var(--dg-dt-primary) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
    position: relative !important;
    float: none !important;
    text-decoration: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:first-child .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:last-child .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:first-child a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:last-child a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li:first-child > a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li:last-child > a,
.app-content div.dt-container div.dt-paging ul.pagination .page-item:first-child .page-link,
.app-content div.dt-container div.dt-paging ul.pagination .page-item:last-child .page-link,
.app-content div.dt-container div.dt-paging ul.pagination > li:first-child > a,
.app-content div.dt-container div.dt-paging ul.pagination > li:last-child > a {
    min-width: auto !important;
    padding: 0 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active span,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > span,
.app-content div.dt-container div.dt-paging ul.pagination .page-item.active .page-link,
.app-content div.dt-container div.dt-paging ul.pagination li.paginate_button.active a,
.app-content div.dt-container div.dt-paging ul.pagination > li.active > a,
.app-content div.dt-container div.dt-paging ul.pagination > li.active > span {
    background: var(--dg-dt-primary) !important;
    border-color: var(--dg-dt-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(68, 84, 195, 0.28) !important;
    z-index: 2 !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.disabled .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.disabled span,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.disabled > a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.disabled > span,
.app-content div.dt-container div.dt-paging ul.pagination .page-item.disabled .page-link,
.app-content div.dt-container div.dt-paging ul.pagination li.paginate_button.disabled a,
.app-content div.dt-container div.dt-paging ul.pagination > li.disabled > a,
.app-content div.dt-container div.dt-paging ul.pagination > li.disabled > span {
    color: #b8c0d9 !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.disabled):not(.active) .page-link:hover,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button:not(.disabled):not(.active):not(.ellipsis) a:hover,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li:not(.disabled):not(.active):not(.ellipsis) > a:hover,
.app-content div.dt-container div.dt-paging ul.pagination .page-item:not(.disabled):not(.active) .page-link:hover,
.app-content div.dt-container div.dt-paging ul.pagination > li:not(.disabled):not(.active):not(.ellipsis) > a:hover {
    background-color: #fff !important;
    border-color: var(--dg-dt-border) !important;
    color: var(--dg-dt-primary) !important;
    box-shadow: 0 1px 4px rgba(68, 84, 195, 0.12) !important;
    text-decoration: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link:hover,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.active a:hover,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a:hover,
.app-content div.dt-container div.dt-paging ul.pagination .page-item.active .page-link:hover,
.app-content div.dt-container div.dt-paging ul.pagination > li.active > a:hover {
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(68, 84, 195, 0.28) !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.ellipsis a,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.ellipsis span,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .ellipsis .page-link,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.ellipsis > a,
.app-content div.dt-container div.dt-paging ul.pagination li.paginate_button.ellipsis a,
.app-content div.dt-container div.dt-paging ul.pagination > li.ellipsis > a {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--dg-dt-text-muted) !important;
    min-width: 20px !important;
    padding: 0 2px !important;
    font-weight: 700 !important;
    cursor: default !important;
    pointer-events: none !important;
}

.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button.ellipsis a:hover,
.app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .ellipsis .page-link:hover,
.app-content div.dt-container div.dt-paging ul.pagination > li.ellipsis > a:hover {
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Scrollbar horizontal más fino, acorde al tema */
/* Scrollbar fino — productos (dg-datatable sin clase JS aún en primera pintura) */
.app-content .dg-datatable .table-responsive::-webkit-scrollbar {
    height: 8px;
}

.app-content .dg-datatable .table-responsive::-webkit-scrollbar-track {
    background: #f0f2f8;
    border-radius: 4px;
}

.app-content .dg-datatable .table-responsive::-webkit-scrollbar-thumb {
    background: #c5cde8;
    border-radius: 4px;
}

.app-content .dg-datatable .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #a8b4e0;
}

@media (max-width: 576px) {
    .app-content .dataTables_wrapper > .row.margin-bottom-12,
    .app-content .dt-container > .row.margin-bottom-12 {
        flex-direction: column;
        align-items: stretch !important;
    }

    .app-content .dataTables_wrapper > .row.margin-bottom-12 > [class*="col-"],
    .app-content .dt-container > .row.margin-bottom-12 > [class*="col-"] {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .app-content .dataTables_wrapper > .row.margin-bottom-12 .pull-left,
    .app-content .dt-container > .row.margin-bottom-12 .pull-left {
        flex: 1 1 100%;
    }

    .app-content div.dataTables_wrapper div.dataTables_filter,
    .app-content div.dataTables_wrapper div.dt-search,
    .app-content div.dt-container div.dt-search {
        margin-left: 0 !important;
        width: 100%;
    }

    .app-content div.dataTables_wrapper div.dataTables_filter label {
        justify-content: flex-start;
    }

    .app-content div.dataTables_wrapper div.dataTables_filter input {
        min-width: 0 !important;
        max-width: none;
    }

    .app-content div.dataTables_wrapper div.dataTables_info,
    .app-content div.dt-container div.dt-info {
        font-size: 12px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
    }

    .app-content div.dataTables_wrapper div.dataTables_paginate,
    .app-content div.dt-container div.dt-paging {
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    .app-content .dg-datatable .dt-container > .dt-info,
    .app-content .dg-datatable .dt-container > .dataTables_info,
    .app-content .dg-datatable .dt-container > .dt-paging,
    .app-content .dg-datatable .dt-container > .dataTables_paginate {
        float: none !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination,
    .app-content div.dt-container div.dt-paging ul.pagination {
        justify-content: center !important;
        gap: 4px !important;
    }

    .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link,
    .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button a,
    .app-content div.dt-container div.dt-paging ul.pagination .page-link,
    .app-content div.dt-container div.dt-paging ul.pagination > li > a {
        min-width: 32px !important;
        height: 32px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }
}

/* Scroll horizontal — DataTables 2 (.dt-scroll-*) y legacy (.dataTables_scroll*) */
.app-content .dt-scroll,
.app-content .dataTables_scroll,
.app-content .dt-scroll-head,
.app-content .dataTables_scrollHead,
.app-content .dt-scroll-headInner,
.app-content .dataTables_scrollHeadInner,
.app-content .dt-scroll-body,
.app-content .dataTables_scrollBody {
    border-radius: 0 !important;
}

.app-content .dt-scroll,
.app-content .dataTables_scroll,
.app-content .dg-datatable .dt-scroll,
.app-content .dg-datatable .dataTables_scroll {
    border: 1px solid var(--dg-dt-border) !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    width: 100% !important;
    clear: both;
}

/* Anular home.css/custom.css: la tabla debe poder ser más ancha que el contenedor */
.dt-scroll-headInner table.dataTable,
.dt-scroll-body table.dataTable,
.dataTables_scrollHeadInner > table,
.dataTables_scrollBody > table,
.app-content .dg-datatable .dt-scroll-headInner table.dataTable,
.app-content .dg-datatable .dt-scroll-body table.dataTable,
.app-content .dg-datatable .dataTables_scrollHeadInner > table,
.app-content .dg-datatable .dataTables_scrollBody > table {
    width: auto !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

.app-content .dg-datatable .dt-scroll-head table.dataTable thead th,
.app-content .dg-datatable .dt-scroll-body table.dataTable tbody td,
.app-content .dg-datatable .dataTables_scrollHead table.dataTable thead th,
.app-content .dg-datatable .dataTables_scrollBody table.dataTable tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-content .dt-scroll-head,
.app-content .dataTables_scrollHead {
    border-bottom: none !important;
}

.app-content .dt-scroll-head table.dataTable,
.app-content .dt-scroll-headInner table.dataTable,
.app-content .dataTables_scrollHead table.dataTable,
.app-content .dataTables_scrollHeadInner table.dataTable {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

/* Header visible: sin íconos feather en el th (solo span.dt-column-order) */
.app-content .dt-scroll-head table.dataTable thead th::before,
.app-content .dt-scroll-head table.dataTable thead th::after,
.app-content .dt-scroll-headInner table.dataTable thead th::before,
.app-content .dt-scroll-headInner table.dataTable thead th::after,
.app-content .dataTables_scrollHead table.dataTable thead th::before,
.app-content .dataTables_scrollHead table.dataTable thead th::after,
.app-content .dataTables_scrollHeadInner table.dataTable thead th::before,
.app-content .dataTables_scrollHeadInner table.dataTable thead th::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Header clonado en scroll body: ocultar sin romper anchos de columna */
.app-content .dt-scroll-body,
.app-content .dataTables_scrollBody,
.app-content .dt-container .dt-scroll-body,
.app-content .dt-container .dataTables_scrollBody,
.app-content .dg-datatable .dt-scroll-body,
.app-content .dg-datatable .dataTables_scrollBody,
.app-content .dg-datatable .dt-container .dt-scroll-body,
.app-content .dg-datatable .dt-container .dataTables_scrollBody {
    border-top: none !important;
    overflow: auto !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    max-width: 100% !important;
}

.app-content .dt-scroll-body table.dataTable thead,
.app-content .dataTables_scrollBody table.dataTable thead,
.app-content .dataTables_wrapper .dt-scroll-body table.dataTable thead,
.app-content .dataTables_wrapper .dataTables_scrollBody table.dataTable thead {
    display: table-header-group !important;
}

.app-content .dt-scroll-body table.dataTable thead tr,
.app-content .dataTables_scrollBody table.dataTable thead tr {
    height: 0 !important;
    line-height: 0 !important;
}

.app-content .dt-scroll-body table.dataTable thead th,
.app-content .dt-scroll-body table.dataTable thead td,
.app-content .dataTables_scrollBody table.dataTable thead th,
.app-content .dataTables_scrollBody table.dataTable thead td,
.app-content .dataTables_wrapper .dt-scroll-body table.dataTable thead th,
.app-content .dataTables_wrapper .dt-scroll-body table.dataTable thead td,
.app-content .dataTables_wrapper .dataTables_scrollBody table.dataTable thead th,
.app-content .dataTables_wrapper .dataTables_scrollBody table.dataTable thead td {
    height: 0 !important;
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    border: none !important;
    line-height: 0 !important;
    font-size: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

.app-content .dt-scroll-body table.dataTable thead th::before,
.app-content .dt-scroll-body table.dataTable thead th::after,
.app-content .dt-scroll-body table.dataTable thead span.dt-column-order,
.app-content .dataTables_scrollBody table.dataTable thead th::before,
.app-content .dataTables_scrollBody table.dataTable thead th::after,
.app-content .dataTables_scrollBody table.dataTable thead span.dt-column-order {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

.app-content .dt-scroll-body table.dataTable,
.app-content .dataTables_scrollBody table.dataTable {
    border: none !important;
    border-radius: 0 !important;
    margin-top: 0 !important;
}

/* Anular custom.css / dongestion-loading que bloquean scroll horizontal */
.dataTables_scrollBody,
.dt-scroll-body,
.app-content .dataTables_scrollBody,
.app-content .dt-scroll-body {
    overflow: auto !important;
    overflow-x: auto !important;
}

/* ─── Modo oscuro ─── */
body.dark-mode .app-content {
    --dg-dt-primary: #6b7ae8;
    --dg-dt-primary-light: #1a2248;
    --dg-dt-text: #e2e8f0;
    --dg-dt-text-muted: #9ca3af;
    --dg-dt-border: rgba(255, 255, 255, 0.08);
    --dg-dt-row-selected-bg: #2a3568;
    --dg-dt-row-selected-hover-bg: #323d72;
    --dg-dt-stock-positive: #3ecf8e;
    --dg-dt-stock-negative: #f87171;
    --dt-row-selected: 42, 53, 104;
    --dt-row-selected-text: 226, 232, 240;
    --dt-row-selected-link: 107, 122, 232;
    --dt-row-stripe: 255, 255, 255;
    --dt-row-hover: 255, 255, 255;
    --dt-html-background: #191f48;
}

body.dark-mode .app-content .dg-datatable-card {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

body.dark-mode .app-content table.dataTable {
    border-color: var(--dg-dt-border) !important;
    background-color: #191f48;
}

body.dark-mode .app-content table.dataTable thead th {
    background-color: var(--dg-dt-primary-light) !important;
    color: #c7d2fe !important;
    border-bottom-color: var(--dg-dt-border) !important;
}

body.dark-mode .app-content table.dataTable tbody td {
    color: var(--dg-dt-text) !important;
    border-bottom-color: var(--dg-dt-border) !important;
}

body.dark-mode .app-content table.dataTable.table-striped tbody tr:nth-of-type(odd),
body.dark-mode .app-content table.dataTable.table-striped tbody tr:nth-of-type(odd) > td {
    background-color: #191f48 !important;
}

body.dark-mode .app-content table.dataTable.table-striped tbody tr:nth-of-type(even),
body.dark-mode .app-content table.dataTable.table-striped tbody tr:nth-of-type(even) > td {
    background-color: #10163a !important;
}

body.dark-mode .app-content table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > *,
body.dark-mode .app-content table.table.dataTable.table-hover > tbody > tr:hover > * {
    box-shadow: none !important;
}

body.dark-mode .app-content table.dataTable tbody tr:hover > td {
    background-color: #262b48 !important;
}

body.dark-mode .app-content table.table.dataTable > tbody > tr.selected > *,
body.dark-mode .app-content table.table.dataTable.table-striped > tbody > tr.selected > *,
body.dark-mode .app-content table.table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1).selected > *,
body.dark-mode .app-content table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
    box-shadow: none !important;
    background-color: var(--dg-dt-row-selected-bg) !important;
    color: var(--dg-dt-text) !important;
}

body.dark-mode .app-content table.table.dataTable.table-hover > tbody > tr.selected:hover > * {
    background-color: var(--dg-dt-row-selected-hover-bg) !important;
}

body.dark-mode .app-content table.dataTable tbody > tr.selected td {
    color: var(--dg-dt-text) !important;
}

body.dark-mode .app-content table.dataTable tfoot td,
body.dark-mode .app-content table.dataTable tfoot tr.bg-gray td {
    background-color: #1a2248 !important;
    color: var(--dg-dt-text) !important;
    border-color: var(--dg-dt-border) !important;
}

body.dark-mode .app-content table.dataTable tfoot tr.footer-total > td,
body.dark-mode .app-content table.dataTable tfoot tr.bg-gray.footer-total > td {
    background-color: var(--dg-dt-row-selected-bg) !important;
    border-top-color: var(--dg-dt-primary) !important;
}

body.dark-mode .app-content table.dataTable tfoot tr.footer-total strong,
body.dark-mode .app-content table.dataTable tfoot tr.footer-total .display_currency {
    color: var(--dg-dt-primary) !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_length label,
body.dark-mode .app-content div.dataTables_wrapper div.dt-length label,
body.dark-mode .app-content div.dt-container div.dt-length label,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_filter label,
body.dark-mode .app-content div.dataTables_wrapper div.dt-search label,
body.dark-mode .app-content div.dt-container div.dt-search label,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_info,
body.dark-mode .app-content div.dt-container div.dt-info {
    color: var(--dg-dt-text-muted) !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_length select,
body.dark-mode .app-content div.dataTables_wrapper div.dt-length select,
body.dark-mode .app-content div.dt-container div.dt-length select,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_filter input,
body.dark-mode .app-content div.dataTables_wrapper div.dt-search input,
body.dark-mode .app-content div.dt-container div.dt-search input {
    background-color: #262b48 !important;
    border-color: var(--dg-dt-border) !important;
    color: var(--dg-dt-text) !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_length select:focus,
body.dark-mode .app-content div.dataTables_wrapper div.dt-length select:focus,
body.dark-mode .app-content div.dt-container div.dt-length select:focus,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_filter input:focus,
body.dark-mode .app-content div.dataTables_wrapper div.dt-search input:focus,
body.dark-mode .app-content div.dt-container div.dt-search input:focus {
    border-color: rgba(107, 122, 232, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(107, 122, 232, 0.2) !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_filter input::placeholder,
body.dark-mode .app-content div.dataTables_wrapper div.dt-search input::placeholder,
body.dark-mode .app-content div.dt-container div.dt-search input::placeholder {
    color: #6b7280 !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination {
    background: #1a2248 !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-link,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination li.paginate_button a,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li > a,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination .page-link,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination > li > a {
    color: #c7d2fe !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item.active .page-link,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li.active > a,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination .page-item.active .page-link,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination > li.active > a {
    background: var(--dg-dt-primary) !important;
    border-color: var(--dg-dt-primary) !important;
    color: #fff !important;
}

body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination .page-item:not(.disabled):not(.active) .page-link:hover,
body.dark-mode .app-content div.dataTables_wrapper div.dataTables_paginate ul.pagination > li:not(.disabled):not(.active):not(.ellipsis) > a:hover,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination .page-item:not(.disabled):not(.active) .page-link:hover,
body.dark-mode .app-content div.dt-container div.dt-paging ul.pagination > li:not(.disabled):not(.active):not(.ellipsis) > a:hover {
    background-color: #262b48 !important;
    border-color: var(--dg-dt-border) !important;
    color: #e2e8f0 !important;
}

body.dark-mode .app-content .dataTables_wrapper > .row:last-child:not(:first-child) {
    border-top-color: var(--dg-dt-border) !important;
}

body.dark-mode .table-responsive.dg-dt-hscroll::-webkit-scrollbar-track,
body.dark-mode .app-content .dg-datatable .table-responsive::-webkit-scrollbar-track {
    background: #1a2248;
}

body.dark-mode .table-responsive.dg-dt-hscroll::-webkit-scrollbar-thumb,
body.dark-mode .app-content .dg-datatable .table-responsive::-webkit-scrollbar-thumb {
    background: #3d4a7a;
}

body.dark-mode .table-responsive.dg-dt-hscroll::-webkit-scrollbar-thumb:hover,
body.dark-mode .app-content .dg-datatable .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #4f5d94;
}

body.dark-mode .app-content .dg-datatable .table-responsive table.dataTable {
    border-bottom-color: var(--dg-dt-border) !important;
}

body.dark-mode .app-content table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
body.dark-mode .app-content table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after {
    color: #c7d2fe !important;
}
