.contribution-block {
  margin-bottom: 1em;
  padding: 2px 2px 0.5em;
  border-bottom: 2px solid #f2f2f2;
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 2em 1fr;
  grid-gap: 0.5em;
}
.contribution-block > .citation-ordering {
  color: #757575;
  display: grid;
  justify-items: center;
  align-items: center;
  margin-right: 1em;
  grid-gap: 0.2em;
  grid-template-rows: repeat(4, 1fr);
}
.contribution-block > .citation-ordering > i {
  cursor: pointer;
}
.contribution-block > .citation-ordering .btn-1 {
  grid-row: 1;
}
.contribution-block > .citation-ordering .btn-2 {
  grid-row: 2;
}
.contribution-block > .citation-ordering .btn-3 {
  grid-row: 3;
}
.contribution-block > .citation-ordering .btn-4 {
  grid-row: 4;
}
.contribution-block.cited > .citation-ordering > span {
  font-size: 1.5em;
  font-weight: bold;
  cursor: grab;
}
.attribution-field {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 0.5em 1em;
}
.attribution-field.one-line {
  grid-template-columns: auto 1fr;
  justify-items: left;
}
.attribution-field.user-display {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.attribution-field label {
  margin: 0;
}
.attribution-field input,
.attribution-field select {
  margin: 0;
  width: 100%;
  grid-column: span 2;
}
.attribution-field input[type='checkbox'],
.attribution-field select[type='checkbox'] {
  top: 0;
  width: unset;
  grid-column: span 1;
}
.attribution-row {
  display: grid;
  grid-gap: 1em;
  align-items: center;
  padding: 10px;
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
  background-color: #e8e8e8;
}
.attribution-row:nth-of-type(even) {
  background-color: #f2f2f2;
}
.attribution-row .help-icon {
  justify-self: end;
}
.attribution-save {
  margin-top: 1em;
  text-align: right;
}
@media (max-width: 500px) {
  .attribution-row .wrap-small {
    grid-column-start: 1;
    grid-column-end: -1;
  }
}
.agent-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.2em;
}
.agent-detail {
  opacity: 1;
  transition: opacity 0.5s;
}
.agent-detail.agent-empty {
  opacity: 0.5;
}
.agent-dirty {
  position: relative;
}
.agent-dirty::before {
  position: absolute;
  top: 0;
  left: -4em;
  width: 0.5em;
  height: 100%;
  content: '';
  z-index: -1;
  background-color: #bbeda9;
}
.agent-name {
  flex-grow: 1;
  display: grid;
  grid-gap: 0.5em;
  grid-template-columns: auto 1fr;
  margin-right: 1em;
  align-items: start;
}
.display-name {
  flex-grow: 1;
}
.agent-activities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.agent-detail {
  position: relative;
  padding: 5px 0;
}
.agent-icon {
  margin-right: 0.5em;
}
.agent-affiliation {
  font-style: italic;
  font-size: 0.8em;
}
.agent-affiliation:not(:last-child)::after {
  content: ';';
  padding-right: 0.3em;
  margin-left: -0.1em;
}
.agent-identifier {
  font-size: 0.8em;
  padding: 3px 0 0;
  display: grid;
}
.agent-identifier > a {
  white-space: nowrap;
}
.agent-identifier a > i {
  margin-right: 0.3em;
}
.agent-type-edit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  margin-right: 1em;
  padding: 0.5em 0.5em 0.7em;
  border-radius: 5px;
  background: #e8e8e8;
}
.agent-type-edit .agent-type-option > input {
  display: none;
}
.agent-type-edit .agent-type-option > input:checked ~ label {
  border-bottom: 2px solid;
  margin-bottom: -2px;
}
.agent-type-edit .agent-type-option label {
  margin-bottom: 0;
}
.agent-type-edit .agent-type-option label::after {
  content: none;
}
.agent-user-edit,
.agent-affiliations-edit {
  grid-template-columns: 1fr auto;
}
.autocomplete {
  position: relative;
  display: grid;
  grid-column-gap: 0.5em;
  align-items: center;
}
.autocomplete > label {
  margin: 0;
}
.attribution-field-validated {
  position: relative;
}
.attribution-field-validated .box-status-icon {
  bottom: 10px;
  top: unset;
}
.form-control-invalid {
  border-color: darkred;
}
.box-status-icon {
  position: absolute;
  right: 10px;
  top: 10px;
}
.autocomplete-options {
  border-radius: 0 0 5px 5px;
  background-color: #ffffff;
  max-height: 10em;
  overflow-y: scroll;
}
.autocomplete-block-title,
.autocomplete-option {
  font-size: 0.8em;
}
.autocomplete-block-title:last-of-type,
.autocomplete-option:last-of-type {
  border-radius: 0 0 5px 5px;
}
.autocomplete-block-title {
  padding: 4px 10px;
  font-variant: all-small-caps;
  font-weight: bold;
  text-align: center;
  background-color: #e8e8e8;
  border-top: 10px solid #ffffff;
}
.autocomplete-option:not(.autocomplete-block-title) {
  padding: 7px 10px;
  cursor: pointer;
}
.autocomplete-option:not(.autocomplete-block-title):hover {
  background-color: #f2f2f2;
}
.autocomplete-option:not(.autocomplete-block-title).null-option {
  opacity: 0.8;
}
.autocomplete-list-items {
  display: flex;
  flex-wrap: wrap;
}
.autocomplete-list-items > div {
  background-color: #ffffff;
  border-radius: 5px;
  padding: 5px 10px;
  margin: 0.5em;
  font-size: 0.8em;
}
.autocomplete-list-items > div > i {
  margin-left: 0.5em;
  cursor: pointer;
}
.autocomplete-no-label {
  grid-template-columns: 1fr;
}
@media (max-width: 500px) {
  .autocomplete .autocomplete-options {
    grid-column-start: 1;
  }
  .autocomplete.autocomplete-label > i:last-child {
    top: 2em;
  }
}
@media (min-width: 501px) {
  .autocomplete.autocomplete-label {
    grid-template-columns: auto 1fr;
  }
  .autocomplete.autocomplete-label .autocomplete-options {
    grid-column-start: 2;
  }
  .autocomplete.autocomplete-label .autocomplete-list-items {
    grid-column: span 2;
  }
  .autocomplete.autocomplete-label .expand-bar {
    grid-column: 2;
  }
}
.help-icon {
  padding-left: 0.5em;
  position: relative;
}
.help-icon .help-tooltip {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  border-radius: 5px;
  padding: 10px;
  font-size: 0.8em;
  z-index: 100;
  width: 18em;
  border: 1px solid #e8e8e8;
}
.help-icon:hover .help-tooltip {
  display: block;
}
.edit-icon {
  cursor: pointer;
  margin-left: 1em;
}
.edit-icons {
  display: flex;
  flex-wrap: nowrap;
}
.checkboxes {
  display: flex;
  align-items: center;
}
.checkboxes > input[type='checkbox'] {
  display: none;
}
.checkboxes > input[type='checkbox'] + label {
  padding: 2px 5px 1px;
  margin: 0 2px;
  border-radius: 5px;
  background-color: #e8e8e8;
  color: #000;
  font-weight: normal;
  font-size: 0.9em;
  transition: all 0.4s ease;
}
.checkboxes > input[type='checkbox'] + label::after {
  margin-left: 0.5em;
  font-family: 'Font Awesome 5 Free', serif;
  content: '\f00d';
  font-weight: bold;
}
.checkboxes > input[type='checkbox']:checked + label {
  background-color: #bbeda9;
  color: #000;
}
.checkboxes > input[type='checkbox']:checked + label::after {
  content: '\f00c';
}
.toggle-wrapper {
  display: flex;
  align-items: center;
}
.toggle-wrapper .toggle-label {
  font-size: 0.8em;
}
.toggle-wrapper .toggle-switch {
  display: none;
}
.toggle-wrapper .toggle-switch + label {
  margin: 0 0.5em;
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  user-select: none;
  padding: 2px;
  width: 50px;
  height: 30px;
  border-radius: 30px;
  transition: all 0.4s ease;
  font-size: 0.9em;
  text-align: center;
  line-height: 1;
}
.toggle-wrapper .toggle-switch + label:before {
  display: block;
  position: absolute;
  top: 14px;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #f2f2f2;
  border-radius: 30px;
  padding: 4px;
  content: '';
  transition: all 0.4s ease;
}
.toggle-wrapper .toggle-switch:checked + label:before {
  background-color: #e8e8e8;
}
.toggle-wrapper .toggle-switch + label:after {
  display: block;
  position: absolute;
  top: 16px;
  left: 1px;
  bottom: 0;
  width: 22px;
  background-color: #c3c3c3;
  color: #000;
  border-radius: 26px;
  transition: all 0.4s ease;
  text-align: center;
  font-family: 'Font Awesome 5 Free', serif;
  content: '\f00d';
  padding-top: 1px;
}
.toggle-wrapper .toggle-switch:checked + label:after {
  margin-left: 26px;
  background-color: #188100;
  color: #fff;
  content: '\f00c';
}
.expand-bar {
  background-color: #dddddd;
  text-align: center;
  width: 100%;
  cursor: pointer;
  padding: 5px;
}
.expand-bar small {
  font-variant: all-small-caps;
  font-size: 0.9em;
  padding: 0 10px 0;
}
.icon-btn {
  margin: 5px;
  color: #188100;
  cursor: pointer;
}
.clickable-text {
  cursor: pointer;
}
.clickable-text.clicked {
  font-weight: bold;
  font-style: italic;
}
.is-deleted {
  opacity: 0.3;
  position: relative;
  transition: opacity 0.5s;
}
.is-deleted::after {
  border-top: 1px solid black;
  position: absolute;
  bottom: 50%;
  left: -2px;
  right: -2px;
  content: '';
}
.scroll-select {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-items: center;
}
.scroll-select i {
  cursor: pointer;
}
.btn-disabled {
  opacity: 0.5;
  cursor: default !important;
}
.screenreader {
  visibility: hidden;
}
input.form-control[type='date'] {
  padding: 0 12px;
}
.agent-activity {
  padding: 0.5em;
  background-color: #f2f2f2;
  border-radius: 5px;
  margin: 0.3em;
  white-space: nowrap;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border: 1px solid #e8e8e8;
}
.agent-activity:first-of-type {
  margin-left: 0;
}
.agent-activity:last-of-type {
  margin-right: 1em;
}
.agent-activity > i {
  cursor: pointer;
}
.agent-activity.activity-scheme-credit > div {
  border-bottom: 2px solid #cd2653;
}
.agent-activity.activity-scheme-datacite > div {
  border-bottom: 2px solid #0983bb;
}
.agent-activity > div:hover {
  border-bottom-style: dashed;
}
.activity-sorted-agents,
.activity-unsorted-agents {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.activity-sorted-agents > :last-child,
.activity-unsorted-agents > :last-child {
  grid-column: span 2;
}
.active-agent {
  border: 1px dashed #c3c3c3;
}
.activity-agent {
  background-color: #ffffff;
  padding: 10px;
  margin: 0.5em;
  border-radius: 5px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-gap: 0.5em;
  align-items: center;
  cursor: grab;
}
.activity-agent.sortable-chosen {
  cursor: grabbing;
}
.activity-agent > input {
  width: 3em;
  text-align: center;
}
.activity-agent > span {
  padding-top: 3px;
}
.activity-edit-fields {
  display: grid;
  grid-gap: 1em;
  grid-template-columns: 1fr 1fr;
}
.activity-edit-fields .activity-field {
  display: grid;
}
@media (max-width: 500px) {
  .activity-role-level {
    grid-template-columns: 1fr;
  }
  .activity-edit-fields {
    grid-template-columns: 1fr;
  }
}
.activity-edit-block {
  margin: 1em 0;
}
.contribution-block-new {
  margin-bottom: 2em;
  margin-left: 1.5em;
}
.new-contribution-search {
  display: grid;
  align-items: center;
  grid-gap: 0.5em;
  grid-template-columns: 1fr auto;
  margin-bottom: 1em;
}
.new-contribution-search .autocomplete {
  grid-column: span 2;
}
.new-contribution-manual {
  display: flex;
  justify-content: end;
  align-items: baseline;
  font-style: italic;
  margin-bottom: 1em;
}
.new-contribution-manual > * {
  margin-left: 0.5em;
  cursor: pointer;
}
.citation-preview {
  padding: 1em;
  margin: 2em;
  border-radius: 10px;
  border: 2px solid #e8e8e8;
  background-color: #f2f2f2;
}
.citation-preview .citation-preview-header {
  display: flex;
}
.citation-preview .citation-preview-header .citation-preview-title {
  font-weight: bold;
  flex-grow: 1;
}
.citation-preview .citation-preview-body {
  display: grid;
  grid-gap: 0.5em;
  align-items: center;
  margin-top: 1em;
}
.citation-preview .citation-preview-body .scroll-select > span {
  font-style: italic;
  font-size: 0.9em;
}
.citation-preview .citation-string {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.attribution-errors-block {
  background-color: #ffaaaa;
  border: 1px solid darkred;
  border-radius: 5px;
  padding: 0.5em;
  margin: 1em;
  font-size: 0.9em;
}
.attribution-errors-block > ul {
  margin: 0;
}
.attribution-loading {
  opacity: 0.5;
}
.contributor-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  justify-items: center;
  align-items: center;
  margin: 1em 1em 2em;
}
.contributor-pagination .page-btn {
  padding: 10px;
  background-color: #bbeda9;
  border-radius: 5px;
  cursor: pointer;
}
.contributor-pagination .page-btn + .page-btn {
  margin-left: 5px;
}
.contributor-pagination > div {
  display: flex;
}
.attribution-warning {
  margin-top: 1em;
}
