.ruban > .outils-creation {
  flex: none;
  margin: 0;
}
.ruban .outils-session {
  margin-left: auto;
}
.ruban .outils-scripts {
  margin-left: 0;
}
#repertoire {
  width: min(1340px, 98vw);
  height: min(880px, 95dvh);
  max-height: 96dvh;
  background: linear-gradient(118deg, #045713, #087f49);
  color: white;
  font:
    15px/1.25 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
#repertoire[open] {
  display: flex;
  flex-direction: column;
}
.rep-tete {
  position: static;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
}
.rep-groupe,
.rep-onglets {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #ffffff14;
  border-radius: 20px;
  padding: 3px;
}
#repertoire button {
  color: inherit;
  border: 0;
}
.rep-tete button,
.rep-onglets button,
.rep-icone {
  background: transparent;
  padding: 5px 11px;
}
#repertoire button:not(:disabled):hover,
.rep-onglets button[aria-pressed="true"] {
  background: #ffffff24;
}
.rep-onglets button {
  white-space: nowrap;
  border-radius: 16px;
}
.rep-contenu {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 22px 10px;
}
.rep-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: 16px;
  height: 100%;
  min-height: 630px;
}
.rep-principal,
.rep-lateral {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rep-colonnes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.rep-champ {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  gap: 6px;
  margin: 0 0 8px;
}
.rep-champ > span {
  flex: 0 0 94px;
  text-align: right;
  color: #ffffffd9;
}
.rep-colonnes > div:nth-child(2) .rep-champ > span {
  flex-basis: 132px;
}
#repertoire input:not([type="checkbox"]),
#repertoire textarea {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  border: 0;
  color: inherit;
  background: #ffffff1a;
  font: inherit;
  padding: 3px 8px;
  border-radius: 15px;
}
#repertoire textarea {
  resize: none;
  border-radius: 5px;
  height: 52px;
}
#repertoire input.rep-court {
  max-width: 80px;
}
.rep-ligne {
  display: flex;
  gap: 5px;
  align-items: baseline;
}
.rep-ligne > .rep-champ:has(.rep-court) {
  flex: 0 1 auto;
}
.rep-ligne > .rep-champ:not(:first-child) > span {
  flex-basis: auto;
}
.rep-ligne > .rep-sans-libelle {
  flex: 1;
}
.rep-case {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.rep-case input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #57a980;
}
.rep-case input:disabled {
  opacity: 0.84;
}
.rep-icone {
  display: inline-grid;
  place-items: center;
}
.rep-ligne .rep-icone,
.rep-lateral h3 .rep-icone {
  padding: 3px 6px;
}
.rep-champ.rep-sans-libelle > span {
  display: none;
}
#repertoire h3 {
  font-size: 15px;
  margin: 2px 0 0;
  color: inherit;
}
.rep-encadre {
  background: #ffffff1a;
  border: 1px solid #ffffff25;
  border-radius: 6px;
  padding: 10px;
}
.rep-notes {
  flex: 1;
  min-height: 96px;
}
.rep-notes label,
#repertoire .rep-notes textarea {
  height: 100%;
  margin: 0;
}
.rep-infos {
  min-height: 170px;
}
.rep-infos > strong {
  display: inline-block;
  border-bottom: 2px solid white;
  margin: 0 0 10px;
  padding: 2px 4px;
}
.rep-types {
  flex: 1;
  min-height: 140px;
  overflow: auto;
}
.rep-types label {
  padding: 4px 6px;
  border-radius: 3px;
}
.rep-contacts {
  height: 130px;
  overflow: auto;
}
.rep-contacts:not(:has(button)),
.rep-photo {
  display: grid;
  align-content: center;
  justify-items: center;
  color: #ffffffaf;
  text-align: center;
}
.rep-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  width: 100%;
  text-align: left;
  text-decoration: none;
  border-radius: 3px;
  padding: 4px 6px;
}
@media (hover: hover) {
  #repertoire .rep-contacts .rep-contact:hover,
  .rep-types label:hover {
    background: #ffffff14;
  }
  #repertoire .rep-contacts .rep-contact:hover {
    scale: none;
  }
}
.rep-lateral h3:has(button) {
  display: flex;
  align-items: center;
}
.rep-lateral h3 button:first-child {
  margin-left: auto;
}
.rep-photo {
  height: 144px;
  gap: 8px;
  border-style: dashed;
}
.rep-photo img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.rep-photo .sfs {
  font-size: 25px;
}
.rep-pied {
  border: 0;
  background: transparent;
  min-height: 25px;
  padding: 3px 16px 8px;
  justify-content: flex-end;
  font-size: 13px;
}
.rep-description {
  min-height: 55vh;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.rep-commentaire {
  min-height: 92px;
  white-space: pre-wrap;
}
.rep-liste {
  overflow: auto;
  margin-top: 10px;
}
.rep-liste p {
  text-align: center;
}
.rep-liste th {
  background: #135d36;
}
.rep-liste td,
.rep-liste th {
  padding: 4px 8px;
}
.rep-liste table {
  table-layout: fixed;
}
.rep-liste :is(th, td) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .rep-grille {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
  .rep-champ > span,
  .rep-colonnes > div:nth-child(2) .rep-champ > span {
    flex-basis: auto;
  }
}
@media (max-width: 850px) {
  .rep-tete {
    flex-wrap: wrap;
  }
  .rep-tete > .rep-onglets {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .rep-grille {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
  }
  .rep-lateral {
    display: grid;
    grid-template-columns: 1fr;
  }
  .rep-notes {
    min-height: 100px;
  }
  .rep-types {
    max-height: 210px;
  }
}
@media (max-width: 620px) {
  .rep-contenu {
    padding: 12px;
  }
  .rep-colonnes {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .rep-champ > span,
  .rep-colonnes > div:nth-child(2) .rep-champ > span {
    flex: 0 0 78px;
  }
  .rep-colonnes > div:nth-child(2) .rep-champ > span {
    flex-basis: 110px;
  }
}

.rep-groupe .sfs-sauver {
  width: 22px;
  height: 20px;
  background: currentColor;
  mask: url("/assets/sauver.png") center/contain no-repeat;
}
.rep-mdp {
  background: #ffffff12;
  margin: 0 0 8px 98px;
  padding: 4px 8px;
}
.rep-meta {
  background: #165d36;
  color: white;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.6;
}
.rep-liste tr[tabindex] {
  cursor: pointer;
}
@media (min-width: 701px) and (max-width: 1000px) {
  .ruban .outils {
    min-width: 0;
    overflow: auto;
    justify-content: flex-start;
  }
}

/* Le ruban garde la teinte du module sous ses contrôles translucides. */
.criteres select {
  appearance: none;
  padding-inline: 12px 40px;
  color-scheme: dark;
  background-color: rgb(255 255 255 / 19%);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 52%,
    calc(100% - 13px) 52%;
  background-size: 4px 4px;
  background-repeat: no-repeat;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 #ffffff36,
    0 3px 7px #0003;
}
.criteres select option {
  background: var(--gauche);
  color: white;
}
@supports (appearance: base-select) and selector(::picker(select)) {
  .criteres select,
  .criteres select::picker(select) {
    appearance: base-select;
  }
  .criteres select {
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
  }
  .criteres select::picker-icon {
    display: none;
  }
  .criteres select::picker(select) {
    margin-block: 4px;
    padding: 4px;
    color: white;
    background: color-mix(in srgb, var(--gauche) 90%, transparent);
    backdrop-filter: blur(14px);
    border: 1px solid #ffffff38;
    border-radius: 10px;
    box-shadow: 0 5px 16px #0004;
  }
  .criteres select option {
    padding: 4px 12px;
    background: transparent;
    border-radius: 6px;
  }
  .criteres select option:is(:hover, :focus-visible, :checked) {
    background: #ffffff29;
  }
}
#secondaires button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--gauche) 73%, white),
    color-mix(in srgb, var(--droite) 88%, white)
  );
}
#secondaires button[aria-current] {
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--gauche) 62%, white),
    color-mix(in srgb, var(--droite) 76%, white)
  );
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  button:not(:disabled),
  .outil-societe:not(:has(select:disabled)) {
    transition: scale 0.13s ease;
  }
  button:not(:disabled):hover,
  .outil-societe:not(:has(select:disabled)):hover {
    scale: 1.035;
  }
}
#onglets,
.rep-onglets,
.rep-tete > .rep-onglets {
  min-width: 0;
  max-width: 100%;
  overflow: clip;
  flex-wrap: nowrap;
}
#onglets > button,
.rep-onglets > button,
wd-autres-onglets {
  flex: none;
}
wd-autres-onglets {
  display: inline-flex;
  margin-left: auto;
}
#onglets wd-autres-onglets > button,
:is(.rep-onglets,.prod-onglets) wd-autres-onglets > button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  color: inherit;
}
.menu-onglets {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  color: white;
  background: #31383cf5;
  border: 1px solid #ffffff34;
  border-radius: 9px;
  box-shadow: 0 6px 20px #0005;
  max-height: 65dvh;
  overflow: auto;
  min-width: 145px;
}
#onglets .menu-onglets button,
:is(#repertoire,#produit) .menu-onglets button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: transparent;
}
#onglets .menu-onglets button:is(:hover, :focus),
:is(#repertoire,#produit) .menu-onglets button:is(:hover, :focus) {
  background: #ffffff24;
}
