﻿/*the container must be positioned relative:*/
.autocomplete {
    position: relative;
    display: inline-block;
    /* margin-top: 10px;*/
    margin-left: 10px;
}

.autocomplete-items {
    color: #212529;
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    overflow-y: auto;
    max-height: 200px;
    width: 100%;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        border-bottom: 1px solid #d4d4d4;
        font-size: 12px;
    }

        /*when hovering an item:*/
        .autocomplete-items div:hover {
            background-color: #e9e9e9;
        }

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
    background-color: DodgerBlue !important;
    color: #ffffff;
}

.autocompleteSelection {
    margin-right: 10px;
}

.actionIcon {
    font-size: 13px;
    cursor: pointer;
}

.informationSeuil {
    vertical-align: super;
    font-size: 16px;
    cursor: pointer;
    margin-left: -5px;
    color: #bfbebe;
}

.selectrapport {
    color: rgb(51, 51, 51);
    border-bottom: 2px solid #a3a0a0;
}

.unselectrapport {
    color: #bfbebe !important;
}

    .unselectrapport:hover {
        color: rgb(51, 51, 51) !important;
    }

.headerRapportContent {
    display: table-row;
    width: 100%;
    text-align: center;
}

.tableauRapport{
    /*overflow-y: auto;*/
    padding: 0.5rem;
}

@media print {
    #containerToogleModuleRubrique, #btnExporter, #btnImprimer, #btnGestionFavoris, .container-recherche-rubrique, .main-header, .main-sidebar, .fa-caret-down, .btn-rapport {
        display: none;
    }
}

.rubriqueSelection {
    width: auto;
    position: relative;
    display: flex;
    padding-left: 0;
    padding-top: 2px;
    padding-bottom: 0px;
    margin-right: 5px;
    margin-left: 1.5rem;   
    /* border-bottom: 1px solid #d4d4d4;*/
    flex-wrap: wrap;
}

#rubriqueSelectionTitle:hover {
    text-decoration:underline;
}
.container-recherche-rubrique {
    border-bottom: 1px solid #d4d4d4;
    margin: 0rem 1.5rem;
    
}
    .container-recherche-rubrique:hover {
        border-bottom: 1px solid rgba(0, 0, 0, 0.42);
    }

.recherche-rubrique::after {
    content:none;
}

#grille-seuils {
    display: grid;
    row-gap: 10px;
}

/* Liste des seuils dans la modale d'information */
.seuil-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 8px;
    row-gap: 2px;
    padding: 7px 2px;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #343a40;
    border-bottom: 1px solid #f0f0f0;
}

    .seuil-item:last-child {
        border-bottom: 0;
    }

.seuil-puce {
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.seuil-libelle {
    font-weight: 500;
}

.seuil-valeur {
    font-weight: 700;
    white-space: nowrap;
}

.seuil-description {
    flex-basis: 100%;
    padding-left: 19px;
    font-size: 0.8rem;
    color: #6c757d;
}

#popup_afficher_description_seuils .popup-body {
    padding: 10px;
    overflow-y: auto;
}

/* ---- Modale d'information : statistiques de la courbe ---- */
#modalSeuilsInfo .modal-header {
    align-items: flex-start;
}

.modal-title-wrapper {
    flex: 1;
    min-width: 0;
}

    .modal-title-wrapper .modal-title {
        line-height: 1.25;
    }

.modal-info-subtitle {
    font-size: 0.78rem;
    color: #6c757d;
    margin-top: 2px;
    font-weight: 400;
}

.info-courbe-section {
    margin-bottom: 1rem;
}

    .info-courbe-section + .info-courbe-section {
        padding-top: 0.75rem;
        margin-top: 0.25rem;
        border-top: 1px solid #e9ecef;
    }

.info-courbe-titre {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    margin-bottom: 0.4rem;
}

.info-courbe-vide {
    color: #6c757d;
    font-style: italic;
}

.grille-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0.6rem;
}

.stat-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-top: 3px solid #2C85B5;
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
}

.stat-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

    .stat-card-label i {
        font-size: 0.65rem;
        margin-right: 3px;
        opacity: 0.7;
    }

.stat-card-valeur {
    font-size: 1.05rem;
    font-weight: 700;
    color: #343a40;
    line-height: 1.3;
    white-space: nowrap;
}

.stat-card-date {
    font-size: 0.7rem;
    color: #868e96;
}

.stats-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.stats-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 3px 11px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #495057;
}

    .stats-chip i {
        font-size: 0.7rem;
        color: #6c757d;
        opacity: 0.8;
    }

.stats-chip-label {
    color: #6c757d;
}

.stats-chip-valeur {
    font-weight: 700;
    color: #343a40;
}

.stats-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 0.82rem;
    color: #495057;
}

    .stats-extra .stats-extra-label {
        color: #6c757d;
    }

    .stats-extra .stats-extra-icon {
        font-size: 0.72rem;
        color: #6c757d;
        opacity: 0.8;
        margin-right: 5px;
    }

.supervision:hover {
    cursor:pointer
}
    

.select-param-rapport {
    /*display: inline-block;
    width: auto;*/
    font-size: 12px;
    /*margin-left: 8px;*/
    margin-bottom: 8px;
    /*float: right;*/
}


.select-profondeur {
    width: 100%;
    height: 20rem !important;
    border:0;
}

    .select-profondeur > option:checked {
        background-color: #007bff;
        color: #fff;
    }

.btn-select-profondeur {
    width: 90%;
    padding: 5px;
    margin: 7px 7px -1px 7px;
}

.dropdown_menuPrevi {
    width: 45px;
    display: inline-block;
    font-size: .75rem;
}

.dropdown_menuPrevi > button {
    width: 45px;
}

    .dropdown_menuPrevi .dropdown-menu {
        min-width: 45px;
    }

    .dropdown_menuPrevi .dropdown-item {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

.previ-offset > i {
    color: lightgray;
    font-size: 1.1rem;
}

.selected-previ-offset > i {
    color: #7ac142 !important;
}

@media print {
    @page {
        size: A4 landscape;
    }
    #pageContent {
        margin-right: 0px !important;
        margin-left: 0px !important;
    }
    .contenuGraphique {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* 1. conteneur-scène */
#headerRapport {
    min-height: 50px;
}

/* 2. bloc période parfaitement centré */
#zonePeriode {
    /*position: absolute;
    left: 50%;
    top: 50%;*/ /* centrage vertical facultatif */
    /*transform: translate(-50%, -50%);*/
}

/* 3. outils à droite */
#divRapportTools {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index:1;
}

/* 4. mode < md : tout repasse en flux, plus de risque de collision */
@media (max-width:986px) {
    #zonePeriode,
    #divRapportTools {
        position: static;
        transform: none;
    }

    #divRapportTools {
        margin-left: auto;
        margin-top: .5rem;
    }
}