/**
    Bootstrap SNCF - v1.0
*/

nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1050 !important;
}

.p_small {
    font-size: 0.7em;
}

.error {
    font-size: 3em;
}

ul.nav {
    width: inherit;
}

.sidebar > * > .nav-item {
    min-height: 5rem;
    line-height: 0.9;
}

.scale-08 {
    transform: scale(0.8, 0.8);
    -ms-transform: scale(0.8, 0.8); /* IE 9 */
    -webkit-transform: scale(0.8, 0.8); /* Safari and Chrome */
    -o-transform: scale(0.8, 0.8); /* Opera */
    -moz-transform: scale(0.8, 0.8); /* Firefox */
}

.bg-gray-800 {
    --bs-bg-opacity: 1;
    background-color: rgba(51, 51, 51, var(--bs-bg-opacity)) !important; /* #333 */
}

.bg-gray-200 {
    --bs-bg-opacity: 1;
    background-color: rgba(215, 215, 215, var(--bs-bg-opacity)) !important; /* #333 */
}

.bg-primary-sncf {
    background-color: rgb(0, 136, 206) !important;
}

.text-primary {
    color: rgb(0, 136, 206) !important;
}

.sami-green {
    background-color: #82be00 !important;
}

.sami-blue {
    background-color: #0088ce !important;
}

.sami-light-blue {
    background-color: #009AA6 !important;
}

.sami-yellow {
    background-color: #ffb612 !important;
}

.sami-red {
    background-color: #cd0037 !important;
}

.sami-gray {
    background-color: #333;
}

.badge-analyse {
    width: 70px !important;
}

.msdi-info:hover {
    color: rgb(0, 136, 206) !important;
}

.sidebar {
    width: 6.25rem;
}

.body {
    left: 6.25rem;
}

.sidebar > ul > li > div > a {
    color: #FFFFFF;
}

.sidebar > * > .nav-item:hover,
.sidebar > * > .nav-item:focus,
.sidebar > * > .nav-item:active {
    background-color: #0074af !important;
}

.bottom-sidebar {
    height: 4.75rem;
    background-color: #0088ce;
    z-index: 1020 !important;
    line-height: 0.9;
}

.bottom-sidebar > ul > li {
    max-width: 10rem;
}

.bottom-sidebar > * > a {
    color: #4d4f53;
    width: 6.25rem;
}

.bottom-sidebar > * > a:hover,
.bottom-sidebar > * > a:focus,
.bottom-sidebar > * > a:active {
    background-color: #0074af !important;
}

.text-footer {
    font-size: 0.75rem;
    font-weight: 400;
}

.close {
    font-size: 1.2rem;
    font-weight: 1000;
    line-height: 1;
    color: #4c4f54;
    text-shadow: 0 1px 0 #fff;
    border: none;
    background-color: transparent;
    outline: none;
}

.close:hover {
    color: #4c4f54;
}

.icon-options {
    font-size: 1.75rem;
}

.icon-options:focus,
.icon-options:hover {
    color: #0088ce;
}

/* nav Tabs */
li.nav-action a {
    color: #747678 !important;
}

#msdiConsultationTabs .nav-link.active {
    background-color: #0088ce !important;
}

li.nav-action a.active {
    font-weight: 600 !important;
    color: #0088ce !important;
    text-decoration: none !important;
    background-color: transparent !important;
    border-bottom: 4px solid #0088ce;
    border-right: 0.25rem solid #FFFFFF;
    border-left: 0.25rem solid #FFFFFF;
}

.actionbar {
    position: fixed;
    top: 3rem;
    z-index: 1040;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 5rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
    background-color: #fff;
}

/* nav Tabs */

.navbar-horizontal-menu li {
    min-width: fit-content;
}

.icon-rotate {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.dropdown-arrow-button::before {
    position: absolute;
    top: calc(50% - .6875rem);
    left: 0;
    width: .0625rem;
    height: 1.375rem;
    content: "";
}

.dropdown-arrow-button::after {
    content: '\f107';
    font: var(--fa-font-solid);
    border-top: 0;
    vertical-align: baseline;
    margin-left: 0;
    font-size: 80%;
}

#dropdownSelfProfileButton.dropdown-toggle::before {
    background-color: #4d4f53;
    position: absolute;
    top: calc(50% - .6875rem);
    left: 0;
    width: .0625rem;
    height: 1.375rem;
    content: "";
}

/*
Keep this here in case we want to put the caret back over the dropdown menu

.dropdown-menu-end::before,
.dropdown-menu-end::after,
.dropdown-menu-right::before,
.dropdown-menu-right::after {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    content: " ";
    border: .625rem solid transparent;
    top: -1.15rem;
}

.dropdown-menu-end::before,
.dropdown-menu-right::before {
    border-bottom-color: #d7d7d7;
    right: 1.0625rem;
}*/

/* Hover colors */

.hover-primary:hover {
    color: #0088ce !important;
}

/* Hover colors */

.dropdown-menu {
    z-index: 1021;
}

.dropdown-menu-end::after,
.dropdown-menu-right::after {
    border-bottom-color: #ffffff;
    border-width: 11px;
    right: 0.975rem;
}

/*card */
.card {
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid rgba(0, 0, 0, .125);
}

.card_border_col {
    border: 1px solid rgba(0, 0, 0, 0.125);
    height: 100%;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header-card {
    background-color: transparent;
    border-bottom: 0 solid transparent;
    margin-top: 4rem;
}

.card_border {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-top: 10px;
}

.card_height_100 {
    height: 100%;
}

.card-body {
    /* padding: 2rem;*/
}

/*card*/

/*label*/
label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/*label*/

/*select file*/
.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 2.25rem;
    margin-bottom: 0;
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 2.25rem;
    margin: 0;
    opacity: 0;
}

.custom-file-input:disabled ~ .custom-file-label {
    background-color: #f2f2f2;
}

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 2.25rem;
    padding: 0.375rem 1.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #0088ce;
    background-color: #f2f2f2;
    border: 1px solid #747678;
    border-radius: 0.4375rem;
}

.custom-file-label::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 2.25rem;
    padding: 0.375rem 1.875rem;
    line-height: 1.5;
    color: #0088ce;
    content: "Browse";
    background-color: #d7d7d7;
    border-left: 1px solid #747678;
    border-radius: 0 0.4375rem 0.4375rem 0;
}

/*select file*/

input[type='file']::file-selector-button {
    background-color: rgb(0, 136, 206) !important;
    color: white;
    position: absolute;
    right: 0;
    border-radius: 0 0.4375rem 0.4375rem 0;
}

/*button*/

.btn {
    font-weight: 500;
    white-space: nowrap;
    vertical-align: middle;
    padding: 0.59375rem 1.875rem;
    border-radius: 0.4375rem;
}

.btn-primary {
    color: #fff;
    background-color: #0088ce;
    border-color: #0088ce;
}

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff !important;
    cursor: not-allowed !important;
    background-color: #0088ce !important;
    border-color: #0088ce !important;
    opacity: 0.65 !important;
    pointer-events: inherit !important;
}

.btn-danger.disabled, .btn-danger:disabled {
    color: #fff !important;
    cursor: not-allowed !important;
    background-color: #cd0037 !important;
    border-color: #cd0037 !important;
    opacity: 0.65 !important;
    pointer-events: inherit !important;
}

.btn-primary:hover, .btn-primary:focus, a.active {
    color: #fff;
    background-color: #0074af;
    border-color: #0074af;
}


/*button*/

/* radio switch custom sizes */

.form-switch.form-switch-sm .form-check-input {
    height: 1rem;
    width: calc(1rem + 0.75rem);
    border-radius: 2rem;
}

.form-switch.form-switch-md .form-check-input {
    height: 1.5rem;
    width: calc(2rem + 0.75rem);
    border-radius: 3rem;
}

.form-switch.form-switch-lg .form-check-input {
    height: 2rem;
    width: calc(3rem + 0.75rem);
    border-radius: 4rem;
}

.form-switch.form-switch-xl .form-check-input {
    height: 2.5rem;
    width: calc(4rem + 0.75rem);
    border-radius: 5rem;
}

/* radio switch custom sizes */

/* select 2 */

.select2-container--bootstrap-5 .select2-selection--single {
    border-top-right-radius: 9px 9px !important;
    border-bottom-right-radius: 9px 9px !important;
}

.z-index-below > .select2-container--bootstrap-5 {
    z-index: 0 !important;
}

.limited-results > * > .select2-results__options {
    max-height: 185px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    background-color: #0088ce;
    position: absolute;
    width: 40px !important;
    height: 100% !important;
    right: 0 !important;
    top: 0 !important;
    border-radius: 0 .4375rem .4375rem 0 !important;
    -webkit-appearance: none !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b {
    border-color: transparent !important;
    border-style: solid !important;
    left: 0 !important;
    margin-left: 24% !important;
    margin-top: 10% !important;
    position: absolute !important;
    width: 0 !important;
    height: 5px !important;

}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b::after {
    content: '\f107';
    font: var(--fa-font-solid);
    font-size: 100%;
    color: white;
}

.select2-container--bootstrap-5 .select2-selection--single.select2--small .select2-selection__arrow b::after {
    margin-left: 2px;
}

.select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__arrow b::after {
    content: '\f106';
    font: var(--fa-font-solid);
}

.select2-selection__rendered {
    font-weight: 550 !important;
}

.select2-container--bootstrap-5 .select2-selection,
.select2-selection__rendered,
.select2-container--bootstrap-5 .select2-dropdown,
.select2-results__option--highlighted {
    color: #0088ce !important;
}

.select2-container--bootstrap-5 .select2-selection[aria-disabled="true"] .select2-selection__rendered[aria-readonly="true"] {
    color: rgba(var(--bs-secondary-rgb), 1) !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    color: #212529 !important;
    background-color: transparent !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected {
    background-color: #f1f1f1 !important;
    color: #212529 !important;
}

.select2-results {
    max-height: 330px !important;
}

.select2_territoire .select2-selection__arrow, .select2_infrapole .select2-selection__arrow {
    background-color: transparent !important;
}

.select2_territoire[aria-labelledby="select2-select_territoire-container"] .select2-selection__arrow b,
.select2_infrapole[aria-labelledby="select2-select_infrapole-container"] .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent !important;
}

/* select 2*/

/* Form validation */

.was-validated .form-control:invalid {
    border-color: inherit !important;
    background-image: none !important;
}

.select2-selection {
    border-color: #ced4da !important;
}

.was-validated .form-control:invalid:focus {
    box-shadow: none !important;
}

.was-validated .form-control:valid {
    border-color: #0088Ce !important;
    border-bottom: 3px solid #0088Ce !important;
    color: #0088Ce !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%230088Ce' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") !important;
}

.form-control[readonly] {
    padding-right: 3rem;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='27' height='25' viewBox='0 0 27 25'%3e%3cdefs%3e%3cstyle%3e.disabled-icon%7bfill:%23747678;%7d%3c/style%3e%3c/defs%3e%3cpath class='disabled-icon' d='M26.79,25.05H1.21a.73.73,0,0,0,0,1.45H26.79a.73.73,0,0,0,0-1.45Z' transform='translate(-0.5 -1.5)'/%3e%3cpath class='disabled-icon' d='M19.8,8.87h-.61V6.73a5.23,5.23,0,0,0-10.46,0V8.87H8.2a1.63,1.63,0,0,0-1.63,1.62V21.32A1.62,1.62,0,0,0,8.2,22.94H19.8a1.62,1.62,0,0,0,1.63-1.62V10.49A1.63,1.63,0,0,0,19.8,8.87ZM10.93,6.73a3,3,0,1,1,6.06,0V8.87H10.93Zm3,14.15a5,5,0,1,1,5-5A5,5,0,0,1,14,20.88Z' transform='translate(-0.5 -1.5)'/%3e%3cpath class='disabled-icon' d='M14,12.62a3.29,3.29,0,1,0,3.29,3.29A3.29,3.29,0,0,0,14,12.62Zm0,4.75a1.47,1.47,0,1,1,1.47-1.46A1.46,1.46,0,0,1,14,17.37Z' transform='translate(-0.5 -1.5)'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center right 10px;
    background-size: 27px 25px;
}

/* Form validation */

/* popover */

.popover-header {
    background-color: white !important;
    border-bottom: none !important;
    color: #0088ce !important;
    font-weight: 700 !important;
    padding-bottom: 0 !important;
    padding-top: 1rem !important;
}

.popover-body {
    padding-top: 0 !important;
}

.custom-popover {
    max-width: 100% !important;
}

/* popover */

/* modal */

.modal {
    top: 7%;
}

.modal-confirm {
    max-width: 500px !important;
}

#inspect_alert .modal-dialog {
    min-width: 30rem;
}

#delete-capteur {
    z-index: 1050;
}

#modal-add-comment {
    top: -10% !important;
}

.modal-open {
    padding-right: 0 !important;
}

/* modal*/

/*spinner, dialogue-delete-msd*/
.spinner {
    width: 5rem;
    height: 5rem;
}

#spinner, #dialogue-delete-msdi, #dialogue-delete-couple {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 2055;

}

#dialogue-delete-msdi, #dialogue-delete-couple {
    z-index: 2000 !important;

}

/*spinner, dialogue-delete-msd*/

/* tables */

.table-fixed {
    table-layout: fixed !important;
    width: 100% !important;
    overflow-x: auto;
}

/* tables */

/*dataTable*/
div.dataTables_wrapper div.dataTables_length select {
    width: 130px !important;
}

.form-control[type="search"] {
    height: 2.8125rem !important;
    margin-top: 0.4rem !important
}

div.dataTables_length label span.select2, div.dataTables_length label span.selection span.select2-selection {
    height: 2.8125rem !important;
}

div.dataTables_length label span.selection span.select2-selection span.select2-selection__rendered {
    padding-top: 5px !important;
}

/* DataTables */

div.dataTables_length label {
    font-size: .75rem;
    font-weight: 400;
}

.page_item .page-link {
    border: none;
    background-color: red;
!important;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.pagination li.active > a {
    font-weight: 500 !important;
    color: #0088ce !important;
    text-decoration: none !important;
    background-color: #FFFFFF;
    border-bottom: 4px solid #0088ce;
    border-radius: 4px;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #FFFFFF;
    border-color: #0d6efd;
}

ul.pagination .page-link {
    border: none;
}

.toolbar_dataTable {
    margin-top: 16px;
    margin-left: 20px;
    min-height: 2.8125rem !important;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}

table.dataTable {
    margin-top: 0 !important;
}

.toolbar {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding-left: 0;
    list-style: none;
}

/*dataTable*/

.overflow-y-auto {
    overflow-y: auto;
}

/*E-CHARTS*/

/*consultation measures by sensor and CT*/
#graph_resistance_div, #graph_resistance_aggregated_div, #graph_tension_div, #graph_meteo_div {
    height: 500px;
}

/*consultation instant data*/
#graphdiv1, #graphdiv2 {
    height: 400px;
}

.legend-line {
    display: inline-block;
    position: relative;
    bottom: .5ex;
    height: 1px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    padding-left: 1em;
    margin-right: 0.5em;
}


/*E-CHARTS*/

/*accordion */
.accordion-button:not(.collapsed) {
    color: #0088ce !important;
}
.accordion-button:focus {
    border-color: #0088ce !important;
}

/*acordion */

/*add couple button */
#add_couple_1, #add_couple_2, #addCT {
    font-weight: 500;
    padding: 0.3rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.4375rem;
    color: #fff;
    background-color: #4d4f53;
    border-color: #4d4f53;
}


/* Chrome scrollbar */

/* total width */
::-webkit-scrollbar {
    background-color: #fff;
    width: 9px;
}

/* background of the scrollbar except button or resizer */
::-webkit-scrollbar-track {
    background-color: #fff;
}

/* scrollbar itself */
::-webkit-scrollbar-thumb {
    background-color: #babac0;
    border-radius: 16px;
    border: 2px solid #fff;
}

/* set button(top and bottom of the scrollbar) */
::-webkit-scrollbar-button {
    display:none;
}

/* Chrome scrollbar */