/**
 * Styles for the publication list
 */

.publications__container {
  min-width: 650px !important;
  /*max-width: 800px !important;*/
}

.publications__container * {
  box-sizing: border-box;
}

div.nothing-to-show {
  padding: 1em 1.5em;
}

div.nothing-to-show p {
  margin: 0;
}

/**
 * Tabulator
 */

.tabulator {
  background-color: #e6e6e6;
  border: 1px solid #2e7f8a;
}

/**
 * Tabulator header
 */

.tabulator .tabulator-header {
  border-bottom: none;
}

.tabulator .tabulator-header .tabulator-col {
  border-right: none;
  background-color: #2e7f8a;
  color: #fff;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
  padding-right: 8px;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow,
.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
  border-bottom-color: #fff;
  color: #fff;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending] .tabulator-col-content .tabulator-col-sorter .tabulator-arrow {
  border-top-color: #fff;
  color: #fff;
}

@media (hover: hover) and (pointer:fine) {
  .tabulator .tabulator-header .tabulator-col.tabulator-sortable.tabulator-col-sorter-element:hover {
    background-color:#79c8d2;
    /*color: #fff;*/
    cursor: pointer;
  }

  /*.tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=none].tabulator-col-sorter-element:hover .tabulator-arrow,
  .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=ascending].tabulator-col-sorter-element:hover .tabulator-arrow {
    border-bottom-color: #2e7f8a;
  }

  .tabulator .tabulator-header .tabulator-col.tabulator-sortable[aria-sort=descending].tabulator-col-sorter-element:hover .tabulator-arrow {
    border-top-color: #2e7f8a;
  }*/
}

/**
 * Tabulator rows
 */

.tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle {
  background-color: #8f0e08;
}

.tabulator-row.tabulator-row-even {
  background-color: #fff;
}

.tabulator-row .tabulator-cell {
  border-right: none;
  border-bottom: 1px solid #ddd;
}

.tabulator-row .tabulator-cell.tabulator-row-header {
  background-color: #eee;
  border-right: none;
  border-bottom-color: #ddd;
}

@media (hover: hover) and (pointer:fine) {
  .tabulator-row.tabulator-selectable:hover {
    background-color: transparent;
  }
}

.tabulator-row .tabulator-responsive-collapse {
  padding: 14px 15px 15px;
  border-bottom: none;
  border-top: none;
  background-color: #ddd;
}

.tabulator-row .tabulator-responsive-collapse table td {
  border-color: #8f0e08;
  border-width: 0px;
  background-color: #fff;
}

/**
 * Tabulator cells
 */

.tabulator-cell.multiline {
  /* Allow wrapping and don't hide overflow */
  white-space: normal !important;
  overflow: visible;
}

.links-cell,
.title-cell {
  width: 100%;
  padding-bottom: .25em;
}

.title-cell .pub__title {
  font-weight: 700;
}

/**
 * Tabulator footer
 */

.tabulator .tabulator-footer {
  border-top: none;
}

.tabulator .tabulator-footer .tabulator-paginator label {
  font-size: inherit;
  font-weight: 400;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page-size {
  margin-right: 15px;
  padding-left: 8px;
  padding-right: 10px;
  background-position: right 25% top 60%;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page-size option {
  margin-left: 10px;
  margin-right: 10px;
}

.tabulator .tabulator-footer .tabulator-paginator button {
  font-size: inherit;
}

.tabulator .tabulator-footer .tabulator-paginator button:not(:hover):not(:active):not(.has-background) {
  background-color: #2e7f8a;
}

.tabulator .tabulator-footer .tabulator-paginator button:hover {
  background-color: #79c8d2;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-pages button {
  padding-left: 7px;
  padding-right: 7px;
}

.tabulator .tabulator-footer .tabulator-paginator .tabulator-page.active {
  color: #fff;
  font-weight: 700;
}

/**
 * SVG icons
 */

.links-cell .svg-icon,
.title-cell .svg-icon {
  display: inline-block !important;
  width: 1.5em;
  height: 1.5em;
  vertical-align: top;
  fill: currentColor;
  color: inherit;
}

.links-cell .svg-icon.link {
  display: inline !important;
  width: 1.6em;
  height: 1.6em;
  margin-left: 2px;
}

.links-cell .svg-icon.open_in_new {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  vertical-align: text-top;
}

.title-cell .svg-icon.lock_open_right {
  width: 16px;
  height: 16px;
}

/**
 * Tags
 */

.pub__tags {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
}

.pub-tag {
  margin-top: .5em;
  margin-right: .5em;
  padding: 5px 13px;
  border-radius: 15px !important;
}

.pub-tag.peer-reviewed {
  background-color: #2e7f8a;
  color: #fff;
}

.pub-tag.open-access {
  background-color: #79c8d2;
  color: #fff;
}

/**
 * Links
 */

.pub__links {
  width: 100%;
  font-size: 1em;
}

.pub-link {
  display: flex;
  max-width: 400px;
  margin-bottom: .5em;
}

.pub-link .link-id {
  width: 45px;
  flex-shrink: 0;
  padding: 3px 10px 3px 10px;
  border-radius: 15px 0 0 15px;
  border: 2px solid #8f0e08;
  background-color: #8f0e08;
  color: #fff;
  text-align: right;
  font-weight: 700;
}

.pub-link .link-content {
  flex-grow: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 3px 12px 3px 8px;
  border-radius: 0 15px 15px 0;
  background-color: #fff;
  border: 2px solid #8f0e08;
}

.pub-link .link-content a {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: underline;
}

.pub-link .link-content a:hover {
  color: #8f0e08;
  text-decoration: underline;
}

.pub-link .link-content .link-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
}

.pub-link .link-content svg {
  flex-shrink: 0;
  margin-left: 3px;
}
