/*
 * The look of the legacy site (docs/spec.md section 6, Look and feel), as one stylesheet instead
 * of one per browser family. Class names are the legacy ones: the renderer (Markup) and the
 * views use them.
 */

body {
  margin: 0;
  padding: 0;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #000000;
  background-color: #ffffff;
}

h1 {
  font-size: 120%;
  margin-top: 0;
  padding-top: .5em;
}

h2 {
  font-size: 105%;
  margin-top: 2em;
  margin-bottom: 0;
}

h4 {
  margin-top: 2em;
}

p {
  margin-bottom: 0;
}

p, blockquote, ul {
  font-size: 90%;
}

p.low {
  margin-top: 0;
}

td {
  font-size: 95%;
}

td.r {
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
}

.warning {
  color: #b3113b;
  font-weight: bold;
}

.small { font-size: 80%; }
.big { font-size: 120%; }
.bigger { font-size: 150%; }
.b { font-weight: bold; }
.i { font-style: italic; }
.nobr { white-space: nowrap; }
.clear { clear: both; }

/* Header and menu */

div#fullheader {
  background-color: #c4c4c4;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35em;
}

div#header {
  background: url("/assets/iva-informationsordbog-top-0caacd30.png"), linear-gradient(to right, #898eae, #898eae 50%, #3a2c5f 50%, #3a2c5f);
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #898eae;
  height: 69px;
  color: #ffffff;
}

div#header #logo {
  display: flex;
  justify-content: space-between;
  padding: 10px 0 0 24px;
  color: #ffffff;
  background-color: transparent;
}

.logo {
  padding: 13px 24px 0 0;
  font-size: 18px;
  font-weight: bold;
}

div#menu {
  font-size: 80%;
  font-weight: bold;
  padding-left: 10px;
  line-height: 1.2em;
}

div#menu #menutitle {
  display: none;
}

div#menu ul {
  margin: 0 0 0 29px;
  padding-top: 0;
  list-style: none;
}

div#menu li {
  float: left;
  padding-top: .35em;
}

div#menu li + li::before {
  content: "/";
  color: #4c4c4c;
}

div#menu a {
  padding: 0 15px;
  color: #4c4c4c;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

div#menu a.current {
  color: #3c295e;
  cursor: default;
}

div#menu a:hover {
  color: #3c295e;
  background-color: transparent;
}

div#menu a.returnlink {
  float: right;
  padding: .35em 21px 0 0;
  font-size: 12px;
}

div#menu #clear {
  clear: both;
  height: .35em;
}

div.contents {
  margin: 10px 10px 0 10px;
  padding-bottom: 10px;
}

/* Concepts */

.term {
  padding: .2em .3em;
}

div.contents p.term {
  clear: both;
}

p.conceptEnd {
  font-size: 75%;
}

.termlist p {
  margin-top: .2em;
}

.clusterlist, .clusterlist3 {
  margin-bottom: .8em;
}

.clusterlist p, .clusterlist3 p {
  margin-top: .2em;
  font-size: 90%;
  text-indent: -1.8em;
  margin-left: 1.8em;
}

.clusterlistIndent p {
  padding-left: 11px;
  text-indent: -1.8em;
  margin-left: 3.2em;
}

.clustercolumns {
  display: flex;
  flex-wrap: wrap;
  column-gap: .7em;
}

.textbody sup {
  font-size: 80%;
  padding-left: .2em;
}

fieldset {
  margin-top: .3em;
  padding: 5px;
}

fieldset legend {
  font-size: 75%;
}

.illRight {
  float: right;
  margin: 1.2em 0 1em 1em;
  text-align: center;
  padding-bottom: 5px;
  max-width: 100%;
}

.titleillus {
  font-weight: bold;
  font-size: 90%;
  text-align: left;
  margin-bottom: 10px;
}

p.plate {
  text-align: center;
}

ul.space li {
  margin-bottom: .35em;
}

table.alternatives {
  margin-top: 1.2em;
}

table.alternatives td {
  vertical-align: top;
  padding-bottom: .7em;
}

/* Tables typed in a definition (Markup.table) */

table.example {
  margin: .2em 0;
  border-collapse: collapse;
}

table.example tr {
  vertical-align: top;
}

table.example td {
  padding-right: 1em;
  padding-left: 2em;
  text-indent: -2em;
}

table.example td.t1 { padding-left: 4em; }
table.example td.t2 { padding-left: 6em; }
table.example td.t3 { padding-left: 8em; }
table.example td.t4 { padding-left: 10em; }
table.example td.t5 { padding-left: 12em; }
table.example td.t6 { padding-left: 14em; }
table.example td.t7 { padding-left: 16em; }
table.example td.t8 { padding-left: 18em; }
table.example td.t9 { padding-left: 20em; }
table.example td.t10 { padding-left: 22em; }

/* Search */

.searchtitle {
  font-weight: bold;
  padding-bottom: .3em;
}

div.frontsearch {
  margin: 3em 0 0 .7em;
  width: 275px;
  float: left;
}

div.frontsearch dl {
  margin-top: 1em;
}

div.frontsearch dd {
  margin: 0;
}

p.fronttext {
  float: left;
  width: auto;
  margin: 1.5em .7em 1.2em 0;
  display: table;
}

div.searchagain {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5em;
  align-items: baseline;
  padding-bottom: 1.5em;
}

div.searchagain p {
  text-indent: -3em;
  margin-left: 3em;
}

input.searchtext {
  width: 150px;
}

div.frontsearch input.searchtext {
  width: 140px;
}

.searchhelp {
  position: relative;
}

.searchhelpbox {
  position: absolute;
  z-index: 1000;
  top: 2.2em;
  left: 0;
  width: 450px;
  max-width: 90vw;
  border: 3px solid #3a2c5f;
  background-color: #ffffff;
  font-size: 12px;
  font-weight: normal;
}

.searchhelpbox h3 {
  margin: 0;
  padding: 3px;
  font-size: 100%;
  color: #ffffff;
  background-color: #3a2c5f;
}

.searchhelpbox p {
  margin: .7em .5em;
  font-size: 100%;
}

.searchhelpbox .close {
  float: right;
  color: #ffffff;
  padding: 0 .3em;
}

h2.toggleSection {
  margin-bottom: .7em;
}

h2.toggleSection a {
  color: #000000;
  padding-left: .25em;
  padding-right: .25em;
}

h2.toggleSection a:hover {
  color: #000000;
  background: #dddddd;
}

h2.toggleSection a::before {
  content: url("/assets/section-contract-3363fdf4.gif");
  margin-right: .25em;
}

h2.toggleSection a.contracted::before {
  content: url("/assets/section-expand-7614cddc.gif");
}

tr.submenu img {
  vertical-align: middle;
}

p.toggleSub {
  margin-left: 2.9em;
  padding-left: 11px;
  margin-top: 0;
  margin-bottom: .7em;
}

p.selected {
  margin-top: 1.5em;
}

/* The tab row of the about pages */

div.submenu {
  margin-top: 1.2em;
  overflow-x: auto;
}

div.submenu.bottom {
  margin-top: 1.5em;
}

table.submenuTop, table.submenuBtm {
  border-collapse: collapse;
  width: 100%;
}

table.submenuTop td {
  border-top: 1px solid #bbbbbb;
  border-left: 1px solid #bbbbbb;
  border-bottom: 1px solid #000000;
}

table.submenuBtm td {
  border-bottom: 1px solid #bbbbbb;
  border-left: 1px solid #bbbbbb;
  border-top: 1px solid #000000;
}

tr.submenu td {
  font-size: 92%;
  font-weight: bold;
  white-space: nowrap;
  padding: 2px 0 4px 0;
}

tr.submenu td a {
  color: #aaaaaa;
}

tr.submenu td.spacer {
  border: none;
  padding: 0 7px;
}

tr.submenu td.spacer.wide {
  width: 99%;
}

table.submenuTop td.spacer {
  border-bottom: 1px solid #000000;
}

table.submenuBtm td.spacer {
  border-top: 1px solid #000000;
}

tr.submenu td.last {
  border-right: 1px solid #bbbbbb;
}

tr.submenu td.current {
  border-left: 1px solid #000000;
  border-right: 1px solid #000000;
}

table.submenuTop td.current {
  border-top: 1px solid #000000;
  border-bottom: 1px solid #ffffff;
}

table.submenuBtm td.current {
  border-bottom: 1px solid #000000;
  border-top: 1px solid #ffffff;
}

table.cellborders {
  border-collapse: collapse;
  border-top: 1px solid #000000;
  border-left: 1px solid #000000;
}

table.cellborders tr td {
  vertical-align: top;
  padding: .3em;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
}

/* Hidden is hidden, whatever display a rule gives the element. */
[hidden] {
  display: none !important;
}

/* The editor side */

/* The link to the login in the top left corner, as hidden as it was. */
#login {
  position: absolute;
  left: 0;
  top: 0;
}

#login a {
  display: block;
  width: 16px;
  height: 16px;
  overflow: hidden;
}

#login a:hover {
  background-color: rgba(220, 217, 244, .35);
}

.submenuitem {
  float: right;
  padding-left: 3px;
  font-size: .8em;
}

/* "Log ud" is a form, because it changes something. It looks like the links next to it. */
form.submenuitem button, form.inline button {
  font: inherit;
  color: #63439c;
  background: none;
  border: none;
  padding: 0 .3em .1em .3em;
  cursor: pointer;
}

form.submenuitem button:hover, form.inline button:hover {
  color: #ffffff;
  background-color: #968baa;
}

form.inline {
  display: inline;
}

form.inline button {
  padding: 0 0 .1em 0;
}

.approved {
  color: #009900;
  font-weight: bold;
}

p.indent2nd {
  text-indent: -1.5em;
  margin-left: 1.5em;
  margin-top: 0;
}

table.paddingbottom td {
  padding-bottom: 1em;
  vertical-align: top;
}

table.functions td:first-child, table.userinfo td:first-child {
  padding-right: 1em;
  white-space: nowrap;
}

.formtable, .formtable3 {
  background-color: #dcd9f4;
  border: 1px solid #000000;
  margin-bottom: 1em;
}

.formtable td, .formtable3 td {
  padding: 4px 6px;
}

.formtable .faintlyDarkerBg {
  background-color: #dfdae8;
}

.formtable table td {
  padding: 0 0 2px 0;
}

form.loginform {
  margin-top: 9em;
  text-align: center;
}

form.loginform table {
  margin: 0 auto;
  text-align: left;
}

p.loggedout {
  margin-top: 3em;
  text-align: center;
}

.loggedout + form.loginform {
  margin-top: 3em;
}

.textfield, .selectfield, .textfieldReadonly {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.textfield.wide {
  width: 400px;
}

.textfieldReadonly {
  background-color: #dddddd;
}

.tablebutton {
  font-family: inherit;
}

a.tablebutton {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid #767676;
  border-radius: 3px;
  color: #000000;
  background-color: #efefef;
  font-size: 13.3px;
}

.tableinfotext {
  color: #888888;
}

.smaller {
  font-size: 65%;
}

.buttonrow, .formbuttons {
  margin-top: 1em;
}

.buttonrow form {
  display: inline;
  margin-right: .7em;
}

img.icon {
  border: 0;
  vertical-align: middle;
}

/* Help texts and the manual */

a.help {
  float: right;
  padding: 0 .3em;
  font-weight: normal;
  font-size: 12px;
}

.helptext, .manual {
  max-width: 46em;
}

.helptext h1 {
  margin-top: 0;
}

/* The help text of a "?", in a box over the page: as the help box of the public search. */
dialog.helpbox {
  position: fixed;
  z-index: 1000;
  top: 60px;
  left: 10px;
  right: auto;
  margin: 0;
  padding: 0;
  width: 450px;
  max-width: 90vw;
  border: 3px solid #3a2c5f;
  color: #000000;
  background-color: #ffffff;
  font-size: 12px;
}

dialog.helpbox h3 {
  margin: 0;
  padding: 3px;
  font-size: 100%;
  color: #ffffff;
  background-color: #3a2c5f;
}

dialog.helpbox .close {
  float: right;
  color: #ffffff;
  padding: 0 .3em;
}

dialog.helpbox .helptext {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding: .5em;
}

dialog.helpbox .helptext h1 {
  font-size: 130%;
}

dialog.helpbox .helptext h2 {
  font-size: 110%;
}

p.helpexample {
  border: 1px solid #000000;
  padding: 3px;
}

.manual fieldset {
  margin-top: 1.2em;
}

.manual fieldset p {
  margin-top: .5em;
  font-style: italic;
}

.manual .pre {
  white-space: pre-wrap;
}

/* The concept form */

form.conceptform {
  width: 580px;
  max-width: 100%;
  margin: 0 auto;
}

table.formsettings {
  width: 100%;
  font-size: 90%;
}

table.formsettings td:last-child {
  text-align: right;
}

table.formtable2 {
  width: 100%;
  border: 1px solid #000000;
  border-collapse: collapse;
}

table.formtable2 td {
  padding: 2px 7px;
  vertical-align: top;
}

table.formtable2 td.label {
  width: 141px;
  min-width: 141px;
}

table.formtable2 .textfield, table.formtable2 .textfieldReadonly {
  width: 100%;
}

table.formtable2 .withview, table.formtable2 .statusrow {
  display: flex;
  gap: 10px;
  align-items: center;
}

table.formtable2 .withview select, table.formtable2 .statusrow select {
  flex: 1;
  min-width: 0;
}

.tablerowB {
  font-weight: bold;
  font-size: 110%;
  background-color: #eeeeee;
}

.tablerowB a {
  font-size: 95%;
  font-weight: normal;
}

.tablerowC {
  background-color: #eeeeee;
}

.tablerowD {
  background-color: #cccccc;
}

.missingfield {
  font-weight: bold;
  background-color: #ff0000;
}

div.reconfirm {
  border: 1px solid #000000;
  padding: 3px 6px 8px 6px;
  margin-bottom: 2em;
}

div.reconfirm p {
  margin-top: .5em;
}

/* A concept as the editors see it */

.editlink {
  float: right;
  font-size: 12px;
  font-weight: normal;
}

.nonpubl {
  color: #b3113b;
}

.nonpubl abbr, abbr.codes, abbr.codesSurveyed {
  text-decoration: none;
}

fieldset.edit {
  margin-top: 1.2em;
}

fieldset.edit legend {
  font-weight: bold;
  color: #ff7700;
}

fieldset.edit td {
  font-size: 75%;
}

fieldset.edit a {
  color: #543095;
}

a.badlink, span.badlink, td.badlink {
  background-color: #ff7777;
}

a.weaklink, span.weaklink, td.weaklink {
  background-color: #ffff00;
}

.factsMember {
  color: #ff7700;
}

/* History */

table.changes, table.diff, table.overview, table.images, table.users {
  width: 100%;
  margin-top: .7em;
}

p.changesHeaderInTable {
  color: #ff7700;
  margin-top: 0;
  padding: 0 .3em .3em .3em;
}

div.changesNotesInTable {
  padding: .2em .3em .3em .3em;
  border-top: 1px dashed #ff7700;
}

div.changesNotesInTable p {
  margin-top: 0;
}

table.diff td.pre {
  white-space: pre-wrap;
  width: 45%;
  overflow-wrap: anywhere;
}

table.diff del {
  background-color: #ffc8c8;
}

table.diff ins {
  background-color: #c4f0c4;
  text-decoration: none;
}

.tableheader, table.images th {
  background-color: #dcd9f4;
  font-weight: bold;
  text-align: left;
}

table.images th {
  font-size: 95%;
  padding: .3em;
  border-bottom: 1px solid #000000;
  border-right: 1px solid #000000;
}

table.overview td:first-child {
  width: 1%;
  white-space: nowrap;
}

/* The extended search */

form.editorsearch {
  display: table;
  margin: 1em auto 0 auto;
  max-width: 100%;
}

form.editorsearch td.criterion .textfield, form.editorsearch td.criterion .selectfield {
  width: 240px;
}

form.editorsearch .searchbuttons {
  display: flex;
  flex-wrap: wrap;
  gap: .3em 1em;
  align-items: center;
  padding-top: 7px;
}

form.editorsearch .searchbuttons input[type=submit] {
  width: 110px;
}

form.editorsearch [hidden] {
  display: none;
}

.termCreate, .termHidden, .termHidden2,
a.termCreate, a.termHidden, a.termHidden2 {
  color: #888888;
}

p.weakAndBorder {
  color: #999999;
  border: 1px dashed #cccccc;
  padding: .3em;
}

table.resultsTable {
  width: 100%;
  margin-top: .5em;
  border: 1px solid #000000;
  border-collapse: collapse;
}

table.resultsTable td {
  padding: 1px .3em 1px 1px;
  vertical-align: top;
}

table.resultsTable td.wide {
  width: 99%;
}

table.resultsTable tr.header {
  background-color: #dcd9f4;
}

table.resultsTable tr.header td {
  font-weight: bold;
  border-bottom: 1px solid #000000;
  padding-top: .3em;
  padding-bottom: .5em;
}

table.resultsTable tr.line td {
  border-top: 1px solid #dddddd;
}

abbr.codes, abbr.codesSurveyed {
  font-size: 65%;
}

abbr.codesSurveyed {
  font-weight: bold;
  color: #ffffff;
  background-color: #000000;
  padding: 0 1px;
}

@media screen {
  ::selection {
    background: #3c295e;
    color: white;
  }

  a {
    text-decoration: none;
    color: #63439c;
    padding: 0 0 .1em 0;
  }

  .clusterlist a {
    color: #5e4090;
  }

  a:hover {
    color: #ffffff;
    background-color: #968baa;
  }

  tr.submenu td a:hover {
    color: #ffffff;
  }

  div#header a#logo:hover {
    color: #ffffff;
    background-color: transparent;
  }

  fieldset {
    border: 1px solid #cccccc;
  }

  .term {
    background-color: #dcd9f4;
  }

  table.example td {
    font-size: 90%;
  }
}

@media print {
  body div.contents {
    font-size: .7em;
  }

  td {
    font-size: .7em;
  }

  fieldset {
    border: 1px solid #888888;
  }

  .term {
    background-color: transparent;
    padding: .4em 0 .2em 0;
    margin-top: 0;
    border-top: 1px solid #888888;
  }

  .term.first {
    border-top: none;
  }

  div.contents p.conceptEnd {
    padding-bottom: .5em;
    margin-bottom: 1em;
  }

  table.example td {
    font-size: 80%;
  }

  .searchhelp, a.returnlink, #login, .submenuitem, .screen, .editlink, a.help {
    display: none;
  }
}

/* A phone */
@media (max-width: 768px) {
  div#header #logo {
    flex-direction: column;
  }

  .logo {
    font-size: 16px;
    padding-top: 4px;
  }

  div#header {
    background-size: cover;
    height: auto;
    padding-bottom: 15px;
  }

  div#menu ul {
    margin-left: 0;
    padding-left: 0;
  }

  div.frontsearch {
    margin-top: 1em;
    float: none;
  }

  .illRight {
    float: none;
    margin-left: 0;
  }

  table.example td, table.example td[class^="t"] {
    padding-left: 1em;
    text-indent: 0;
  }

  table.formtable2 td {
    display: block;
  }

  table.formtable2 td.label {
    width: auto;
  }

  table.images, table.users, table.resultsTable {
    display: block;
    overflow-x: auto;
  }
}
