.zdf_infobox {
  position: relative;
  background-color: #a8d1e6;
  color: #246d91;
  padding: 8px 8px 8px 30px;
  font-size: 0.7rem !important;
  border-radius: 3px;
}
.zdf_infobox::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  background: url('info.png');
  background-size: 16px;
}
.zdf_infobox ul * {
  color: #31708f !important;
  font-size: 0.7rem !important;
}
.p_tags {
  margin-top: 2px;
  min-height: 16px;
  font-style: italic;
  font-size: 0.7rem;
}
.p_tags::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: url('tag.png');
  background-size: 16px;
}

.zdf_button {
  color: black;
  background-color: #ccc;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 8px;
}
.zdf_button:hover:enabled {
  cursor: pointer;
  color: white;
  background-color: #0077b2;
  border: 1px solid #0066a1;
}
.zdf_button:disabled {
  color: #aaa;
  background-color: #ddd;
}

.focustitle {
  display: block;
}
.focustext {
  display: block;
  margin-top: 12px;
  white-space: pre-line;
}

/*register.htm specific*/
.imagepreloader {
  position: absolute;
  top: -999px;
  left: -999px;
  width: 0px;
  height: 0px;
}
#ajaxloader {
  display: inline-block;
  padding-left: 4px;
}

.infodiv {
  position: relative;
  float: right;
  width: 1.5em;
  height: 1.5em;
  background: url('info.png');
  background-size: 1.5em;
  cursor: help;
  margin: -0.25em;
}

.infodiv span {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  min-width: 200px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.infodiv:hover span {
  display: inline-block;
  background-color: white;
}

/* view pages */
#zdf_parambox {
  display: inline-block;
  padding: 8px;
  border-radius: 8px;
  background-color: var(--bs-lgl10);
  border: 1px solid var(--bs-lgl30);
}
#zdf_parambox * {
  font-size: 1rem;
}
#zdf_parambox input {
  margin-right: 0;
  margin-bottom: 0;
  display: inline-block;
  background-color: #fff;
  border: 1px solid var(--bs-lgl30);
  border-radius: 3px;
}
#zdf_parambox select {
  background-color: #fff;
  border: 1px solid var(--bs-lgl30);
  border-radius: 3px;
}
#zdf_parambox button {
  color: #000;
  background-color: #fff;
  border: 1px solid var(--bs-lgl30);
  border-radius: 3px;
}
#zdf_parambox button:hover {
  cursor: pointer;
  background-color: #ffe;
}
#zdf_filtertable {
  display: table;
  width: 308px;
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 8px;
}
.zdf_showdetail {
  margin-left: 10px;
  margin-top: -5px;
  border: 1px solid black;
}

.zdf_filteroption {
  display: table-row;
}
.zdf_filteroptiontitle {
  display: table-cell;
  font-weight: bold;
  padding-bottom: 4px;
}
.zdf_filteroptioncontent {
  display: table-cell;
  padding-bottom: 4px;
}
.zdf_filteroptioncontent input {
  box-sizing: border-box;
  width: 100%;
}
.zdf_typeselector,
.zdf_yearselector {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  width: 308px;
  box-sizing: border-box;
}
.zdf_yearselector {
  margin-bottom: 8px;
}
.filtericon::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 14px;
  background: url('filter.png');
  background-size: 16px 16px;
}

#entries {
  margin-top: 30px;
}

#entries h3 {
  margin-top: 30px;
}

#zdf_searchinput {
  width: 294px;
  margin-top: 2px;
}

.zdf_entry {
  padding: 8px;
  margin-bottom: 15px;
  background-color: var(--bs-lgl10);
  border: 1px solid var(--bs-lgl30);
  border-radius: 8px;
}
.zdf_entry > div:first-child {
  /* min height to prevent edit button wrapping */
  min-height: 32px;
}
.zdf_entryfooter {
  margin: 8px -8px -8px -8px;
  display: flex;
  flex-flow: row nowrap;
}
.zdf_entryfooter > div {
  position: relative;
  background-color: #fff;
  font-size: 0.7rem;
  padding: 4px 8px;
  padding-left: 20px;
}
.zdf_entryfooter > div::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
}
.zdf_entryfooter > div:first-child {
  /* tags */
  flex: 200px 1 0;
  font-style: italic;
  color: #444;
  border-bottom-left-radius: 8px;
  min-height: 22px;
}
.zdf_entryfooter > div:first-child::before {
  /* tags */
  background: url('./tag.png');
  background-size: 15px;
}
.zdf_entryfooter > div:only-child {
  border-bottom-right-radius: 8px;
}

.zdf_entryfooter > div:nth-child(2) {
  /* sources */
  flex-grow: 0;
  flex-shrink: 0;
  border-bottom-right-radius: 8px;
}
.zdf_entryfooter > div:nth-child(2)::before {
  background: url('./link.png');
  background-size: 12px;
  background-repeat: no-repeat;
}
.zdf_entryfooter > div:nth-child(2) > s {
  /* n/a link or doi */
  color: #ccc;
  user-select: none;
}

.zdf_editbutton {
  float: right;
  height: 32px;
}

.mark {
  background-color: #ffc700 !important;
  color: #000 !important;
  padding: 0 !important;
}

#searchresults {
  margin-top: 30px;
}

.zdf_sortoptions {
  display: flex;
  flex-flow: row wrap;
  max-width: 308px;
  box-sizing: border-box;
  gap: 0.2rem 0.4rem;
}

.zdf_abstractlink {
  text-decoration: underline;
  cursor: pointer;
}

.zdf_abstract {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  background-clip: padding-box;
  border: 5000px solid rgba(0, 0, 0, 0.8);
  padding: 8px;
  width: max-content;
  max-width: 50vw;
  max-height: 70vh;
  cursor: pointer;
  box-sizing: content-box;
}

@media (max-width: 420px) {
  #zdf_filtertable {
    width: 100% !important;
  }
  .zdf_typeselector,
  .zdf_yearselector {
    width: 100% !important;
  }
  #zdf_searchinput {
    width: 100% !important;
  }
}

/* Kennzahlen */

.keyfigureyearselector {
  margin-top: 15px;
  display: inline-block;
  border-collapse: collapse;
}
#content .keyfigureyearselector td:first-child {
  width: 185px;
  padding: 4px 8px;
  vertical-align: middle;
}
#content .keyfigureyearselector input,
#content .keyfigureyearselector select,
#content .keyfigureyearselector textarea {
  width: 100%;
}

#content .keyfiguretable {
  margin-top: 15px;
  border-collapse: collapse;
}
#content .keyfiguretable * {
  box-sizing: border-box;
}
#content .keyfiguretable td {
  padding: 0 !important;
  border: 0 !important;
}
.kftheader:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.kftentry:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
#content .keyfiguretable tbody tr:nth-of-type(2n) {
  background-color: initial;
}
#content .keyfiguretable .kftheader {
  padding: 4px 8px;
  background-color: var(--bs-lgl10);
  font-weight: bold;
  font-size: 1.2em;
  border: 1px solid var(--bs-lgl30);
}
#content .keyfiguretable .kftentry {
  display: flex;
  flex-flow: row nowrap;
  border: 1px solid var(--bs-lgl30);
}
#content .keyfiguretable .kftentry > div:first-child {
  flex-grow: 1;
  flex-shrink: 1;
  padding: 4px 8px;
  align-self: center;
}
#content .keyfiguretable .kftentry > div:first-child:not(:only-child) {
  border-right: 0;
}
#content .keyfiguretable tr:hover {
  background-color: initial;
}
#content .keyfiguretable .kftentry > div:nth-child(2) {
  flex: 0 0 100px;
  border-left: 0;
  padding: 4px 8px;
  text-align: right;
}
#content .keyfiguretable .ffms {
  font-family: monospace;
}
#content .keyfiguretable .readonly {
  color: #999;
}
#content .keyfiguretable input {
  width: 100%;
  text-align: right;
  margin-right: -7px;
  padding-right: 5px;
}
.dept_hint {
  float: right;
  margin-left: 10px;
}
