html, body { font-family: "Verdana"; font-size: 10pt; }
p.default, li.default { font-family: "Verdana"; font-size: 10pt; font-weight: normal}

/* Main page layout */
#menu { width: 160px; height: 100%; position: fixed; right: auto; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; background-color: #b6cad4;}
#header { position: fixed; left: 160px; right: 0; top: 0; overflow: visible;}
#main {left: 160px; right: 55%; bottom: 0; top: 110px; position: fixed; overflow: auto; padding-left: 20px;}
#right {left: 47%; right: 0; top: 110px; bottom: 0; position: fixed; overflow: auto; /* padding-bottom: 600px; */ }
#main.noright { right: 0; } /* Used when main div has a single column layout */
#main-content { position: fixed; left: 160px; right: 0; top: 0; overflow: visible;}

/* CMS pages*/
#cms-main {left: 160px; right: 20%; bottom: 0; top: 110px; position: fixed; overflow: auto; padding-left: 20px;}
#cms-right {left: 80%; right: 0; top: 110px; bottom: 0; position: fixed; overflow: auto;}

#leftheader2 {left: 140px; right: 55%; bottom: 0; top: 70px; position: fixed; overflow: visible; padding-left: 20px;}
#rightheader2 { left: 47%; right: 0; top: 70px; bottom: 0; position: fixed; overflow: visible; /* padding-bottom: 600px; */ }

h1 { color: rgb(11, 95, 129); margin-top: 0; }
h1 img { display: block; }
#header h2 { margin: 0; padding: 0 2% 0 2%; font-weight: normal; font-size: 20pt; height: 45px; }
#header h2.groups, #header h2.facets, #header h2.keywords, #header h2.laws, #header h2.leftheader, #header h2.search, #header h2.rightheader, #header h2.subsets { color: white; padding-top: 0.4em;}
#header h2.leftheader { float: left; width: 36%; background-color: #6e95aa;}
#header h2.rightheader { float: left; width: 56%; background-color: #6e95aa;}
#header h2.search, #header h2.subsets { float: left; width: 100%; background-color: #6e95aa;}

div#dummy-padding { height: 2000px; }
div.legal { font-size: 8pt;}

#menu .kle-logo-top {width: 100%; height: 160px; background-color: black}
#menu .kle-logo-bund {bottom: 0; display: flex;}
/*#menu .kle-logo-bund {border: solid; color: blue;}*/
#menu .version {background-color: #455962; color: #ffffff; text-align: center; height: 30px; font-size: 18px; vertical-align: middle; line-height: 30px;}
#menu .search {background-color: #ffffff; color: #455962; text-align: center; height: 30px; font-size: 18px; vertical-align: middle; line-height: 30px; border-right: 1px; border-right-style: solid; border-right-color: #b6cad4;}
#menu .search input {border: 0px; font-size: 14px; text-align: left; width: 140px; text-indent: 5px; }
#menu .search input:focus {outline: 0;}
#menu li {color: #000000; height: 30px; vertical-align: middle; line-height: 30px; text-align: left; width: 100%; text-indent: 5px; cursor: pointer; cursor: hand;}
/*#menu li:hover { background-color: #6e95aa; color: #ffffff; width: 100%; text-indent: 5px;}*/
#menu li a { text-decoration: none; display: block;}
#menu li a:link { color: #000000}
#menu li a:visited { color: #000000}
#menu li a:active { color: #000000;}
#menu ul { padding: 0; margin: 0; }
#menu h2 { font-size: small; }
#menu input {font: 12px Helvetica;}
#menu li.selected {background-color: #6e95aa; color: #ffffff; width: 100%; text-indent: 5px;}
#menu li.selected a { color: #ffffff}
#menu li.selected a:link { color: #ffffff}
#menu li.selected a:visited { color: #ffffff}
#menu li.selected a:active { color: #ffffff;}
/*#menu {border: solid; color: red;}*/
#menu_items {overflow-y: auto; height: 100%;}
/*#menu_items {border: solid; color: lightgreen;}*/
        
/* main group titles as links without decoration */
td.hierarchy-label a { text-decoration: none; display: block;}
td.hierarchy-label a:link { color: #000000}
td.hierarchy-label a:visited { color: #000000}
td.hierarchy-label a:active { color: #000000}

#main ul { margin: 0; }
#main .hierarchy-label {padding-left: 0.4em}

ul li {list-style-type: disc;}

/* ul#subsets { width: 120px; } */
ul#subsets li { display: block; }
ul.facets {padding: 0px;}

div h2 { margin: 0px; margin-bottom: 0.2em;font-size: 14pt;}
ul { margin: 0px;margin-top: 0em;}
ul h2 { margin: 0px; }
div h3 { margin: 0px; padding: 0px; margin-top: 0.2em;font-weight: normal;font-size: 11pt;} /* Override default webkit-margins */
div h3.topics { cursor: pointer; cursor: hand;} /* Override default webkit-margins */
/*#right h2, #right h3 { display: inline-block; float: left; margin-right: 0.25em}*/ /*http://stackoverflow.com/questions/9189810/css-display-inline-vs-inline-block*/ /*float left for ie8 so that icons stay on right side*/
div.group-title { margin: 0.8em 0.5em 0.5em 0px; }
li.topic-title{margin-top: 0.5em}
div.legal { font-size: 8pt;}
#right img.hierarchy {vertical-align: middle; padding-bottom: 0.18em;}

.description { display: none; border: 3px ridge gray; margin: 0; padding: 0}

.related_data_box { display: none; border: 2px ridge gray; padding-left: 20px; padding-right: 10px; padding-bottom: 10px; margin-top: 0.5em ;margin-bottom: 5px; width: 90%; background-image: url("../images/pixel.png"); }
.related_data_box h4 { margin: 0.5em 0px 0.5em 0px; padding: 0px;} /* Override default webkit-margins on box title */
div.related_data_box ul {padding-left: 15px; margin-left: 0px; }
/*div.related_data_box h4 {margin-bottom: 5px;}*/
.related_data_heading { padding-left: 20px; margin-top: 10px; margin-bottom: 5px; font-weight: bold;}

/* ------------ Search page - Placeholder (watermark) ------------ */
textarea::placeholder {
  font-weight: normal;
  opacity: 0.5;
  color: red;
}

/* ------------ Kontoplan view ------------ */
.imk_top_concept { margin: 0px 0px 1em 0px; padding: 0;}
.imk_top_concept_divider { border-top: 1px ridge gray; margin: 0; padding: 0;}
/*h3.imk_top_concept {display: inline-block; margin: 5px; margin-bottom: 10px;}*/
.concept_level_top {margin: 0;}
.concept_level_top_2 {margin: 0 10px 1em 0;}
.concept_level_top_2 .concept_heading {display: inline-block;  margin: 0;}
/*.concept_level_top_2 .concept_level_sub:first-child {margin: 1em 0 0.5em 25px; font-weight: normal;} bad layout just 1em on all*/
.concept_level_top_2 .concept_level_sub {margin: 1em 0 0.5em 25px; font-weight: normal;}
.concept_level_top_2 .concept_level_sub:last-child {margin: 1em 0em 1.5em 25px; font-weight: normal;}
.skos_note {font-size: 12px; margin-top: 10px;}


/* ------------ Different related icon alignments dependent on title font ------------- */
.related-icon {
    cursor: pointer;
    width: 13px;
    height: 13px; /*for ie 9*/
    margin-bottom: 0em;
    vertical-align: inherit;
    /* margin-left: 0.1em; */
}
.group-title .related-icon { margin-bottom: 0em; vertical-align: inherit;}
.topic-title .related-icon { margin-bottom: 0em; vertical-align: inherit;}
.concept_level_top_2 .related-icon {margin-bottom: 0em;vertical-align: inherit;}

.related-icon img {
    margin-bottom: 0em;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;         /* Firefox */
    image-rendering: -o-crisp-edges;         /* Opera */
    image-rendering: -webkit-optimize-contrast;/* Webkit (non-standard naming) */
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;  /* IE (non-standard property) */
} 

/*width: 13px; height: 13px;  not supported by FF*/

/*img.icon { cursor: pointer; border: none;  width: 50px; height: 13px; margin-bottom: 0.2em; vertical-align: bottom; }*/
/*.h2 img.icon { width: 13px; height: 13px; margin-bottom: 0em; vertical-align: baseline;}*/
/*.h3 img.icon { width: 13px; height: 13px; margin-bottom: 0em; vertical-align: baseline;}*/

/* #### Tablets Landscape #### */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
    .related-icon {
        width: 20px !important;
    }
    .group-title .related-icon { margin-top: 1em; margin-bottom: 0.2em; margin-left: 0.5em; vertical-align: bottom;}
    .topic-title .related-icon { margin-bottom: 0.1em; margin-left: 0.5em; vertical-align: bottom;}
    .group-title { margin-bottom: 0.6em; vertical-align: bottom;}
    .topic-title { margin-bottom: 0.5em; vertical-align: bottom;}
}

/* #### Tablets Portrait #### */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
  /* some CSS here */
}

/* ------------ Styling table for behandlingsaktivitet ------------- */

table.beha {
  width: 90%;
}

table.beha, th.beha, td.beha {
  border: 1px solid;
  vertical-align: top;
  margin: 20px;
  padding: 5px;
  text-align: left;
}

th.beha-header {
    background-color: #6e95aa;
}

th.beha-sub-header {
    background-color: #b6cad4;
}

td.beha ul {
  padding-left: 15px;
}

td.beha.k1 {
    background-color: rgb(0, 176, 80);
}

td.beha.k2 {
    background-color: rgb(255, 255, 0);
}

td.beha.k3 {
    background-color: rgb(255, 192, 0);
}

td.beha.k4 {
    background-color: rgb(255, 0, 0);
}

span.k1 {
    color: rgb(0, 176, 80);
}

span.k2 {
    color: rgb(255, 255, 0);
}

span.k3 {
    color: rgb(255, 192, 0);
}

span.k4 {
    color: rgb(255, 0, 0);
}

/* ------------ Different tooltip styles ------------- */

/* #### Default (desktop) #### */
div.qtip-default {
    border: 0px;
}

.qtip-overview-style .qtip-content {
    background-color: rgb(223, 233, 240);
    border: 1px solid black;
    color: rgb(2, 45, 110);
}

.qtip-search-style .qtip-content {
    background-color: rgb(223, 233, 240);
    border: 1px solid black;
    color: rgb(2, 45, 110);
    width: 500px;
}


/* #### Tablets Landscape #### */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:landscape) {
    .qtip-search-style .qtip-content {
        display: none !important;
        font-size: 30px;
    }
}

/* #### Tablets Portrait #### */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation:portrait) {
    .qtip-search-style .qtip-content {
        display: none !important;
        font-size: 30px;
    }
}

/*
form#search-form { float: right; width: 18%; margin: 0; }
form#search-form p { padding: 0; margin: 0; }
*/
input#search-input { width: 120px; }
/* for tabs*/
input#search-page-input, input#search-page-input_0, input#search-page-input_1, input#search-page-input_2, input#search-page-input_3, input#search-page-input_4, input#search-page-input_5, input#search-page-input_6, input#search-page-input_7, input#search-page-input_8, input#search-page-input_9, input#search-page-input_10 { width: 50%; }
input#search-page-input-no-auto, input#search-page-input-no-auto_0, input#search-page-input-no-auto_1, input#search-page-input-no-auto_2, input#search-page-input-no-auto_3, input#search-page-input-no-auto_4, input#search-page-input-no-auto_5, input#search-page-input-no-auto_6, input#search-page-input-no-auto_7, input#search-page-input-no-auto_8, input#search-page-input-no-auto_9, input#search-page-input-no-auto_10 { width: 50%; }
.float-right { float: right; }
.float-left { float: left; }
.clear { clear: both; }

#main .hierarchy td:first-child {height: 35px; text-align: center;} /* Items in main group (topic and facets) table )*/
table.archivecodes th {padding-top: 10px; padding-bottom: 15px; padding-right: 20px;}
#main .archivecodes td {height: 35px; text-align: left; vertical-align: top; padding-bottom: 5px;} /* Items in main group (topic and facets) table )*/

table { border: 0px ridge gray; /* border-collapse: collapse; */ width:100%;/* border-spacing: 2px; */}
thead { text-align: center; font-weight: bold; }
table td { border-bottom: 1px ridge gray; /* padding: 1px; */ /* padding-bottom: 5px; */}
table.tooltip { border: 0px hidden; padding: 0px; background: rgb(223, 233, 240);}
table.tooltip2 { border: 1px solid black; padding: 0px; background: rgb(223, 233, 240);}
table.tooltip td { border: 1px; padding: 0px; margin: 0px; background: rgb(223, 233, 240);}
table.tooltip2 td { border: 1px; padding: 4px; margin: 0px; background: rgb(223, 233, 240);}
.tooltip {color: red; padding: 0px; margin: 0px; font-family: "Verdana"; font-size: 8pt; color: rgb(2, 45, 110); background: rgb(223, 233, 240);}

ul#path { float: left; padding: 0.7%; margin: 0; width: 100%; }
ul#path li { display: inline; margin: 0; padding: 0; }
ul#path li a { margin-left: 2px; margin-right: 2px; }
ul#path li:before { display: marker; content: " > "; }
ul#path li:first-child:before { content: ""; }

ul#alphabet { margin-left: 0; margin: 0; padding: 0; }
ul#alphabet li { display: inline; }

/*For search engine markup*/
.max, .med, .min { font-weight: bold; } /* shorter version */

/*For anchors in search result*/
a.sub { font-size: 8pt; }

li.search_result { padding: 7px; margin: 0; }
li.classification_result { padding: 0px; margin: 0; }
div#search-result { padding-bottom: 20em; } /* instead of many <br/>s */

.watermark
{
 position:fixed;
 bottom:5px;
 right:5px;
 opacity:0.2;
 z-index:99;
 color:black;
 font-size:100pt;
}

/*For "bevaringskode"*/
.bev {color: #B0B0B0;}

/*For empty lines and headings in keyword list*/
li.empty_line {  list-style: none; list-style-type:none; margin: 0; padding: 0; text-indent: 0;}
li.test { margin: 0; padding: 0; text-indent: 0;}

#tips, #tips li{
    margin:0;
    padding:0;
    list-style:none;
}

#tips li{
    font-size:10pt;
    font-style: italic;
    color: #777777;
}

.concepts-list-intro{
    font-size:8pt;
    color: #777777;
}

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  display: none;
  min-width: 160px;
  _width: 160px;
  padding: 4px 0;
  margin: 2px 0 0 0;
  list-style: none;
  background-color: #ffffff;
  border-color: #ccc;
  border-color: rgba(0, 0, 0, 0.2);
  border-style: solid;
  border-width: 1px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  -webkit-background-clip: padding-box;
  -moz-background-clip: padding;
  background-clip: padding-box;
  *border-right-width: 2px;
  *border-bottom-width: 2px;

  .ui-menu-item > a.ui-corner-all {
    display: block;
    padding: 3px 15px;
    clear: both;
    font-weight: normal;
    line-height: 18px;
    color: #555555;
    white-space: nowrap;

    &.ui-state-hover, &.ui-state-active {
      color: #ffffff;
      text-decoration: none;
      background-color: #0088cc;
      border-radius: 0px;
      -webkit-border-radius: 0px;
      -moz-border-radius: 0px;
      background-image: none;
    }
  }

    /*For expired topics*/
  .text-shadow {
    text-shadow:
      -2px -2px white,
      -2px 2px white,
      2px -2px white,
      2px 2px white;
  }

  .underline {
    background-size: 1px 1em;
    box-shadow:
      inset 0 -0.175em white,
      inset 0 -0.2em #000;
    display: inline;
  }

  .underline--red {
      box-shadow:
      inset 0 -0.175em white,
      inset 0 -0.2em #ff9f80;
  } 
}

/* For overlay for progress spinnser/bar when performing classify  */
#loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2147483647 !important;
}

#loading-overlay.show {
  display: flex;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: white;
  margin-top: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}