/*Custom Table Sorter css*/
.dataTable-top,
.dataTable-bottom {
    /* width: 100vw; */
    display: flex;
    justify-content: space-between !important;
    justify-items: center;
    padding: 1rem 1px;
    margin: 0;
}

@media (max-width: 768px) {
    .dataTable-top,
    .dataTable-bottom {
            display: flex;
            flex-direction: column;
            justify-content: space-between !important;
            justify-items: center;
            padding: 1rem 1px;
            margin: 0;
    }
}
[dir="ltr"] .dataTable-top>nav:first-child,
[dir="ltr"] .dataTable-top>div:first-child,
[dir="ltr"] .dataTable-bottom>nav:first-child,
[dir="ltr"] .dataTable-bottom>div:first-child {
    float: left;
}

[dir="rtl"] .dataTable-top>nav:first-child,
[dir="rtl"] .dataTable-top>div:first-child,
[dir="rtl"] .dataTable-bottom>nav:first-child,
[dir="rtl"] .dataTable-bottom>div:first-child {
    float: right;
}

[dir="ltr"] .dataTable-top>nav:last-child,
[dir="ltr"] .dataTable-top>div:last-child,
[dir="ltr"] .dataTable-bottom>nav:last-child,
[dir="ltr"] .dataTable-bottom>div:last-child {
    float: right;
}

[dir="rtl"] .dataTable-top>nav:last-child,
[dir="rtl"] .dataTable-top>div:last-child,
[dir="rtl"] .dataTable-bottom>nav:last-child,
[dir="rtl"] .dataTable-bottom>div:last-child {
    float: left;
}

.dataTable-dropdown,
.dataTable-search {
    flex: 1;
    width: 100%;
}
.dataTable-info,
.dataTable-pagination {
    flex: 1;
    width: 100%;
}

.dataTable-input {
    width: 100%;
    border-radius: 0.5rem;
    /* border-width: 1px; */
    --tw-border-opacity: 1;
    border-color: rgba(239, 240, 254, var(--tw-border-opacity));
    --tw-bg-opacity: 1;
    background-color: rgba(246, 245, 255, var(--tw-bg-opacity));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    -ms-border-radius: 0.5rem;
    -o-border-radius: 0.5rem;
}

.dataTable-input:focus {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(224, 224, 252, var(--tw-border-opacity));
}

.dataTable-selector {
    border-radius: 0.5rem;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(239, 240, 254, var(--tw-border-opacity));
    --tw-bg-opacity: 1;
    background-color: rgba(246, 245, 255, var(--tw-bg-opacity));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    outline: 2px solid transparent;
    outline-offset: 2px;
    -webkit-border-radius: 0.5rem;
    -moz-border-radius: 0.5rem;
    -ms-border-radius: 0.5rem;
    -o-border-radius: 0.5rem;
}

[dir="ltr"] .dataTable-selector {
    margin-right: 0.5rem;
}

[dir="rtl"] .dataTable-selector {
    margin-left: 0.5rem;
}

.dataTable-table {
    width: 100%;
    max-width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.dataTable-info {
    margin: 0 0 0 0;
    /* font-weight: 600; */
    font-size: small;
}

.dataTable-pagination-list {
    display: flex;
    justify-content: flex-end;
}

[dir="ltr"] .dataTable-pagination ul {
    margin: 0px;
    padding-left: 0px;
    
}

[dir="rtl"] .dataTable-pagination ul {
    margin: 0px;
    padding-right: 0px;
    display: flex;
}

[dir="ltr"] .dataTable-pagination li {
    list-style: none;
    float: left;
}

[dir="rtl"] .dataTable-pagination li {
    list-style: none;
    float: right;
}

.dataTable-pagination a {
    position: relative;
    border-radius: 0.25rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border: 1px solid transparent;
    margin-left: 2px;
    text-decoration: none;
}

[dir="ltr"] .dataTable-pagination a {
    float: left;
}

[dir="rtl"] .dataTable-pagination a {
    float: right;
}

.dataTable-pagination a:hover {
    --tw-bg-opacity: 1;
    background-color: rgba(224, 224, 252, var(--tw-bg-opacity));
}

.table-bordered {
    border-collapse: collapse;
}

.table-bordered td,
.table-bordered th {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(239, 240, 254, var(--tw-border-opacity));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.table-bordered-bottom tr {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(239, 240, 254, var(--tw-border-opacity));
}

.table-bordered-bottom td,
.table-bordered-bottom th {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.1rem;  /* On reduit l'espace en haut et bas des textbox */
    padding-bottom: 0.1rem;
}

/*dark mode*/
.dark .dataTable-input {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(30, 31, 72, var(--tw-border-opacity));
    --tw-bg-opacity: 1;
    background-color: rgba(30, 31, 72, var(--tw-bg-opacity));
}

.dark .dataTable-input:focus {
    --tw-border-opacity: 1;
    border-color: rgba(89, 89, 131, var(--tw-border-opacity));
}

.dark .dataTable-selector {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(30, 31, 72, var(--tw-border-opacity));
    --tw-bg-opacity: 1;
    background-color: rgba(30, 31, 72, var(--tw-bg-opacity));
}

.dark .table-bordered td,
.dark .table-bordered th {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(30, 31, 72, var(--tw-border-opacity));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.dark .table-bordered-bottom tr {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgba(30, 31, 72, var(--tw-border-opacity));
}

.table-bordered-bottom tbody tr:last-child,
.dark .table-bordered-bottom tbody tr:last-child {
    border-bottom: none;
}

.table-sm td,
.table-sm th {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.dark .dataTable-pagination a:hover {
    background-color: #1e1f48;
}

.dataTable-pagination .active a,
.dataTable-pagination .active a:focus,
.dataTable-pagination .active a:hover {
    background-color: #E5E7EB;
    cursor: default;
}

.dark .dataTable-pagination .active a,
.dark .dataTable-pagination .active a:focus,
.dark .dataTable-pagination .active a:hover {
    background-color: #1e1f48;
}

.dataTable-pagination .ellipsis a,
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
    cursor: not-allowed;
}

.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
    cursor: not-allowed;
    opacity: 0.4;
}

.dataTable-pagination .pager a {
    font-weight: bold;
}

.dataTable-table>tbody>tr>td,
.dataTable-table>tbody>tr>th,
.dataTable-table>tfoot>tr>td,
.dataTable-table>tfoot>tr>th,
.dataTable-table>thead>tr>td,
.dataTable-table>thead>tr>th {
    vertical-align: middle;
    padding: 1rem .75rem;
}

.dataTable-table>thead>tr>th {
    vertical-align: bottom;
}

[dir="ltr"] .dataTable-table>thead>tr>th,
[dir="ltr"] .dataTable-table>tfoot>tr>th,
[dir="ltr"] .dataTable-table th {
    text-align: left;
}

[dir="rtl"] .dataTable-table>thead>tr>th,
[dir="rtl"] .dataTable-table>tfoot>tr>th,
[dir="rtl"] .dataTable-table th {
    text-align: right;
}

.dataTable-table>tfoot>tr>th {
    vertical-align: bottom;
}

.dataTable-table th {
    vertical-align: bottom;
}

.dataTable-table th a {
    text-decoration: none;
    color: inherit;
}

.dataTable-sorter {
    position: relative;
    display: inline-block;
    height: 100%;
    width: 100%;
}

.dataTable-sorter::before,
.dataTable-sorter::after {
    content: "";
    position: absolute;
    height: 0px;
    width: 0px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    opacity: 0.2;
}

[dir="ltr"] .dataTable-sorter::before,
[dir="ltr"] .dataTable-sorter::after {
    right: 4px;
}

[dir="rtl"] .dataTable-sorter::before,
[dir="rtl"] .dataTable-sorter::after {
    left: 4px;
}

.dataTable-sorter::before {
    border-top: 4px solid #000;
    bottom: 0px;
}

.dataTable-sorter::after {
    border-bottom: 4px solid #000;
    border-top: 4px solid transparent;
    top: 0px;
}

.dark .dataTable-sorter::before {
    border-top: 4px solid #fff;
}

.dark .dataTable-sorter::after {
    border-bottom: 4px solid #fff;
}

.asc .dataTable-sorter::after,
.desc .dataTable-sorter::before {
    opacity: 0.6;
}

.dataTables-empty {
    text-align: center;
}

.dataTable-top::after,
.dataTable-bottom::after {
    clear: both;
    content: " ";
    display: table;
}

@media (max-width: 568px) {

    .dataTable-dropdown,
    .dataTable-search {
        width: 100%;
    }

    .dataTable-dropdown {
        margin-bottom: 1rem;
    }
}

@media (max-width: 1800px) {
    .dataTable-container {
        overflow-x: auto;
        
    }
}

.hidden-sort-after .dataTable-sorter::before,
.hidden-sort-after .dataTable-sorter::after,
.dark .hidden-sort-after .dataTable-sorter::before,
.dark .hidden-sort-after .dataTable-sorter::after {
    border-top: 0px solid transparent;
    border-bottom: 0px solid transparent;
}

.hidden-header .dataTable-top {
    display: none;
}

.dark .CodeMirror,
.dark .editor-preview-side {
    background: #1e1f48;
}

@-webkit-keyframes passing-through {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    30%,
    70% {
        opacity: 1;
        transform: translateY(0px);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@keyframes passing-through {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    30%,
    70% {
        opacity: 1;
        transform: translateY(0px);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}

@-webkit-keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    30% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@keyframes slide-in {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    30% {
        opacity: 1;
        transform: translateY(0px);
    }
}

@-webkit-keyframes pulse {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.1);
    }

    20% {
        transform: scale(1);
    }
}
