/* stylelint-disable font-family-no-missing-generic-family-keyword */

div.db-colorbox::before {
  font-size: 1em;
  display: inline-block;
  vertical-align: middle;
}

#block-db_entry_summary h3::before {
  font-family: Font Awesome\ 5 Free;
  content: "\f1c0"; /* fas fa-database */
  font-size: 14px;
  padding-right: 3px;
  text-shadow: 0 1px 0 #efefef;
  font-weight: 900;
}

h2#page-title.db-entry::before {
  font-weight: 900;
  content: "\f1c0"; /* fas fa-database */
}

.db-entry.details .attribute .value {
  word-wrap: break-word;
}

#db_entry_inputs a.delete { opacity: 0.4; }
#db_entry_inputs a.delete:hover { opacity: 1; }

#db-entries-for-relation {
  height: 200px;
  overflow: auto;
}

#db-entries-for-relation label { display: block; }
div.issue table span.db_entry { float: none; }
div.contact table span.db_entry { float: none; }

/* Keep DbEntry show layout theme-friendly and less blocky across Redmine themes. */
body.controller-db_entries.action-show div.db-entry.issue.details {
  margin-bottom: 1em;
}

body.controller-db_entries.action-show div.db-entry.issue.details .attributes {
  margin-top: 0.75em;
}

body.controller-db_entries.action-show div.db-entry.issue.details .attributes .splitcontent + .splitcontent {
  margin-top: 0.5em;
}

body.controller-db_entries.action-show div.db-entry.issue.details .tags-row {
  margin-top: 0.5em;
}

body.controller-db_entries.action-show div.db-entry.issue.details hr {
  margin: 0.9em 0;
}

body.controller-db_entries.action-show #add_attachment_form {
  margin-top: 0.5em;
}

input#db_entry_search { width: 90%; }

span.db-entry.non-valid,
a.db-entry.non-valid,
a.db-entry.non-valid:link,
a.db-entry.non-valid:visited {
  color: #999;
  text-decoration: line-through;
}

.db-relations ul {
  padding-left: 0;
}

.db-relations ul li {
  list-style: none;
}

/* Move up query totals  */
body.controller-db_entries .query-totals {
  margin-top: -2.3em;
}

table.db-entries td.description {
  color: #777;
  font-size: 90%;
  padding: 4px 4px 4px 24px;
  text-align: left;
  white-space: normal;
}

ul.db-entries-list {
  padding-left: 20px;
}

table.db-entries td.block_column {
  color: #777;
  font-size: 90%;
  padding: 4px 4px 4px 24px;
  text-align: left;
  white-space: normal;
}

table.db-entries td.block_column span {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}
table.db-entries td.block_column pre { white-space: normal; }

input#db_entry_name { width: 99%; }

#db-entry-private-wrap {
  float: right;
  margin-right: 1em;
  margin-left: 1em;
  padding-left: 0;
  padding-bottom: 0;
}

.icon-db-entry:not(:has(svg)) { background-image: url("/assets/plugin_assets/redmine_db/db-173f7daf.png"); }
