@font-face {
    font-family: 'BaiJamjuree';
    src: url('/fonts/BaiJamjuree-Regular.ttf') format('truetype');
}

body {
    font-family: 'BaiJamjuree', sans-serif;
}

/* Utilitaire */
.theadCenter tr th {
    text-transform: initial !important;
    vertical-align: middle;
    text-align: center;
}

#chart_loader {
    width: 22.5px;
    aspect-ratio: .75;
    --c: no-repeat linear-gradient(#283165 0 0);
    background:
        var(--c) 0%   50%,
        var(--c) 50%  50%,
        var(--c) 100% 50%;
    animation: l7 1s infinite linear alternate;
    }
    @keyframes l7 {
    0%  {background-size: 20% 50% ,20% 50% ,20% 50% }
    20% {background-size: 20% 20% ,20% 50% ,20% 50% }
    40% {background-size: 20% 100%,20% 20% ,20% 50% }
    60% {background-size: 20% 50% ,20% 100%,20% 20% }
    80% {background-size: 20% 50% ,20% 50% ,20% 100%}
    100%{background-size: 20% 50% ,20% 50% ,20% 50% }
}

.smallThead tr th,
.smallTfoot tr th {
    padding: 0.25rem 0.75rem;
}

.allInsideTdCenter td {
    text-align: center;
}

.color-primary {
    color: var(--primary-bg-color);
}

.w-200 {
    width: 200px;
}

.w-300 {
    width: 300px;
}

.w-400 {
    width: 400px;
}

.w-initial {
    width: initial;
}

.tr_bold, .tr_bold td, .tr_bold input {
    font-weight: bold;
}

.nav-item-pulse {
    position: relative;
}

.nav-item-pulse .pulse,
.nav-item-pulse .pulse-danger {
    top: -2px;
    right: -2px;
}

body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown),
body.modal-open {
    overflow-y: scroll !important;
    padding: 0 !important;
    display: block;
}

.smallThead tr th,
.smallTfoot tr th {
    text-transform: initial;
}

.max-height-300 {
    max-height: 300px;
    overflow-x: auto;
}

.object-fit-contain {
    object-fit: contain;
}

.bg-color-secondary {
    background-color: var(--background-color-secondary);
}

/* DATATABLES */

.vehicules-filter-container {
    width: 70%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 5%;
    margin-bottom: 0.75rem;
}

.users-filter-container {
    width: 70%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 5%;
    margin-bottom: 0.75rem;
}

.actions-col {
    width: 61px !important;
    padding: 0 !important;
}

.filterLabel {
    margin-bottom: 0% !important;
    margin-right: 0.5rem !important;
    margin-left: 0.8rem;
}

.custom-length-container{
    width: 12%;
    max-width: none;
    flex: 0 0 12%;
}

.custom-length-filter-container{
    display: flex;
    flex-direction: row-reverse;
    align-content: center;
    max-width: none;
    flex: 0 0 88%;
}

.mass-select-cells {
    height: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Sidebar toujours foncé */
.side-header {
    border-bottom: 1px solid var(--dark-border-color);
    border-right: 1px solid var(--dark-border-color);
    background: #e7dfc628
}

.app-sidebar {
    background: var(--background-color-primary) !important;
    box-shadow: 0px 8px 14.72px 1.28px rgb(42 38 53 / 50%);
    border-right: 1px solid var(--dark-border-color);
}

/* .app-header {
    background: var(--primary-bg-color) !important;;
} */

.side-menu .side-menu__icon,
.side-menu__item,
.slide-item {
    color: var(--primary-bg-color);
}

.slide-item.active,
.slide-item:hover,
.slide-item:focus {
    color: #ffffff !important;
}

.slide-menu li .slide-item.active:before,
.slide-menu li .slide-item:hover:before,
.slide-menu li .slide-item:focus:before {
    content: "\e0b2";
    color: var(--primary-bg-color);
    opacity: 1;
}

.side-menu__item.active {
    background: linear-gradient(to bottom right, var(--primary-bg-color) 0%, var(--primary06) 100%) !important;
}

.app-sidebar__toggle {

    color: var(--primary-bg-color) !important;
}

.nav-link.icon i {

    color: var(--primary-bg-color) !important;
}

.btn-danger {
    background-color: var(--danger) !important;
}

.btn-warning {
    background-color: var(--warning) !important;
    border-color: var(--warning) !important;
}

/* Logo mobile */
.mobile-logo {
    height: 36px;
}

/* Version petite d'un loader */
.dimmerInLabel {
    margin-left: 10px;
}

.dimmerInLabel .spinner1 {
    margin: 0;
    width: 20px;
    height: 20px;
}

/* Login  */
.loginCopyright {
    color: #FFFFFF;
    margin-top: -30px;
    display: flex;
    justify-content: center;
}

.loginCopyright p {
    background-color: #00000090;
    width: 400px;
    border-radius: 0.25rem;
}

.loginCopyright p a {
    color: #FFFFFF !important;
}


body.form-membership {
    background-attachment: fixed;
    background-size: cover;
    padding: 3rem 0;
    min-height: 100vh;
}

body.form-membership>*:not(.preloader) {
    position: relative;
    z-index: 1;
}

body.form-membership:before {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: rgba(0, 98, 255, 0.8); */
}

body.form-membership .form-wrapper {
    background-color: var(--background-color-primary);
    padding: 3rem;
    border-radius: 0.25rem;
    width: 400px;
    margin: 50px auto;
    text-align: center;
}

body.form-membership .form-wrapper #logo {
    margin: 1rem 0 3rem;
}

body.form-membership .form-wrapper h5 {
    text-align: center;
    margin-bottom: 2rem;
}

body.form-membership .form-wrapper form .form-control,
body.form-membership .form-wrapper form .swal-modal input.swal-content__input,
.swal-modal body.form-membership .form-wrapper form input.swal-content__input {
    margin-bottom: 1.5rem;
}

body.form-membership .form-wrapper hr {
    margin: 2rem 0;
}

span.required {
    color: var(--primary-bg-color);
    font-weight: 700;
}

/* Charte graphique */
.textOnColor div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-transform: uppercase;
}

.textOnColor div span {
    display: block;
    width: 40px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.alignCustomSwitch {
    transform: translateY(10px);
}

/* Mon profil */
[id^="conge_container_"] {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Select2 is-invalid */
.is-invalid.select2 + span .select2-selection {
    border-color: red !important;
}

/* DataTable */
table.styleDataTable td,
table.thinTable td {
    padding: 0rem 0.75rem;
    vertical-align: middle;
    font-size: 13px;
}

table.styleDataTable td a.btn,
table.styleDataTable td button.btn,
table.thinTable td a.btn,
table.thinTable td button.btn {
    padding: 0;
    border-radius: 0;
}

table.thinTable td.tdInput {
    padding: 0;
    border-radius: 0;
}

table.thinTable td.tdInput input,
table.thinTable td.tdSelect.enabled {
    background-color: #ccffff50;
    padding-left: 0.5rem;
    width: 100%;
}

table.thinTable td.tdInput input[disabled],
table.thinTable td.tdSelect.disabled,
table.thinTable td.tdInput input:read-only {
    background-color: #dddddd !important;
}

table.thinTable td.tdInput input.is-invalid {
    color: #f82649;
}

table.thinTable td.tdSelect {
    padding: 0 !important;
}

td.tdTrash i {
    color: #f82649 !important;
}

.hideSortDataTable > thead > tr > th[class*="sort"] {
    padding-right: 0.75rem !important;
}

.hideSortDataTable > thead > tr > th[class*="sort"]:before,
.hideSortDataTable > thead > tr > th[class*="sort"]:after {
    content: "" !important;
}

/* Table avec une hauteur maximum */
table.maxHeightTable {
    display: block;
    max-height: 50vh;
    overflow-y: auto;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

table.maxHeightTable thead {
    background-color: var(--background-color-primary);
    position: sticky;
    top: 0;
}

table.forceBorder {
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.selectInTd {
    width: 100%;
    border: 0;
    background-color: transparent;
    text-align-last: center;
    cursor: pointer;
}

table.thinTable thead tr th {
    font-size: 13px;
}

.tdAction {
    padding: 0 !important;
    display: flex;
    height: 27.5px;
    border-left: none !important;
}

.tdAction .btn, .tdAction form {
    width: 100%;
}

.tdDisabled {
    background-color: #C0C0C0 !important;
}

table.styleDataTable td .tags .tag {
    line-height: 1.5em !important;
}

td.tdScrollX {
    max-width: 200px;
    overflow-x: scroll;
    overflow-y: hidden;
}

td.tdScrollX::-webkit-scrollbar {
    height: 1px;
}

td.tdScrollX::-webkit-scrollbar-thumb {
    background-color: var(--primary-bg-color);
}

/* Barre d'actions haut datatables */
.dataTables_length {
    display: flex;
    align-items: end;
}

.dataTables_length label,
.dataTables_filter label {
    margin-bottom: 0;
}

.dataTables_length label > span {
    width: initial !important;
}

.dataTables_filter label [type="search"] {
    height: 38px;
}

/* Select Group Pills sur une ligne de 100% et 40px */
.selectgroup.selectgroup-pills.one-line {
    display: flex;
}

.selectgroup.selectgroup-pills.one-line .selectgroup-item {
    flex-grow: 1;
    margin-bottom: 0;
}

.selectgroup.selectgroup-pills.one-line .selectgroup-item .selectgroup-button {
    height: 40px;
}

.selectgroup.selectgroup-pills.one-line .selectgroup-item:last-child {
    margin-right: 0;
}

/* Logo header */
.side-header {
    padding: 11px 17px;
}

.header-brand-img {
    height: 3.5rem;
}

.swal2-styled.swal2-confirm {
    background-color: var(--primary-bg-color) !important;
}

.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px var(--border-color) !important;
}

/* Custom Dropify */
.dropify-wrapper .dropify-preview .dropify-infos .dropify-infos-inner p.dropify-infos-message {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.dropify-wrapper .dropify-preview .dropify-infos .dropify-infos-inner p.dropify-infos-message::before {
    height: 0 !important;
}

/* Google maps */
.mapContainer {
    height: 400px;
}

/* Chrome, Safari, Edge, Opera */
input.no-arrow::-webkit-outer-spin-button,
input.no-arrow::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.no-arrow[type=number] {
  -moz-appearance: textfield;
}

/* Timeline historique */
.historique .vtimeline .timeline-wrapper .timeline-badge {
    left: calc(15% - 7px);
}

.historique .vtimeline:before {
    left: 15%;
}

.historique .vtimeline .timeline-wrapper .timeline-panel {
    width: 70%;
}

/* Modal search */
#modalSearch .main-header-center {
    position: relative;
    width: 100%;
}

#modalSearch .main-header-center input {
    width: 100%;
}

#containerSearchResult div:last-child {
    border-bottom: none !important;
}

#containerSearchResult a {
    color: inherit;
}

/* Daterangepicker */
.dark-mode .daterangepicker {
    background-color: var(--background-dark-primary) !important;
    border: 1px solid var(--dark-border-color) !important;
}

.dark-mode .daterangepicker .drp-buttons {
    border-top: 1px solid var(--dark-border-color);
}

.dark-mode .daterangepicker td.available:hover,
.dark-mode .daterangepicker td.active {
    background-color: var(--primary-bg-color) !important;
}

.dark-mode .daterangepicker td.in-range {
    background-color: var(--dark-border-color);
}

/* Badge un peu plus gros */
.biggerBadge .badge {
    padding: 1.2em 1em;
    font-size: 100% !important;
}

/* Notifications */
span.unreadNotification {
    background: var(--primary-bg-color);
    border-radius: 50%;
    padding: 2px;
    width: 12px;
    height: 12px;
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
}

.header .notifications .dropdown-menu {
    min-width: 26rem;
}

/* Avatar non écrasé */
.avatar {
    object-fit: cover !important;
}

/* Groupement des inputs collés */
.groupFirstElement .input-group input,
.groupMiddleElement .input-group input {
    border-bottom-left-radius: 0;
}

.groupFirstElement .input-group span,
.groupMiddleElement .input-group span {
    border-bottom-right-radius: 0;
}

.groupLastElement .input-group input,
.groupMiddleElement .input-group input {
    border-top-left-radius: 0;
}

.groupLastElement .input-group span,
.groupMiddleElement .input-group span {
    border-top-right-radius: 0;
}

/* groupeFiltrePeriode */
.groupeFiltrePeriode {
    display: inline-flex;
}

.groupeFiltrePeriode button:nth-child(1) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.groupeFiltrePeriode button:nth-child(3) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.groupeFiltrePeriode button.lonelyButton {
    border-radius: 5px !important;
}

/* Datatables avec columns fixed */
.dtfc-fixed-left {
    /* border-left: 1px solid var(--border-color) !important; */
}

body.light-mode .dtfc-fixed-left,
body.light-mode .dtfc-fixed-right {
  background-color: var(--background-color-primary) !important;
  z-index: 1;
}

body.dark-mode .dtfc-fixed-left,
body.dark-mode .dtfc-fixed-right {
  background-color: var(--background-dark-secondary) !important;
  z-index: 1;
}

table.styleDataTable thead tr.th-border-top th {
    /* Like a border top but fix the 1 pixel bug */
    box-shadow: 0px -1px 0px 0px var(--border-color);
}

tr.distributeur_plateforme {
    background-color: #f3f3f3;
}

th.th_maincolumn {
    color: var(--primary-bg-color) !important;
}

th.th_subcolumn {
    color: var(--text-menu-color) !important;
}

.ui-timepicker-wrapper {
    z-index: 9999 !important;
}

.bg-white + .select2-container--default .select2-selection--single {
    background-color: var(--background-color-primary);
}

body.dark-mode .bg-white + .select2-container--default .select2-selection--single {
    background-color: var(--background-dark-secondary);
}

/* Footer */

.copyright {
    font-size: 10px;
    padding: 0 !important;
}

.footer {
    height: 40px;
    padding: 10px 10px 10px 80px !important;
}
.custom_file_container {
    padding: 0;
}

.custom_file_title {
    padding: 5px;
    border-radius: 5px 5px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom_file_title button {
    border: 1px solid var(--bs-danger);
    color: var(--bs-danger);
    display: flex;
    height: 25px;
    width: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    transition: 0.3s;
}

.custom_file_title button:hover {
    background-color: var(--bs-danger);
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.custom_file_label {
    border-radius: 0px 0px 5px 5px;
    border-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: xxx-large;
    height: 170px;
    background: #0000001c !important;
}

.custom_file_label img {
    display: none;
}
.custom_file_label:hover {
    cursor: pointer;
    opacity: 80%;
}

.custom_file_displayImg i {
    display: none;
}

.custom_file_displayImg img {
    display: initial !important;
    max-height: 100%;
    max-width: 100%;
}

.custom_color_input .input-group-text{
    height: auto;
    padding: 5px;
}

.aftral_log_btn
{
    position: relative;
}

.aftral_log_btn img
{
    position: absolute;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.dynamique_action_container
{
    display: flex;
    justify-content: center;
}

.dynamique_action_container a
{
    width: 100% !important;
}

.dynamique_action_container button
{
    width: 100% !important;
}

.mapReseau
{
    width: 100%;
    height: 530px;
    background-color: white;
    border-radius: 5px;
}

.select2-dropdown
{
    z-index: 9999 !important;
}

.customNavItem .nav-tabs
{
    width: 100%;
    margin: 0;
    border: none;
    gap: 5px;
    border-bottom: 1px solid white;
}

.customNavItem .nav-link
{
    padding: 10px;
    width: 120px;
    border-radius: 5px 5px 0px 0px;
    border: 1px solid white !important;
    transition: 0.3s;
    border-bottom: 0px solid transparent !important;
    margin-bottom: 1px;
}

.customNavItem .nav-link:hover
{
    border: 1px solid white !important;
    border-bottom: 0px solid transparent !important;
    transition: 0.3s !important;
}

.fileUploadLabel
{
    opacity: 50%;
    border-radius: 5px;
    border: 2px dashed white;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: white;
    cursor: pointer;
    font-size: large;
    transition: 0.2s;
}

.fileUploadLabel i
{
    font-size: xx-large;
    color: white !important;
}

.fileUploadLabel:hover
{
    opacity: 80%;
    transition: 0.2s;
    cursor: pointer;
}

.photoContainer
{
    aspect-ratio: 1;
    position: relative;
}

.photoContainer img
{
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid white;
    border-radius: 5px;
}

.photoContainer button
{
    position: absolute;
    top: -10px;
    right: 0;
    height: 23px;
    width: 23px;
    background: var(--bs-danger);
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 100%;
    transition: 0.2s;
}

.photoContainer button:hover
{
    opacity: 70%;
    background-color: white;
    transition: 0.2s;
}

.photoContainer button:hover i
{
    opacity: 70%;
    color: var(--bs-danger);
    transition: 0.2s;
}

.photoContainer button i
{
    color: white;
    transition: 0.2s;
}

.userDisabledPastille
{
    text-align: center;
    width: 90px;
    transition: 0.2s;
}

.userDisabledPastille:hover
{
    cursor: pointer;
    opacity: 70%;
    transition: 0.2s;
}

.userDisabledPastille span
{
    background-color: var(--bs-danger);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.userEnablePastille
{
    text-align: center;
    width: 90px;
    transition: 0.2s;
}

.userEnablePastille:hover
{
    cursor: pointer;
    opacity: 70%;
    transition: 0.2s;
}

.userEnablePastille span
{
    background-color: var(--bs-success);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
}

.fixedNoScroll
{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--background-color-primary)
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-bg-color) !important;
    border-radius: 20px;
    border: 3px solid var(--background-color-primary);
}

.customHomeCard
{
    display: flex;
    text-indent: 10px;
    height: 100px;
    align-items: center;
    font-size: x-large;
}

.white
{
    color: white !important;
}

.hoverOpacity:hover
{
    cursor: pointer;
    transition: 0.2s;
    opacity: 70%;
}

.fixFiSmall
{
    position: relative;
    top: 1px;
}

.fullHeight
{
    height: 410px;
}

.rapportHomeContainer
{
    padding: 10px;
    height: 100%;
    overflow-y: scroll;
}

.rapportHome
{
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    justify-content: space-between;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
    opacity: 100%;
}

.text-title
{
    color: var(--color-title);
}

.rapportHome:hover
{
    cursor: pointer;
    border-bottom: 1px solid var(--color-title);
    opacity: 80%;
    transition: 0.2s;
}

.homeChartContainer
{
    height: 100%;
}

#connexion-switch-label
{
    white-space: nowrap;
}

.auth_img
{
    width: 100%;
    height: 115px;
}

.auth_img img
{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.overflowTable
{
    max-height: 50vh;
    overflow-y: scroll;
    position: relative;
    padding: 0;
}

.overflowTable thead
{
    position: sticky;
    top: -1px;
    background-color: var(--background-color-primary);
}

.rapport_data_chart
{
    width: 100%;
    height: 450px;
}

.card-height-fix {
    height: calc(100% - 20px);
}

.page-header {
    background-color: var(--background-color-primary);
    margin: 12px 0px;
    padding: 12px;
}

.superadminitem 
{
    position: absolute;
    top: -3px;
    right: -3px;
    padding: 3px;
    border-radius: 50px;
    background: var(--text-color);
    color: white;
    text-align: unset;
    font-size: smaller;
}

#rapports_table_loader {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    height: calc(100% - 65px);
    background: rgb(0 0 0 / 75%);
    border-radius: 6px;
    z-index: +999;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15%;
    color: var(--background-color-primary);
    font-size: large;
    flex-direction: column;
    gap: 20px;
    text-shadow: 1px 1px 1px #00000024;
}

#rapports_table_loader div {
    height: 30px;
    aspect-ratio: 2.5;
    --_g: no-repeat radial-gradient(farthest-side,#ffffff 90%,#0000);
    background:var(--_g), var(--_g), var(--_g), var(--_g);
    background-size: 20% 50%;
    animation: l43 1s infinite linear; 
}

@keyframes l43 {
    0%     {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    16.67% {background-position: calc(0*100%/3) 0   ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    33.33% {background-position: calc(0*100%/3) 100%,calc(1*100%/3) 0   ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
    50%    {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 100%,calc(2*100%/3) 0   ,calc(3*100%/3) 50% }
    66.67% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 100%,calc(3*100%/3) 0   }
    83.33% {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 100%}
    100%   {background-position: calc(0*100%/3) 50% ,calc(1*100%/3) 50% ,calc(2*100%/3) 50% ,calc(3*100%/3) 50% }
}

.dataTables_processing {
    z-index: +9999;
}