/* the samples of contracts and the sorting of the lists */
/* One file for one part of the application: a change of that part touches only this file. */
.sortlink {
  color: inherit;
  text-decoration: none;
}
.sortlink.on {
  color: var(--accent);
}
.tpl-dest {
  border: 1px solid var(--line, rgba(128, 128, 128, 0.3));
  border-radius: 12px;
  padding: 8px 14px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}
.tpl-dest legend {
  font-weight: 700;
  padding: 0 6px;
}
.tpl-dest .chk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.tpl-dest .chk input {
  width: 22px;
  height: 22px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex: none;
}
.tpl-outline {
  margin: 0;
  padding-left: 22px;
  line-height: 1.7;
}
/* the text read from a chosen file, shown before it is uploaded */
.upload-preview {
  margin-top: 8px;
}
.upload-preview .ct-text,
.law-piece .ct-text {
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
}
.up-eye {
  margin-left: 8px;
}
/* the eye next to a field for a file, and what it shows */
.fp-eye {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(128, 128, 128, 0.4));
  background: color-mix(in srgb, var(--accent, #2563eb) 14%, transparent);
  color: var(--accent, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 8px;
}
.fp-eye:disabled {
  opacity: 0.4;
  cursor: default;
}
.upload-preview {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.upload-preview .ct-text,
.law-piece .ct-text,
.fv-text {
  max-height: 460px;
  overflow: auto;
  white-space: pre-wrap;
}
.fv-img {
  max-width: 100%;
  max-height: 70vh;
  height: auto;
  border-radius: 8px;
  display: block;
}
.fv-frame {
  width: 100%;
  height: 70vh;
  border: 1px solid var(--line, rgba(128, 128, 128, 0.4));
  border-radius: 8px;
  background: #fff;
}
/* a field that was filled in from the file (until the person changes it) */
input.suggested,
select.suggested {
  border-color: var(--accent, #2563eb) !important;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #2563eb) 25%, transparent);
}
