/* TO DELETE */
.square {
  border: 1px solid black;
  margin: 10px;
}


.admin-menu {
  background-color: rgb(var(--arriere-plan),.5);
  padding: 3rem 0;
  width: calc(100vw);
  margin-left: calc(-50vw + 50%);
}
.admin-menu .gris > div {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  align-items: center;
  justify-content: left;
  margin-left: auto;
  margin-right: auto;
}
.admin-menu > h1 {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 0;
  font-weight: bold;
}
.gris h3 {
  margin-top: 0px;
  text-align: left;
  font-weight: bold;
}

.admin-grafana,
.admin-matomo {
  padding: 0px;
  margin-top: 25px;
  height: 645px;
  width: calc(100vw);
  margin-left: calc(-50vw + 50%);
}

.admin-grafana > iframe,
.admin-matomo > iframe {
  width: calc(100% - 100px);
  margin-left: 50px;
  height: 100%;
  border: 1px solid lightgrey;
  background: white;
}

/* Button menu */
.gris > div {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    align-items: center;
    justify-content: left;
    margin-left: auto;
    margin-right: auto;
}
.gris a > img {
  max-width: 100%;
  height: auto;
  width: 39%;
  margin-bottom: 0.75rem;
  padding: 5px;
}
.gris a {
  background: rgb(var(--arriere-plan));
  width: 106.25px;
  height: 106.25px;
  line-height: 1.05rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  text-decoration: none !important;
  color: rgb(var(--texte)) !important;
  margin-bottom: .62rem;
}
.gris a.button-lvl1 {
  background-color: rgb(var(--blanc));
  width: 229px;
  height: 135.25px;
  border: 1px solid lightgrey;
  line-height: 14px !important;
}
.gris a.button-lvl1 > span {
  font-size: 13px !important;
}
.gris a.button-lvl2 {
  background-color: rgb(var(--arriere-plan));
  width: 161.375px;
  height: 106.25px;
  float: left;
}
.gris div.vertical-lvl2 {
  border-left: 2px solid rgb(var(--arriere-plan));
  height: 13rem;
  margin: 0rem 21.75px .62rem;
}
.gris .categorie-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 3rem 0 0;
  align-items: stretch;
}
.gris .categorie {
  border: 1px solid lightgrey;
  padding: 8px 12px;
  border-radius: 3px;
}
.gris .categorie > div {
  height: 106.25px;
  width: 100%;
}
.gris .categorie > div > a:not(:nth-child(1)) {
  margin-left: 9px;
}
.gris a > span {
  font-size: .95rem;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
}
.gris a:hover {
  background-color: rgb(var(--accents));
}
.gris a.button-lvl1:hover {
  background-color: rgb(var(--accents));
}
.gris div.buttons {
  display: block;
  align-items: center;
  justify-content: space-between;
  margin-left: auto;
  margin-top: auto;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

/* Plus d'options */
.admin-menu-other-options {
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  width: 100%;
}
.admin-menu-other-options > summary {
  padding: 0 0 0 1.75rem;
  font-size: 13px;
  align-items: center;
}
.admin-menu-other-options > summary::before {
  content: "\f067";
  font-family: 'FontAwesome';
  left: .15rem;
}
.admin-menu-other-options > div {
  padding: 1rem 0 0 .15rem;
  gap: 0 .62rem;
}

/* Admin list */
table.admin-list {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}
table.admin-list td, table.admin-list th {
  padding: 5px 4px;
}
table.admin-list tbody td {
  font-size: 13px;
}
table.admin-list thead {
  background: #CFCFCF;
  background: -moz-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
  background: -webkit-linear-gradient(top, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
  background: linear-gradient(to bottom, #dbdbdb 0%, #d3d3d3 66%, #CFCFCF 100%);
}
table.admin-list thead th {
  font-size: 15px;
  font-weight: bold;
  color: #000000;
  text-align: left;
}
table.admin-list tfoot td {
  font-size: 14px;
}

table.logs-list {
  display: block;
  height: 620px;
  overflow-x: auto;
}

/* Flex */
.flex-container {
  display: flex;
}

.flex {
  flex: 1;
}

.menu-tools {
  width: 120px !important;
}

#co-menu > .flex > .gris {
  width: fit-content !important;
}

/* Observatoire management */
#edit-obs {
  position: relative;
}
#edit-obs > #edit-activite > .activite-ok, .obs-active {
  font-weight: bold;
  font-size: 16px;
  margin: 3rem 100px 3rem 0;
  color: #0FB50C;
  line-height: 32px;
}
#edit-obs > #edit-activite > .activite-danger, .obs-inactive {
  font-weight: bold;
  font-size: 16px;
  margin: 3rem 100px 3rem 0;
  color: #ff0000;
  line-height: 32px;
}
#edit-obs > #edit-deactivate, #edit-obs > #edit-activate {
  position: absolute;
  top: 0;
  right: 0;
}
#edit-obs > #edit-submit {
  margin: 3rem auto;
  display: block;
}
.tabs-obs {display: flex;}
.tabs-obs-header, .tabs-obs-footer {width: 50%;}

/*Gestion d'intégration*/
.flex-row {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 2rem;
}
.flex-row > span {
  font-weight: bold;
  width: 16rem;
}
.flex-row > div {
  display: flex;
  align-items: center;
  width: calc(100% - 18rem);
  gap: 10px 2rem;
}
.flex-row > div > span {
  width: calc(100% - 175px);
  word-break: break-all;
}

table.admin-list td:last-child {min-width: 177px;}
@media screen and (max-width: 768px) {
  .gris {
      width: 100%;
      padding: 0 15px;
  }
  .flex-row > div {
      flex-direction: column;
      align-items: flex-start;
  }
  .flex-row > div > span {
      width: 100%;
  }
  .gris .categorie {
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  .gris {
      width: 737.5px;
      margin: 0 auto;
  }
  .gris .categorie {
    width: calc(50% - 10px);
  }
}

.admin-ro-menu-links {
  margin: 10px;
}

.btn-visu {
  margin: 8px;
}

.select-metadata .input-group {
  width: 100%;
}

.select-metadata .select-wrapper {
  width: 100%;
}

.api-try-response {
  margin: 10px;
  max-height: 600px;
}