#versions-thesaurus .version-accordion {
  font-family: sans-serif;
  font-size: 14px;
}

#versions-thesaurus .version-accordion + .version-accordion {
  border-top: none;
}

#versions-thesaurus .version-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  min-height: 30px;
  background: #fff;
  border-bottom: 2px solid #77777783;
}

#versions-thesaurus .version-accordion-title {
  font-size: 13px;
  color: #222;
}

#versions-thesaurus .version-accordion-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

#versions-thesaurus .version-edition-title button {
  box-shadow: none !important;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 2px 4px;
  font-size: 16px;
}

#versions-thesaurus .version-edition-title button.version-button-save {
  color: green;
}

#versions-thesaurus .version-edition-title button.version-button-cancel {
  color: red;
}

#versions-thesaurus .version-accordion-actions button {
  box-shadow: none !important;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 2px 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
}

#versions-thesaurus .version-accordion-actions button:hover {
  color: #222;
}

#versions-thesaurus .version-accordion-trigger {
  width: 28px;
  height: 28px;
  background: #77777783 !important;
  border-radius: 3px !important;
  color: white !important;
  justify-content: center;
}

#versions-thesaurus .version-accordion-badge {
  color: #77777783 !important;
}

#versions-thesaurus .version-accordion-icon::before {
  font-family: 'FontAwesome';
  content: "\f105";
  font-size: 18px;
  line-height: 1;
}

#versions-thesaurus .version-accordion-trigger[aria-expanded="true"] .version-accordion-icon::before {
  content: "\f107";
}

#versions-thesaurus .version-accordion-panel {
  border: 1px solid #ccc;
  border-top: none;
  padding: 12px 16px;
  background: #f5f5f58a;
}

#versions-thesaurus .sub-version {
  margin-top: 8px;
  margin-bottom: 12px;
}

#versions-thesaurus .sub-version:not(:empty) {
  border-top: 1px solid #ccc;
}

#versions-thesaurus .sub-version > .version-accordion {
  margin-top: 8px;
}

#versions-thesaurus .version-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

#versions-thesaurus .modal {
  width: 80vw;
  max-width: 1200px;
}

#versions-thesaurus .modal h2.modal-title {
  text-wrap: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: 90%;
}

#versions-thesaurus .modal .modal-header {
  position: sticky;
  top: 0;
  background: white;
}

#versions-thesaurus .changelog-table thead tr {
  position: sticky;
  top: 75px;
}

#versions-thesaurus .changelog-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

#versions-thesaurus .changelog-table th,
#versions-thesaurus .changelog-table td {
  overflow: hidden;
  word-wrap: break-word;
  vertical-align: middle;
}

#versions-thesaurus .changelog-table .changelog-col-date {
  width: 12%;
  text-align: center;
}

#versions-thesaurus .changelog-table .changelog-col-action {
  width: 13%;
  text-align: center;
}

#versions-thesaurus .changelog-table .changelog-col-data {
  width: 32%;
}

#versions-thesaurus .changelog-table .changelog-col-radio {
  width: 11%;
  text-align: center;
}

#versions-thesaurus .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#versions-thesaurus .changelog-field .changelog-value--missing {
  color: #bbb;
  font-style: italic;
}

/* ---- Panneau de progression de duplication ---- */

#thesaurus-duplication-panel {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #ccc;
  background: #fafafa;
}

#thesaurus-duplication-totals {
  margin-bottom: 10px;
  font-size: .9em;
  color: #444;
}

#thesaurus-duplication-msg {
  margin-top: 8px;
  font-weight: bold;
}

#thesaurus-duplication-msg.thesaurus-duplication-msg--error {
  color: #c00;
}

.thesaurus-duplication-bar-wrap {
  margin-bottom: 6px;
}

.thesaurus-duplication-bar-label {
  font-size: .85em;
  margin-bottom: 2px;
}

.thesaurus-duplication-bar-track {
  background: #ddd;
  border-radius: 3px;
  height: 10px;
  overflow: hidden;
}

[id^="thesaurus-duplication-bar-"] {
  background: #4caf50;
  height: 10px;
  width: 0;
  transition: width .25s;
}

/* Panneau de suppression */

#thesaurus-deletion-panel {
  display: none;
  margin-top: 12px;
}

#thesaurus-deletion-msg {
  margin-top: 6px;
  font-weight: bold;
}

#thesaurus-deletion-msg.thesaurus-deletion-msg--error {
  color: #c00;
}

.thesaurus-deletion-bar-wrap {
  margin-bottom: 6px;
}

.thesaurus-deletion-bar-label {
  font-size: .85em;
  margin-bottom: 2px;
}

.thesaurus-deletion-bar-track {
  background: #ddd;
  border-radius: 3px;
  height: 10px;
  overflow: hidden;
}

#thesaurus-deletion-bar {
  background: #e53935;
  height: 10px;
  width: 0;
  transition: width .25s;
}

/* Panneau de restauration de version */

.thesaurus-use-bar-wrap {
  margin-bottom: 6px;
}

.thesaurus-use-bar-label {
  font-size: .85em;
  margin-bottom: 2px;
}

.thesaurus-use-bar-track {
  background: #ddd;
  border-radius: 3px;
  height: 10px;
  overflow: hidden;
}

.thesaurus-use-bar {
  background: #ddd;
  height: 10px;
  width: 0;
  transition: width .25s;
}

.thesaurus-use-msg {
  margin-top: 8px;
  font-weight: bold;
}

.thesaurus-use-msg--error {
  color: #c00;
}

/* Panneau de mise a jour de thesaurus */

.thesaurus-update-bar-wrap {
  margin-bottom: 6px;
}

.thesaurus-update-bar-label {
  font-size: .85em;
  margin-bottom: 2px;
}

.thesaurus-update-bar-track {
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 10px;
  overflow: hidden;
}

[id^="thesaurus-update-bar-"] {
  background: #bdbdbd;
  height: 10px;
  width: 0;
  transition: width .25s;
}

.thesaurus-update-msg {
  margin-top: 8px;
  font-weight: bold;
}

.thesaurus-update-msg--error {
  color: #c00;
}