.dataTables_scrollHeadInner thead .sorting:before,
.dataTables_scrollHeadInner thead .sorting_asc:before,
.dataTables_scrollHeadInner thead .sorting_desc:before,
.dataTables_scrollHeadInner thead .sorting_asc_disabled:before,
.dataTables_scrollHeadInner thead .sorting_desc_disabled:before {
    right         :   0   !important;
    content       :   ""  !important;
}
.dataTables_scrollHeadInner thead .sorting:after,
.dataTables_scrollHeadInner thead .sorting_asc:after,
.dataTables_scrollHeadInner thead .sorting_desc:after,
.dataTables_scrollHeadInner thead .sorting_asc_disabled:after,
.dataTables_scrollHeadInner thead .sorting_desc_disabled:after {
    right         :   0   !important;
    content       :   ""  !important;
}

.dataTables_scrollHeadInner thead th {
    position            : relative;
    background-image    : none !important;
}
  
.dataTables_scrollHeadInner thead th.sorting:after,
.dataTables_scrollHeadInner thead th.sorting_asc:after,
.dataTables_scrollHeadInner thead th.sorting_desc:after {
    position    : absolute      !important;
    top         : 12px          !important;
    right       : 8px           !important;
    display     : block         !important;
    font-family : FontAwesome   !important;
}

.dataTables_scrollHeadInner thead th.sorting:after {
    content     : "\f063"   !important;
    color       : #ddd    !important;
    font-size   : 0.8em     !important;
    padding-top : 0.12em    !important;
}

.dataTables_scrollHeadInner thead th.sorting_asc:after {
    content     : "\f062"   !important;
    color       : #2c78bd !important;
}

.dataTables_scrollHeadInner thead th.sorting_desc:after {
    content     : "\f063"   !important;
    color       : #2c78bd !important;
}

/*  */

.dataTables_filter {
    display         :   none;
}


.dataTables_info {
    display         :   none;
}

/*  */

.dt-buttons {
    float           :   right;
}

.dt-buttons {
    /* margin-bottom   :   25px; */
    /* margin-right    :   15px; */
}

.dt-buttons .btn {
    /* width           :   35px; */
    /* height          :   35px; */
}

/*  */

.danger_row {
    background-color: #f8d7da !important;
}

.active_row {    
    background-color: #2c78bd   !important;
    color           : white     !important;
}

/*  */

.dataTables_paginate {
    margin-top      :   25px;
    margin-right    :   15px;
}

.dataTables_paginate .current-page {
    display: inline-block;
    padding: 5px 10px;
    color: #333;
    font-weight: bold;
}

.dataTables_paginate .disabled {
    opacity: 0.5;
    pointer-events: none;
}

.dataTables_paginate .pagination {
    float: right;
}

/*  */

/* Expansion Control Styling */
td.dt-control {
    cursor: pointer;
    text-align: center;
}
td.dt-control::before {
    content: "✚"; /* Use any icon or FontAwesome */
    color: #000;
    font-weight: bold;
}
tr.shown td.dt-control::before {
    content: "▬";
    color: #000;
}

.inner_table td, .inner_table th {
    line-height: 1.5 !important;
}

/*  */
/*  */
/*  */

.dt-buttons {
    gap: 6px;
    margin-bottom: 16px !important;
}

.dt-buttons .btn.dt-btn-labeled,
.dt-buttons .buttons-html5.dt-btn-labeled {
    width: auto !important;
    min-width: 90px;
    height: 35px !important;
    box-sizing: border-box;
    padding: 0 5px !important;
    white-space: nowrap;
    border-radius: 10px !important;
    font-size: 0.5rem;
    font-weight: 500;
    line-height: 1;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.dt-buttons .btn.dt-btn-labeled > span,
.dt-buttons .buttons-html5.dt-btn-labeled > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    line-height: 1;
}

.dt-buttons .btn.dt-btn-labeled:hover,
.dt-buttons .buttons-html5.dt-btn-labeled:hover {
    filter: brightness(1.08);
}

.dt-buttons .btn.dt-btn-labeled:active,
.dt-buttons .buttons-html5.dt-btn-labeled:active {
    transform: scale(0.97);
}

.dt-buttons .btn.dt-btn-labeled i.mdi,
.dt-buttons .buttons-html5.dt-btn-labeled i.mdi {
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.dt-btn-label {
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1;
    margin-left: 0 !important;
}

.dt-buttons .btn.dt-btn-labeled.dt-select-btn {
    -webkit-appearance : none;
    -moz-appearance     : none;
    appearance          : none;

    display             : inline-flex;
    align-items         : center;

    padding             : 0 24px 0 10px !important;
    text-align          : left;

    cursor              : pointer;
    outline             : none;

    background-image    : url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M4 6l4 4 4-4z'/></svg>");
    background-repeat   : no-repeat;
    background-position : right 8px center;
    background-size     : 10px 10px;

    min-width           : 190px;
}

/* Neutralizes the inherited .btn-primary glow across every state, in one place */
.dt-buttons .btn.dt-btn-labeled.dt-select-btn,
.dt-buttons .btn.dt-btn-labeled.dt-select-btn:hover,
.dt-buttons .btn.dt-btn-labeled.dt-select-btn:focus,
.dt-buttons .btn.dt-btn-labeled.dt-select-btn:active {
    box-shadow: none !important;
}

.dt-select-list {
    position          : absolute;
    top               : calc(100% + 4px);
    left              : 0;
    min-width         : 100%;
    background-color  : #fff;
    border            : 1px solid rgba(0, 0, 0, 0.08);
    border-radius     : 10px;
    padding           : 0;
    margin            : 0;
    list-style        : none;
    display           : none;
    z-index           : 50;
    box-shadow        : 0 6px 16px rgba(0, 0, 0, 0.12);
    overflow          : hidden;
}

.dt-select-list.open {
    display : block;
}

.dt-select-option {
    padding    : 6px 12px;
    font-size  : 0.8rem;
    font-weight: 500;
    color      : #000;
    cursor     : pointer;
    white-space: nowrap;
}

.dt-select-option:not(:last-child) {
    border-bottom : 1px solid rgba(0, 0, 0, 0.08);
}

.dt-select-option:hover {
    background-color : #d9491f;
    color             : #fff;
}

.dt-select-label {
    font-size : 0.8rem;
}

.dt-buttons .btn.dt-btn-labeled:disabled,
.dt-buttons .btn.dt-btn-labeled.dt-select-disabled {
    opacity        : 0.5;
    cursor         : not-allowed;
    pointer-events : none;
}