﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('spinner.css');
@import url('tooltip.css');
/*
@media only screen and (max-width : 320px) {
    .blazored-modal-content {
        max-width: 80vw;
    }
}

@media only screen and (min-width : 1224px) {
    .blazored-modal-content {
        max-width: 70vw;
    }
}

@media only screen and (min-width : 1824px) {
    .blazored-modal-content {
        max-width: 60vw;
    }
}*/

@media only screen and (max-width : 320px) {
    .blazored-modal-content {
        max-width: 100vw !important; /* Augmenté de 80vw à 100vw */
    }
}

@media only screen and (min-width : 1224px) {
    .blazored-modal-content {
        max-width: 84vw !important; /* Augmenté de 70vw à 84vw */
    }
}

@media only screen and (min-width : 1824px) {
    .blazored-modal-content {
        max-width: 72vw !important; /* Augmenté de 60vw à 72vw */
    }
}


/*Surcharge BlazoredModal pour cohabité avec AdminLTE*/
.blazored-modal-container{
    z-index: 2000 !important;
}
/*Fin surcharge*/

.detailslabelfield {
    width: 200px;
}


.detailsvaluefield {
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}


.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}


.content {
    padding-top: 1.1rem;
    width: 98%;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgb(0 0 0 / 20%);
     display: none;  
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: absolute;
    left: 55%;
    bottom: 6px;
    right: 5px; 
    z-index: 10000;
    border: 1px solid #a59a9a;
    border-radius: 5px;
}

 

/*@media (min-width: 768px) body:not(.sidebar-mini-md) .content-wrapper, body:not(.sidebar-mini-md) .main-footer, body:not(.sidebar-mini-md) .main-header  {
    #blazor-error-ui {
        transition: margin-left 0.3s ease-in-out;
        margin-left: 250px;
        width: calc(100% - 250px);
    }
}*/

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.l-float {
    float: left;
}

.r-float {
    float: right;
    top: calc(2.875rem + 2px);
}

i.v-center {
    line-height: calc(1rem + 5px);
}

.small-input {
    width: 50px;
}

.small-plus-input {
    width: 75px;
}

.light-font {
    font-weight: 300;
}

.btn2 {
    background-color: cornflowerblue !important;
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 4px 16px; /* Some padding */
    font-size: 16px; /* Set a font size */
    cursor: pointer; /* Mouse pointer on hover */
}

.bottom-zone {
    position: fixed !important;
    right: 0 !important;
    bottom: 57px !important;
    left: 0 !important;
    z-index: 1030 !important;
    transition: margin-left 0.3s ease-in-out;
    margin-left: 250px;
}

.field-model-l {
    width: 100%;
}

.field-model-xl {
    width: 100%;
    height: 60px;
}

.btn.btn-solidtop {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
}

.selectedtree {
    border-radius: 5px;
    background-color: #ffe282;
}

.nav-link:hover {
    cursor: pointer;
}

.btn-transferablelists {
    max-width: 80px;
    min-width: 10px !important;
    width: 100%;
}

.transferableList {
    width: 100%;
    border: solid 1px #ddd;
    border-radius: 5px;
    background-color: white;
}

.row-h-align {
    display: flex;
    justify-content: center;
}

.no-wrap {
    white-space: nowrap;
}

body {
    height: 100%;
    margin: 0;
}

.fullscreen {
    height: calc(100vh - calc(3.5rem + 1px) - calc(3.5rem + 1px)) !important;
}

.btn-tab {
    border-top: 1px solid #ddd;
}

.active-tab {
    border-right: 1px solid #ddd !important;
    border-left: 1px solid #ddd !important;
    border-bottom: 2px solid #ffe282 !important;
    border-top: none !important;
}

.small-icon {
    width: 24px;
    height: 24px;
}

.small-dark-btn {
    background-color: #343a40;
    width: 20px;
}

.grp-active {
    background-color: #ffe282;
}

.config-nav {
    cursor: pointer;
    font-size: 1.5em;
    font-variant: small-caps;
    color: #7d7d7d;
}

    .config-nav.active {
        color: black;
    }

.smallcaps {
    font-variant: small-caps;
}

.warningbanner {
    position: absolute;
    bottom: 60px;
    margin-left: 10px;
    margin-bottom: 10px;
    z-index: 5000;
}

.close {
    position: absolute;
    right: 5px;
}

.status-ico {
    height: 50px;
    width: 100px;
    padding: 7px;
    border-radius: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-ico-xs {
    height: 27px;
    width: 27px;
    padding: 4px;
    border-radius: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RightSideBar Détail produit */
.rsidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10;
    top: 0;
    right: 0;
    overflow-x: hidden;
    transition: 0.5s;
    margin-top: 60px;
    /*    padding-bottom: 57px;*/
}

   

    .rsidebar .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
    }

    .rsidebar.open {
        width: 390px;
        margin-right: 0px;
        border-left: 1px solid #dee2e6;
    }

    .rsidebar.close {
        width: 0px;
        margin-right: -420px;
        border-left: none;
    }

.prd-card {
    border: none !important;
    width: 100%;
    border-radius: 0px;
    margin: 0;
}
/* Fin RightSideBar */

.error-alarm {
    color: red;
    font-size: 0.9em;
}

.prd-detail-title {
    font-weight: 600;
    font-variant: small-caps;
}

.pointer {
    cursor: pointer;
}

.drpicker {
    background: #fff;
    cursor: pointer;
    padding: 5px 10px;
    width: 250px;
    border: 1px solid #ced4da;
    border-left: none;
}

.placeholder-like {
    opacity: 0.7;
    color: #495057 !important;
}

.login-title {
    font-variant: small-caps;
    font-size: 1.8em;
}

.hide {
    display: none;
}

.display-tick:hover .hide {
    display: block !important;
}

.tick-selected {
    display: block !important;
}

.input-ip {
    width: 100%;
}

.input-nostep {
    -moz-appearance: textfield;
}

.sort-prod-ipcfg {
    cursor: pointer;
}

.valign-ipcfg {
    vertical-align: middle !important;
}

.display-prd-ipcfg {
    max-height: 300px;
    overflow: auto;
}

.table-border-ipcfg {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.unreachable-product {
    color: #ffaa2a;
}

.produit-card {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.selected-element {
    background-color: rgba(0,0,0,.1) !important;
}

.unread-notif {
    font-weight: bold;
}

.table-nowrap-div {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.table-nowrap {
    table-layout: fixed;
}

.icon-container-w25{
    width:25px;
}

/*Style pour les graphs*/
.graphcnter {
    position: relative;
}

    .graphcnter canvas {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }
/*Fin style pour les graphs*/


@media (prefers-reduce-motion : reduce) {
    .blazcollapse-content {
        transition: none !important;
    }
}

@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
    .bottom-zone {
        transition: none;
    }
}

@media (min-width: 768px) {
    .main-footer {
        transition: margin-left 0.3s ease-in-out;
        margin-left: 250px;
    }

    .sidebar-collapse .bottom-zone {
        margin-left: 4.6rem;
    }
}

@media (max-width: 540px) {
    .small-infobox {
        min-height: 60px !important;
    }
}

@media (max-width: 768px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .bottom-zone {
        margin-left: 0;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .info-nav {
        display: none !important;
    }

    .table-sm-sm th,
    .table-sm-sm td {
        padding: 0.3rem;
    }

    .table-sm-nowrap {
        table-layout: fixed;
    }

    .table-sm-nowrap-div {
        width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .linemode-coche {
        width: 20px !important;
    }

    .display-prd-ipcfg {
        max-height: 175px;
        overflow: auto;
    }

    .dropdown-menu-full-right
    {
        right:0 !important;
        left:-50px !important;
    }

    .hide {
        display: block;
    }

    /*Class for the line display of the product (main page)*/
    .linemode-responsive {
        display: none;
    }
    /*End line display*/
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .elevation-sm-4 {
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22) !important;
    }
}

/*Surcharge AdminLTE*/
.simple-collapse {
    border: none;
    padding: 0 0;
}

.collapse-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

.dropdown-item:active {
    outline: none;
}

/*Surcharge BlazoredToast*/
.blazored-toast-container {
    z-index: 9999 !important;
}

/*Animation*/
.icon-toggler {
    transition: -webkit-transform ease-in-out 0.3s;
    transition: transform ease-in-out 0.3s;
    transition: transform ease-in-out 0.3s, -webkit-transform ease-in-out 0.3s;
}

    .icon-toggler.open-b {
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }

    .icon-toggler.open-t {
        -webkit-transform: rotate(-90deg);
        transform: rotate(-90deg);
    }

    .icon-toggler.open-r {
        -webkit-transform: rotate(-180deg);
        transform: rotate(-180deg);
    }

    .icon-toggler.open-l {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }


.mycluster {
    background-color: pink !important;
    /*border: solid 2px white !important;*/
    border-radius: 50% !important;
    color: black !important;
    line-height: 40px; /*Assurez-vous que cette valeur est la même que la hauteur de votre icône*/
    text-align: center;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    display: none;
    position: absolute !important;
    z-index: 1;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    overflow: auto !important;
    /* background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0);*/
    background-color: rgba(0,0,0,0.1);
    width: 100% !important;
    /*height: 80% !important;*/
    box-sizing: border-box !important;
}

    .modal.show {
        display: block;
    }

/* Styles pour les écrans de taille moyenne */
@media screen and (max-width: 768px) {
    .modal {
        width: 90%; /* Largeur plus grande pour les petits écrans */
        padding: 10px; /* Espacement intérieur plus petit pour les petits écrans */
    }
}

/* Styles pour les petits écrans */
@media screen and (max-width: 480px) {
    .modal {
        width: 100%; /* Utiliser toute la largeur de l'écran pour les très petits écrans */
        padding: 5px; /* Espacement intérieur minimal pour les très petits écrans */
    }
}

/*.table-responsive {
    overflow: hidden;
    overflow-x: auto;
    min-height: 0.01%;
}

#savedViews {
    width: 100%;
    border-collapse: collapse;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    position: absolute;
    bottom: -4%;
    z-index: 1000;
    background-color: white;
    cursor: move;
    top: auto !important;
    left: auto !important;
}

    #savedViews th, #savedViews td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    #savedViews tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    #savedViews tr:hover {
        background-color: #ddd;
        cursor: pointer;
    }

    #savedViews th:nth-child(1),
    #savedViews th:nth-child(2),
    #savedViews th:nth-child(3),
    #savedViews th:nth-child(4) {
        width: 20%;
    }

    #savedViews td:nth-child(4) {
        overflow-x: auto;
        white-space: nowrap;
    }*/

/*   #savedViews col:nth-child(4) {
        display: none !important;
    }
*/
/*.no-header {
    visibility: hidden !important;
}

#savedViews.show {
    transform: translateY(0);
    opacity: 1;
}*/

/* Pour les petits écrans */
/*@media screen and (max-width: 600px) {
    #savedViews th, #savedViews td {
        font-size: 0.8em;
    }

    #savedViews {
        overflow-x: auto;
    }
}*/

/* Pour les grands écrans */
/*@media screen and (min-width: 601px) {
    #savedViews th, #savedViews td {
        font-size: 1em;
    }
}*/
.d-flex.flex-wrap.mx-n2.px-2.flex-column {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/*#map.collapsed {
    height: 50vh;  Hauteur lorsque la carte est réduite 
}

#map.expanded {
    height: 100vh;  Hauteur lorsque la carte est agrandie 
}*/

.table-responsive {
    overflow: hidden;
    overflow-x: auto;
    min-height: 0.01%;
}

#savedViews {
    margin-bottom: 1px;
    width: 100%;
    border-collapse: collapse;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    position: absolute;
    bottom: 0; /* Positionne la base du tableau à la base de la carte */
    z-index: 1000; /* Assure que le tableau s'affiche au-dessus de la carte */
    background-color: white;
    cursor: move;
}

    #savedViews th, #savedViews td {
        border: 1px solid #ddd;
        padding: 8px;
    }

    #savedViews tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    #savedViews tr:hover {
        background-color: #ddd;
        cursor: pointer;
    }

    #savedViews th:nth-child(1),
    #savedViews th:nth-child(2),
    #savedViews th:nth-child(3),
    #savedViews th:nth-child(4) {
        width: 20%;
    }

    #savedViews td:nth-child(4) {
        overflow-x: auto;
        white-space: nowrap;
    }

.no-header {
    visibility: hidden !important;
}

#savedViews.show {
    transform: translateY(0);
    opacity: 1;
}

/* Pour les petits écrans */
@media screen and (max-width: 600px) {
    #savedViews th, #savedViews td {
        font-size: 0.8em;
    }

    #savedViews {
        overflow-x: auto;
    }
}

/* Pour les grands écrans */
@media screen and (min-width: 601px) {
    #savedViews th, #savedViews td {
        font-size: 1em;
    }
}

/*///////////*/
.confirm-dialog {
    display: none;
    position: fixed;
    z-index: 1000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    font-family: Arial, sans-serif; /* Utilisez une police sans serif pour un look moderne */
}

.dialog-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 70%;
    border-radius: 10px; /* Ajoutez un bord arrondi pour un look doux */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* Ajoutez une ombre pour un effet de profondeur */
}

/* Utilisez une media query pour ajuster la largeur de la fenêtre de dialogue pour les grands écrans */
@media (min-width: 768px) {
    .dialog-content {
        width: 30%; /* Utilisez une largeur plus petite pour les grands écrans */
    }
}

#confirmYes {
    background-color: #4CAF50; /* Vert pour "Oui" */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

#confirmNo {
    background-color: #f44336; /* Rouge pour "Non" */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 10px;
}

#confirmYes:hover, #confirmNo:hover {
        opacity: 0.8; /* Ajoutez un effet de survol pour une meilleure interactivité */
    }

.rsidebar {
    z-index: 1041 !important;
    /* 1040 is z-index is used by the maximize data-card-widget */
}

.bm-container {
    z-index: 1400 !important;
}

.marker-cluster div {
    width: 40px;
    height: 40px;
    background-color: rgba(40, 167, 69, 0.9); /* 60% opacity #28a745*/
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.marker-cluster.selected div {
    /*box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.9);*/
    box-shadow: 0 0 10px 5px rgb(0, 148, 255, 0.9); /* Blue shadow */
}



.leaflet-control-command button {
    background-color: #f8f9fa;
    color: #343a40;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

/*Modal Map*/
/* Pour les écrans plus grands que 1200px */
@media (min-width: 1200px) {
    .blazored-modal.size-large {
        width: 850px !important;
    }
}

/* Pour les écrans plus petits que 1200px */
@media (max-width: 1199px) {
    .blazored-modal.size-large {
        width: 100% !important;
    }
}



