/* Header logo Cerema */

.fr-header__operator .fr-responsive-img {
    width: 11rem;
}

/* Correction z-index sans quoi contenu de carte au-dessus du contenu du menu déroulant de la nav */
.fr-card--sm {
    z-index: auto;
}

/* Permet de fixer le bouton de choix de structure sur la droite de la nav */
@media all and (min-width: 992px) {
    #dropdown-nav-structure {
        margin-left:auto;
    }
}

/* Forcer le bouton de copie du token à être un bouton classique
malgré l'utilisation de fr-btn--tooltip */
#copy-token-btn {
    --hover: var(--background-action-high-blue-france-hover);
    --active: var(--background-action-high-blue-france-active);
    background-color: var(--background-action-high-blue-france);
    color: var(--text-inverted-blue-france);
    font-size: 1rem;
    line-height: 1.5rem;
    min-height: 2.5rem;
    padding: .5rem 1rem;
    width: fit-content;
    white-space: normal;
}

label.required::after {
    content: '  *';
    color: red;
}

/* logo cerema */
#logo-cerema {
    height: 5.625rem;
}
/* 
.fr-menu__list .fr-nav__link {
    white-space: pre-line;
} */

.float-right {
    float: right;
}

.float-left {
    float: left;
}

/* Détails d'une demande */
.conv-wrapper {
    display: flex;
}

.siret-input {
    width: 35%;
}

.shorten-input {
    width: 66%;
}

#perimetre-accordion {
    display: none;
}

#complement-donnees-wrapper {
    display: none;
}

#complement-perimetre-wrapper {
    display: none;
}

.flex-input {
    display: flex;
    flex-direction: row;
}

.btn-open-modal {
    display: none;
}

.center-wrapper {
    text-align: center;
}

.doc-btn-ul {
    min-width: 128px;
}

.ae-list li:not(:last-child) {
    margin-bottom: 10px;
}

/* Admin + dropdown menu */

.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    border: 1px solid #ddd;
    background: var(--background-default-grey);
    border-radius: 4px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: -2em;
}


.dropdown-item {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid var(--background-default-grey);
}

.dropdown-item:hover {
    background-color: var(--background-contrast-grey-hover);
}

.dropdown-item:last-child {
    border-bottom: none;
}


.img-eet {
    max-height: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}


/* SIDEMENU */

.sidemenu-user-context {
    background-color: var(--background-contrast-blue-france);
    border-radius: 4px;
    padding-left: 10px;
    padding-right: -4px;
}

/* DISABLED CARD */

.disabled-card {
    background-color: var(--background-default-grey-hover);
}

.disabled-card-txt {
    color: var(--text-disabled-grey)
}

.disabled-card-img {
    filter: grayscale(1);
}

.thick-navlink-border-shadow {
    box-shadow: inset 0 -4px 0 0 var(--background-action-high-blue-france);
    font-weight: bold;
}

/* Numéros d'étape dans téléchargement */
.number-title {
    width:2.5rem;
    height:2.5rem;
    border-radius:50%;
    background-color:var(--background-action-high-blue-france);
    color:var(--text-inverted-blue-france);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:1.25rem;
    font-weight:bold;
    position:relative;
    z-index:1
}

.flex-container {
    display: flex;
}

/* Démarquation dernière lignes tableau
recherche structure même SIREN */

.double-ligne-tbl {
  border-collapse: collapse;
}

.double-ligne-tbl tr:last-child td {
  border-top: 3px double #333;
}

.centered {
    text-align: center;
}

.no-decoration {
    text-decoration: none;
}

.communes-tooltip {
    text-decoration: underline;
    color: var(--text-mention-grey);
}
.carte-donnee-ouvir-lien {
    font-size: 1.25em;
    font-weight: bold;
}

/* ajustement du menu déroulant de la nav utilisateur */
.nav-item-relative {
    position: relative;
}

div.fr-col.align-right {
    text-align: right;
}

/* card download btn */
.card-dl-btn {
    padding-top: 4px;
    padding-bottom: 4px;
}

.card-ext-button {
    padding-left: 4px;
}

.nav-red-text {
    color: var(--text-label-red-marianne);
}

/* Gestion de l'affichage de l'alerte sur les formats simplifiés */

.format-alert { display: none; }
.format-selector:has(input[data-simplified="true"]:checked) .format-alert {
  display: block;
}

/* Gestion de l'affichage de composant de périmètre dans la modale de téléchargement */
#perimetre-all-content,
#perimetre-restricted-content { display: none; }

#perimetre-type-segmented:has(input[value="all"]:checked)
  ~ #perimetre-panels #perimetre-all-content,
#perimetre-type-segmented:has(input[value="restricted"]:checked)
  ~ #perimetre-panels #perimetre-restricted-content {
  display: block;
}

.data-info-wrapper {
    border: 1px solid var(--grey-900-175);
}
