/*Fonts*/
@font-face {
    font-family: 'Open Sans';
    src: url("../assets/fonts/OpenSans-VariableFont_wdth,wght.ttf") format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url("../assets/fonts/OpenSans-Italic-VariableFont_wdth,wght.ttf") format('truetype');
    font-weight: 100 900;
    font-style: italic;
}


/* Selector */
select:focus {
    background-color: #465781;
    color: white;
}

option:checked {
    background-color: #465781;
    color: white;
}

option {
    margin: auto auto 5px auto;
    border-radius: 8px;
    width: 350px;
    text-align: center;
}

/* Font Color */

.font-success {
    color: #5a990a;
}

.font-info {
    color: #5E8DFF;
}

.font-danger {
    color: #ea0606;
}

.font-warning {
    color: #FFD99F;
}

.font-rv-warning{
    color: #fbcf33 !important;
  }

/* Class */
.disabled:not(li) {
    background-color: #e9ecef;
    opacity: 1;
    pointer-events: none;
}

.disabled-checkbox {
    opacity: 0.7;
    pointer-events: none;
}

.uppercase-first-letter:first-letter {
    text-transform: capitalize;
}

.truncate {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Status cell tooltip */

.status-cell-tooltip {
    position: relative;
}

.tooltip-base .tooltiptext {
    visibility: hidden;
    width: 230px;
    position: absolute;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;

}

.tooltip-base .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip-top .tooltiptext {
    margin-left: -140px;
}

.tooltip-left .tooltiptext {
    margin-left: -295px;
}

.tooltip-left .tooltiptext::after {
    top: 32%;
    left: 101%;
    border-width: 7px;
    transform: rotate(275deg);
}

.tooltip-base:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Navbar */

.notification-dot {
    position: absolute;
    text-align: center;
    background-color: #ea0606;
    color: white;
    border-radius: 30px;
    font-size: 14px;
    font-family: system-ui, sans-serif;
    margin-left: 5px;
    margin-bottom: 23px;
}

.small-dot {
    width: 19px;
    height: 19px;
}

.small-dot div {
    width: 19px;
    height: 19px;
    margin-top: -1px;
}

.medium-dot {
    width: 23px;
    height: 23px;
}

.medium-dot div {
    width: 23px;
    height: 23px;
}

.large-dot {
    width: 30px;
    height: 23px;
}

.large-dot div {
    width: 30px;
    height: 23px;
}

.custom-navbar {
    background-image: linear-gradient(195deg, rgb(66, 66, 74), rgb(25, 25, 25));
    margin: 20px 0;
}

@media (max-width: 1199.98px) {
    .custom-navbar {
        display: none;
        margin: 85px 0 20px 20px !important;
    }
}

.custom-navbar > .navbar-collapse > .navbar-nav > .nav-item > .nav-link > .nav-link-text {
    color: white;
!important;
}

/* Custom Badges */

.custom-badge {
    min-width: 50px;
    display: inline-block;
    padding: 0.55em 0.9em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 24px;
}

.custom-badge:first-letter {
    text-transform: capitalize;
}

.custom-badge-success {
    color: #5a990a;
    background-color: #e1fbc1;
}

.custom-badge-info {
    color: #5E8DFF;
    background-color: #E2E2FD;
}

.custom-badge-danger {
    color: #fb0000;
    background-color: #fdd4d4;
}

.custom-badge-warning {
    color: #FFD99F;
    background-color: #FFF8EB;
}

/* Custom soft-ui */
hr.horizontal.custom-dark {
    min-height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1.5), rgba(0, 0, 0, 0.5));
}

.text-rv {
    color: #465781
}

.text-grey-rv {
    color: #8D8D8D
}

.underline-rv {
    border-bottom: 3px solid #465781
}

.selected-item {
    background-color: #F1F5FF;
}

.select-event-filter {
    width: auto;
}

.select-event-filter::-webkit-scrollbar {
    display: none;
}

/* Background */

.bg-rv-primary {
    background-image: linear-gradient(310deg, #252f40 0%, #252f40 100%);
}

.bg-gradient-success {
    background-image: linear-gradient(310deg, #53bd6a 0%, #98ec2d 100%);
}

.bg-gradient-connexion {
    background-image: linear-gradient(310deg, #ed1b24 0%, #fa7a33 100%);
}

/* Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.custom-scrollbar {
    overflow-y: scroll;
    overflow-x: hidden;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 6px;
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: none;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #252f40;
}

/* Footer */
.dashboard-version {
    color: white;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Specific pages */

/* Dashboard */

.dashboard-widget {
    height: 90px;
    justify-content: center;
}

@media (min-width: 992px) and (max-width: 1444px) {
    .dashboard-widget {
        height: 120px;
        justify-content: center;
    }

    .dashboard-widget p {
        height: 40px;
    }
}

.leaflet-popup-content a {
    text-decoration: none;
    color: #252f40
}

.leaflet-popup-content a:hover {
    text-decoration: none;
    color: #830866;
}

/* New agent page */
#multi_site_form > div {
    margin-bottom: 50px;
}

/* Device */
.device_buttons {
    justify-content: center;
}

.device_buttons div {
    width: 295px;
    align-self: center;
    text-align-last: center;
}


/* Datatable */
select[name='datatable-search_length'] {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
}

.unread {
    border-left: #465781 solid 2px;
    background-color: #ced3df61;
}

a.page-link {
    min-width: 37px !important;
    width: auto !important;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background: transparent linear-gradient(310deg, #627594, #a8b8d8);
    border-color: #dee2e6;
}

.icon-exclamation {
    width: 10px;
}

/* Map Cluster */
.marker-cluster-small {
    background-color: rgb(0, 0, 0) !important;
}

.marker-cluster-small div {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

.marker-cluster-medium {
    background-color: rgb(0, 0, 0) !important;
}

.marker-cluster-medium div {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

.marker-cluster-large {
    background-color: rgb(0, 0, 0) !important;
}

.marker-cluster-large div {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

h6 > a.disabled {
    background-color: #0000;
}

.marker-cluster-custom {
    background-color: rgb(0, 0, 0) !important;
    margin-left: -20px;
    margin-top: -20px;
    width: 40px;
    height: 40px;
}

.marker-cluster-custom > div > span {
    color: white;
}

.marker-cluster-custom-ok div {
    background: linear-gradient(#53bd6a, #98ec2d) !important;
}

.marker-cluster-custom-warning div {
    background: linear-gradient(#f53939, #fbcf33) !important;
}

.marker-cluster-custom-major div {
    background: linear-gradient(#ea0606, #ff667c) !important;
}
.marker-cluster-custom-maintenance div {
    background: linear-gradient(#045de7, #196ff1) !important;
}
.marker-cluster-custom-unknown div {
    background: linear-gradient(#939393, #b0b0b0) !important;
}

.no-text-decoration{
    color: inherit !important; 
    text-decoration: none !important;
}

.device-image, .device-icon{
    font-size: 25px;  /* Ajuste la taille de l'icône */
    width: 75px;
    aspect-ratio: 4 / 2;
    object-fit: contain;
    vertical-align: middle;
}

.linear-gradient {
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 1.0) 0%, rgba(0, 0, 0, 0.2) 100%);
}