.gradient-custom {
    background: #E94F35;
    background: -webkit-linear-gradient(to right, #E94F35, #2E3640);
    background: linear-gradient(to right, #E94F35, #2E3640)
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
}

a {
    color: #E94F35;
}

a:hover {
    color: #E94F35;
    text-decoration: underline;
}

.excalibur-primaire {
    color: #E94F35;
}

.excalibur-secondaire {
    color: #2E3640;
}


.bg-excalibur-primaire {
    background-color: #E94F35;
}

.bg-excalibur-secondaire {
    background-color: #2E3640;
}

.afficherPassword {
    z-index: 1000;
    color: black;
    position: absolute;
    top: 50%;
    left: 95%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

input[type='checkbox'] {
    accent-color: #E94F35;
}

.table-responsive {
    overflow: visible;
}

.dataTables_wrapper .cursorPointerHover tbody tr td:not(.dataTables_empty):hover {
    cursor: pointer;
}


table.dataTable.table-sm > thead > tr > th {
    font-size: 0.95em;
}

.table-sm td, .table-sm th {
    padding: .15rem !important;
}

/*
table.dataTable tbody tr.selected td {
    border-top: 3px dotted #f39200;
    border-bottom: 3px dotted #f39200;
}
 */
table.dataTable tbody tr.selected {
    /*background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' stroke='%23E2793EFF' stroke-width='8' stroke-dasharray='10' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e")!important;*/
    /*background-color: #bbbbbb;*/
    background-color: #FF6B51;
    color: #fff !important;
}

table.dataTableExcaliburLigneCliquable tr td:not(.dataTables_empty):hover {
    cursor: pointer;
}

/* Hack pour corriger le bug de scroll des tableaux DataTable (paramètre "scrollX") */
div.dataTables_wrapper {
    width: 99%;
    max-width: 99%;
    overflow-x: auto;
}

table.dataTable {
    /*width: 99%;*/
    /*max-width: 99%;*/
    overflow-x: auto;
    display: table;
}


.dataTables_wrapper .content-inline-block .dataTables_length, .dataTables_wrapper .content-inline-block .dataTables_filter {
    display: inline-block;
    padding-right: 15px;
}

.dataTables_wrapper .content-inline-block .dataTables_length + .dataTables_filter {
    padding-right: 0px;
}

.dataTables_wrapper .dropdown-menu {
    padding: 0;
}

.dataTables_wrapper .dropdown-item.active, .dataTables_wrapper .dropdown-item:active {
    background-color: #E94F35 !important;
}

.dataTables_length .select2-container--bootstrap4 .select2-selection--single {
    height: calc(1.15em + 0.75rem + 2px) !important;
}

.dataTables_length .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.2em + .75rem);
}

.dataTables_filter input.form-control {
    border-radius: .25rem !important;
}

.modal div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}

.modal {
    padding-right: 0 !important;
}

.modal-dialog-full-width {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.modal-content-full-width {
    /*height: auto !important;*/
    height: 80% !important;
    min-height: 100% !important;
    border-radius: 0 !important;
    background-color: #ececec !important
}

.modal-header-full-width {
    border-bottom: 1px solid #9ea2a2 !important;
}

.modal-footer-full-width {
    border-top: 1px solid #9ea2a2 !important;
}

.modal-header-full-width .close {
    margin: -.5rem -1rem -1rem auto;
}

/* /Modal en plein écran */

.modal #footerDT {
    height: auto !important;
}

.modal div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}

.modal-xl {
    max-width: 99% !important;
}

.modal-full-height .modal-content {
    height: 99%;
}

.modal-dialog-scrollable {
    height:  100% !important;
    max-height: fit-content;
}

/* Medium devices (desktops, 992px and up), until large */
@media (min-width: 768px) and (max-width: 991px) {
    div.dataTables_wrapper div.dataTables_filter input {
        width: 60%;
    }
}


/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .w-lg-25 {
        width: 25% !important;
    }

    .w-lg-33 {
        width: 33% !important;
    }

    .w-lg-50 {
        width: 50% !important;
    }

    .w-lg-75 {
        width: 75% !important;
    }

    .w-lg-100 {
        width: 100% !important;
    }

    .w-lg-auto {
        width: auto !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1024px) {
    table.dataTable.table-sm > thead > tr > th {
        font-size: 0.9em;
    }

    .table-sm td, .table-sm th {
        padding: .1rem .15rem !important;
        font-size: 0.8em;
    }
}

/* Extra large devices (large desktops, 1800px and up) */
@media (min-width: 1800px) {
    .w-xl-25 {
        width: 25% !important;
    }

    .w-xl-33 {
        width: 33% !important;
    }

    .w-xl-50 {
        width: 50% !important;
    }

    .w-xl-75 {
        width: 75% !important;
    }

    .w-xl-100 {
        width: 100% !important;
    }

    .w-xl-auto {
        width: auto !important;
    }
}

.page-item.active .page-link {
    z-index: 1;
    color: #fff;
    background-color: #E94F35;
    border-color: #E94F35;
}

.square-btn {
    width: 30px;
    height: 30px;
}


.btn-excalibur {
    color: #fff;
    background-color: #E94F35;
    border-color: #E94F35;
    box-shadow: none;
}

.btn-excalibur:hover {
    color: #fff;
    background-color: #FF6B51;
    border-color: #FF8771;
}

.btn-excalibur:focus, .btn-excalibur.focus {
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 20, .25);
}

.btn-excalibur.disabled, .btn-excalibur:disabled {
    color: #fff;
    background-color: #FF8771;
    border-color: #FF8771;
}

.btn-excalibur:not(:disabled):not(.disabled):active, .btn-excalibur:not(:disabled):not(.disabled).active,
.show > .btn-excalibur.dropdown-toggle {
    color: #fff;
    background-color: #b76435;
    border-color: #b76435;
}

.btn-excalibur:not(:disabled):not(.disabled):active:focus, .btn-excalibur:not(:disabled):not(.disabled).active:focus,
.show > .btn-excalibur.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(238, 119, 20, .25);
}


.btn-outline-excalibur {
    color: #FF6B51;
    border-color: #FF6B51;
}

.btn-outline-excalibur:hover {
    color: #ffffff;
    background-color: #FF6B51;
    border-color: #FF6B51;
}

.btn-outline-excalibur:focus, .btn-outline-excalibur.focus {
    box-shadow: 0 0 0 0 rgba(238, 119, 20, 0.5);
}

.btn-outline-excalibur.disabled, .btn-outline-excalibur:disabled {
    color: #FF6B51;
    background-color: transparent;
}

.btn-outline-excalibur:not(:disabled):not(.disabled):active, .btn-outline-excalibur:not(:disabled):not(.disabled).active,
.show > .btn-outline-excalibur.dropdown-toggle {
    color: #ffffff;
    background-color: #FF6B51;
    border-color: #FF6B51;
}

.btn-outline-excalibur:not(:disabled):not(.disabled):active:focus, .btn-outline-excalibur:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-excalibur.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(238, 119, 20, 0.5);
}


.btn-excalibur-secondaire {
    color: #fff;
    background-color: #2E3640;
    border-color: #2E3640;
    box-shadow: none;
}

.btn-excalibur-secondaire:hover {
    color: #fff;
    background-color: #404853;
    border-color: #404853;
}

.btn-excalibur-secondaire:focus, .btn-excalibur-secondaire.focus {
    color: #fff;
    background-color: #404853;
    border-color: #424952;
    box-shadow: 0 0 0 0 rgba(130, 138, 145, 0.5);
}

.button-sm {
    width: 70px;
}

.button-md {
    width: 100px;
}

.button-lg {
    width: 130px;
}

.button-xl {
    width: 185px;
}

.input-group-text {
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.input-group-text i {
    font-size: 1rem;
}

.form-control:focus {
    border-color: #E94F35;
    outline: none !important;
    box-shadow: 0 0 0 0.1rem rgb(255, 107, 81);
}

option:not([disabled]):checked {
    color: #FFFFFF !important;
    background-color: #E94F35;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-top-color: #E94F35;
    border-left-color: #E94F35;
    border-bottom-color: #E94F35;
}

.spinner-border-white {
    width: 1.1rem;
    height: 1.1rem;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-bottom-color: #ffffff;
}

.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #FF6B51 !important;
}

.nav-pills .nav-link:not(.active):hover {
    color: #E94F35;
}

.nav-sidebar.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #fff !important;
    background-color: #E94F35 !important;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff !important;
    border-color: #E94F35 !important;
    background-color: #E94F35 !important;
    box-shadow: none !important;
}

.card-orange:not(.card-outline) > .card-header {
    background-color: #E94F35 !important;
}

.card-orange:not(.card-outline) > .card-header, .card-orange:not(.card-outline) > .card-header a {
    color: #fff;
}

.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-orange, .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-orange {
    background: #E94F35;
    color: #FFFFFF;
}

#darkModeIcon {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-left: 8px;
}

/* Empêcher les transitions avant que le mode ne soit appliqué */
html {
    transition: none !important; /* Aucune transition sur la racine */
}

/* Mode sombre : appliquer les styles avec la classe 'dark-mode' */
body.dark-mode {
    background-color: #121212;
    color: #ced4da;
}

body.dark-mode b, body.dark-mode strong, body.dark-mode a:hover, body.dark-mode .nav-tabs, body.dark-mode .nav-link, body.dark-mode .main-footer i, body.dark-mode .content-header .nav-icon{
    color: #ced4da !important;
}

body.dark-mode .custom-control-label::before, body.dark-mode .custom-file-label, body.dark-mode .custom-file-label::after, body.dark-mode .custom-select, body.dark-mode .form-control:not(.form-control-navbar):not(.form-control-sidebar), body.dark-mode .input-group-text, body.dark-mode .nav-pills .active {
    background-color: #5c6671 !important;
    color: #fff !important;
}
body.dark-mode .custom-file-label, body.dark-mode .custom-file-label::after, body.dark-mode .form-control:not(.form-control-navbar):not(.form-control-sidebar):not(.is-invalid):not(:focus) {
    border-color: #5c6671 !important;
}

body.dark-mode .bg-white {
    background-color: #3f474e !important;
}

body.dark-mode #card-dossier-mails .nav-pills .nav-link:not(.active):hover, body.dark-mode #card-dossier-mails .nav-pills .nav-icon:hover {
    color: #E94F35 !important;
}

.dark-mode .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-orange, .dark-mode .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-orange {
    background: #E94F35;
    color: #fff;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: lightgray;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}
.progress {
    height: 100%;
    width: 0;
    background: red;
    border-radius: 5px;
    transition: width 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

.conditionsSecuMdp {
    list-style-type: none;
    padding: 0;
}

/*DOCUMENT PDF MODAL*/

canvas, .canvas-container {
    -webkit-box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 1px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 1px 1px 5px 0px rgba(0,0,0,0.75);
}

.toolbar {
    position: sticky;
    top: 0;
    background-color: rgb(50, 54, 57);
    color: white;
    padding: 10px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
}

#pdf-container {
    padding-left: 10px;
    padding-bottom: 10px;
    text-align: center;
    height: 200px;
    transition: transform 0.2s ease-in-out;
    transform: scale(0.55);
}

button:focus {
    outline: 0;
}

.toolbar .tool {
    display: inline-block;
    color: #fff;
    height: 100%;
    padding-top: 10px;
    padding-left: 10px;
    margin-right: 5px;
}

.toolbar .tool:last-child {
    margin-left: auto; /* Aligne le dernier élément à droite */
}

.toolbar .tool label,
.toolbar .tool select,
.toolbar .tool input {
    display: inline-block;
    width: auto;
    height: auto !important;
    padding: 0;

}

.toolbar .tool input {
    width: 50px;
}

.toolbar .tool .color-tool {
    height: 25px;
    width: 25px;
    border-radius: 25px;
    border: 0;
    cursor: pointer;
    display: inline-block;
}

.toolbar .tool .color-tool.active {
    -webkit-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 3px 4px 5px 0px rgba(0,0,0,0.75);
}

.toolbar .tool .tool-button {
    background-color: rgb(50, 54, 57);
    border: 1px solid rgb(50, 54, 57);
    color: #fff;
    cursor: pointer;
}

.toolbar .tool .tool-button:hover,
.toolbar .tool .tool-button.active {
    background-color: rgb(82, 86, 89);
    border-color: rgb(82, 86, 89);
}

.dropdown-no-childs {
    pointer-events: none !important;
}

#select-famille-document {
    width: 375px;
}

.dropzone {
    width: 75%;
    margin: auto;
    border: 2px dashed #E94F35;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
}

.hourglass {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.bandeauAideTitre {
    padding: 0.5% 0 0.1% 0;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
    color: #E94F35;
    background-color: #2E3640;
}

.btnReturn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.informationAide {
    background-color: pink;
}

.content-aide {
    transition: unset !important;
    margin-left: unset !important;
}

.main-footer-aide {
    transition: unset !important;
    margin-left: unset !important;
}

.wrapper .content-aide {
    min-height: calc(107.5vh - calc(3.5rem + 1px) - calc(3.5rem + 1px));
    padding-bottom: 20px;
}

.bandeauAideTitre {
    padding: 0.5% 0 0.1% 0;
    margin-top: 30px;
    text-align: center;
    font-weight: bold;
    color: #E94F35;
    background-color: #2E3640;
}

.bandeauAideTitre .btnReturn {
    position: absolute;
    left: 25px;
}

.contenuAideTitre {
    padding-top: 1.5rem !important;
    font-size: 18px;
}

.contenuAideSection {
    padding-top: 1rem !important;
    font-size: 16px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.contenuAideSection a:hover {
    color: #E94F35;
    text-decoration: underline;
}

.contenuAideSection div {
    display: block;
    padding-bottom: 3px;
}

.contenuAideSection b {
    font-size: 18px;
}

.tableAideExcalibur tr td {
    border: 1px solid;
    background-color: #FFFFFF;
}

.tableAideExcalibur {
    padding-left: 5px;
    width: 100%;
}

.tableAideExcalibur .tdTitre {
    padding-left: 5px;
    width: 500px;
}

.tableAideExcalibur .tdDescrip {
    padding-left: 5px;
}

.helpPageExcaliburInModal {
    color: rgba(0, 0, 0, .5);
    position: absolute;
    right: 3rem;
}


span.participants-ids {
    float: left;
    /* padding: 4px; */
    border: 1px solid #ccc;
    margin-right: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
    background: #f5f5f5;
    border-radius: 5px;
}


body.dark-mode span.participants-ids {
    color: black;
}

span.cancel-participants {
    border: 1px solid #ccc;
    width: 18px;
    display: block;
    float: right;
    text-align: center;
    margin-left: 20px;
    border-radius: 49%;
    height: 18px;
    line-height: 15px;
    margin-top: 3px;
    cursor: pointer;
}

.participants-id-row {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    min-height: 70px;
}

.participants-id-row input {
    border: 0;
    outline: 0;
}

.disabled {
    pointer-events: none;
}

.inputHoraireManuelle {
    width: 200px;
}

.background-excalibur {
    background-color: #E94F35;
    color: #FFFFFF;
}

.red {
    color: red;
}

.zoomCheckbox {
    width: 20px;
    height: 20px;
}

.signature-pad.disabled {
    background-color: unset;
}

.signature-pad canvas {
    box-shadow: none;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.signature-image {
    border: 1px solid #a0a0a0;
    background-color: white;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.signature-template-vide {
    border: 1px solid #a0a0a0;
    background-color: white;
    width: 301.6px;
    height: 151.6px;
    margin-left: auto;
    margin-right: auto;
}

.signature-template {
    width: 301.6px;
    margin-left: auto;
    margin-right: auto;
}

#dataTableExcaliburDetailsFormations {
    cursor: pointer;
}

.checkboxSigner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.checkboxSigner.disabled {
    text-decoration: line-through red;
}

.pre-line {
    white-space: pre-line;
}

.under-line {
    text-decoration: underline;
}

.line-through {
    text-decoration: line-through;
}

.contenuCgu {
    max-height: 400px;
    overflow-y: auto;
}

.divSignatures {
    overflow-x: auto; white-space: nowrap;
}

.daterangepicker td.disabled-range,
.daterangepicker td.disabled-range:hover {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
}

.page-item.active .page-link {
    color: white !important;
}

.toast-warning {
    background-color: #E94F35 !important;
    color: #ffffff !important;
}

.toast {
    font-size: 16px !important;
}