


.ruban #etx-groupe .etx-btn {
  min-width: 28px;
  height: 28px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}
.ruban #etx-groupe .etx-i { font-style: italic; font-family: Georgia, serif; }
.ruban #etx-groupe .etx-s { text-decoration: underline; }

.ruban #etx-groupe .etx-btn.etx-actif {
  background: var(--accent-voile);
  border-color: var(--accent);
  color: var(--accent-fonce);
}

.ruban #etx-groupe .etx-teinte {
  width: 22px; height: 22px; padding: 0; margin: 2px;
  border: 1px solid var(--ligne); border-radius: 4px; cursor: pointer;
}
.ruban #etx-groupe .etx-teinte.etx-coche { outline: 2px solid var(--accent); }
.ruban #etx-groupe .etx-pastille {
  display: block; width: 16px; height: 16px;
  border: 1px solid var(--ligne); border-radius: 3px;
}

.ruban #etx-groupe .etx-menu[hidden] { display: none !important; }


body.bdb-menu-texte .ruban { z-index: 30; }


.ruban #etx-groupe .etx-menu-couleurs:not([hidden]) {
  min-width: 0; width: 178px; display: flex; flex-wrap: wrap;
}


.ruban #etx-groupe .etx-code-ligne {
  flex: 0 0 100%;
  display: flex; align-items: center; gap: 6px;
  margin: 4px 2px 2px;
  padding-top: 5px;
  border-top: 1px solid var(--ligne);
}
.ruban #etx-groupe .etx-code-titre { font-size: .74rem; opacity: .75; }
.ruban #etx-groupe .etx-code-champ {
  flex: 1 1 auto;
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--ligne);
  border-radius: 4px;
  background: var(--blanc-carte);
  color: var(--encre);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .8rem;
  letter-spacing: .5px;
  text-align: left;
  cursor: text;
}

.ruban #etx-groupe .etx-code-champ.etx-code-arme {
  border-color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.ruban #etx-groupe .etx-code-champ.etx-code-invalide {
  border-color: #c81e1e; color: #c81e1e;
}
.ruban #etx-groupe .etx-code-champ[disabled] { opacity: .45; cursor: default; }
.ruban #etx-groupe .etx-taille-btn { min-width: 58px; max-width: 58px; }
.ruban #etx-groupe .etx-taille-nom { font-size: .82rem; line-height: 18px; }
.ruban #etx-groupe .etx-couleur-btn { min-width: 34px; max-width: 34px; }
.ruban #etx-groupe .etx-opt-taille { font-size: .85rem; }
.ruban #etx-groupe .etx-menu:not(.etx-menu-couleurs).etx-menu-taille { min-width: 70px; }



.ruban #etx-groupe .etx-porte { position: relative; display: inline-block; }
.ruban #etx-groupe .etx-declencheur {
  
  min-width: 104px;
  max-width: 140px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--ligne);
  border-radius: 6px;
  background: var(--blanc-carte);
  font-size: .82rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.ruban #etx-groupe .etx-police-nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  
  line-height: 18px;
  max-height: 18px;
  font-size: 15px;
}
.ruban #etx-groupe .etx-chevron { font-size: .7rem; opacity: .6; }


.ruban #etx-groupe .etx-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  min-width: 190px;
  
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
  background: var(--blanc-carte);
  border: 1px solid var(--ligne);
  border-radius: 8px;
  box-shadow: var(--ombre);
}

.ruban #etx-groupe .etx-menu::-webkit-scrollbar { width: 10px; }
.ruban #etx-groupe .etx-menu::-webkit-scrollbar-thumb {
  background: var(--ligne); border-radius: 5px;
}
.ruban #etx-groupe .etx-menu::-webkit-scrollbar-track { background: transparent; }


.ruban #etx-groupe .etx-opt {
  display: block;
  width: 100%;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  line-height: 30px;
  font-size: 15px;
  padding: 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--encre);
  cursor: pointer;
  box-sizing: border-box;
}
.ruban #etx-groupe .etx-opt:hover { background: var(--papier-2); }
.ruban #etx-groupe .etx-opt.etx-coche {
  background: var(--accent-voile);
  color: var(--accent-fonce);
}


.ruban { flex-wrap: wrap; overflow-x: visible; }
