*[data-organization='Active Senior Citizens'],*[data-organization='Individuals'] {
  display: none !important;
}

/* Additions to portal */
.viewpage.consent .consent-declaration {
  border-bottom: 2px solid #efefef;
  padding-bottom: 30px;
  margin-bottom: 30px;
}
.viewpage.consent .consent-declaration .row {
  font-size: 12px;
  overflow-y: scroll;
  max-height: 400px;
  background: #f2f2f2;
  color: #666;
  line-height: 1.4;
  padding: 10px 20px 10px 10px;
}
.viewpage.consent .consent-declaration ol li {
  margin-bottom: 1em;
}
.viewpage.consent .form-elements {
  padding-bottom: 20px;
}
.viewpage.consent .form-elements p {
  padding: 20px;
}
.viewpage.consent .checkbox,
.consent .checkbox {
  transition: all 0.5s ease-in-out;
}
.viewpage.consent .checkbox.disabled {
  opacity: 0.3;
}
.viewpage.consent .checkbox label,
.consent .checkbox label{
  position: relative;
  padding: 0 0 0 20px;
}
.viewpage.consent .checkbox input[type="checkbox"],
.consent .checkbox input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  display: inherit;
}
.viewpage.step-7 .consent {
  position: relative;
  margin: 40px 0;
}
.viewpage.documents .cateogry-intro-text {
  text-align: left;
}
.viewpage.documents .cateogry-intro-text p {
  text-align: left;
  padding: 0;
}
.viewpage.documents .cateogry-intro-text ul, .viewpage.documents .cateogry-intro-text ol {
  line-height: 1.5;
}
.viewpage.documents .cateogry-intro-text p a {
  color: #0073A9;
  text-decoration: none;
}
.viewpage.documents .cateogry-intro-text a.button {
  color: white;
}
.viewpage.documents .cateogry-intro-text a.button:before {
  display: none;
}
.viewpage.documents .cateogry-intro-text a.button:after {
  margin-top: -10px;
}
.viewpage.documents .cateogry-intro-text li {
  font-family: "Source Sans Pro", "Verdana", "Geneva", "Arial", "Helvetica", "sans-serif";
}

.progress li {
  padding-left: 11.53%;
}
body.front .front-boxes .view-display-id-block_2 a {
  position: relative;
  padding-left: 15px;
}
body.front .front-boxes .view-display-id-block_2 a:before {
  height: auto;
  position: absolute;
  left: 0;
}

/* Consent changes */
.application .viewpage.step-7 .documents h3, .application .viewpage.step-7 .document-upload h3 {
  color: #000;
  margin: 1em;
  font-size: 18px;
}
.application .viewpage.step-7 .document-upload .selectbox {
  margin-top: 0;
}
.application .viewpage.step-7 .applicant-info {
  position: relative;
  transition: all 0.5s ease-in-out;
}
.application .viewpage.step-7 .applicant-info.disabled {
  opacity: 0.3;
  user-select: none;
}

.application .viewpage.step-7 .button--application {
  border: 1px solid #0073A9;
}

.application .viewpage.step-7 .checkbox { margin: 20px 0; }

.application .viewpage.step-7 .checkbox input[type="checkbox"], .application .viewpage.step-7 .checkbox input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 0;
  display: inherit;
}
.application .viewpage.step-7 .checkbox label {
  position: relative;
  padding: 0 0 0 20px;
  font-weight: normal;
  font-size: 14px;
}


.application .ui-notification {
  /*padding: 20px 20px 20px 46px;*/
  /*background-image:  url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAABgklEQVR4AbXVJXDcQRQH4C/MMWVwBR8/E1SVIVVTJlsKqbPx3iQql7jzU/JzfspcFQb1ejb/vexkAt/PL723uw5w011LPtmu5ZMld910SB0mVayJQtZUTOqQZ8Q7IfyyYsqYgVrGTFnxSwhvjThQm5I9oeqxq4queqwq7ClpI9VjQdg0o9dBes3YFBb0KGi3KHwzjLxh34RF7fYpCd/0OYw+34TS/lF3bRhS1OJWLS2KhmzYNQTQ4YMwq6jRvBDmNSqaFT7oACaEql5Fnf4I4Y9ORb2qwgQ0qgiPpJqUhVDWJPVIqGjkunW/XFLPWXO1nFXPJb+su85dYcVRrAh3WRJeO4rXwhKfhDH1tHjmRS3PtKhnTPjEjjCgnh5bQtjSo54BYSc3QLd/QvinOzNAuoX8AOkWloSpIw0wJSwlZcwPkJYxaaT8AGkjJa2cHyBt5fQyZQZIL1NynfN9kF7n/IPSbMLtWiY0Zx6Uoz9pJ/yoHv1ZP/rHcvSv7TQ/1yN87/8Bf3LthwSgTxEAAAAASUVORK5CYII=');*/
  border: 1px solid #efefef;
  padding: 75px 120px;
  background-color: #fff;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: 10px 16px;
  color: #323232;
  font-size: 1em;
}

.application .ui-notification div {
  border-top: 2px solid #efefef;
  padding-top: 40px;
}

.application .ui-notification p {
  color: #323232;
  font-size: inherit;
}

/* updates to mobile menu */
@media (min-width: 320px) and (max-width: 670px) {
  .sidebar { display: block; }
  #main {
    display: flex;
    flex-direction: column;
  }
  #main #sidebar-first {
    width: 100%;
    padding: 0 5px;
    order: 1;
    float: none;
  }
  #main #sidebar-first .menu {
    margin-bottom: 20px;
    padding-bottom: 15px;
  }
  #main #sidebar-first .block-menu-block + div, #main #sidebar-first .block-menu-block .node-so-calculator {
    display: none;
  }
  #main #content {
    order: 2;
    float: none;
  }
}

/* fixes for smart object margins */
.node-so-persons,
.node-so-accordion,
.node-so-applicant,
.node-so-download,
.node-so-feed,
.node-so-facts,
.node-so-gallery,
.node-so-image,
.node-so-text,
.node-so-video 
{
  margin-bottom: 16px;
}

.node-so-accordion + .node-so-text .node-so-accordion{
  margin-top: -16px;
}

.node-so-video p:last-child{
  margin-bottom: 0;   
}

/* .node-so-facts + .node-so-applicant{
  margin-top: -30px;
}
.node-so-text + .node-so-applicant{
  margin-top: -30px;
}
.node-so-text + .node-so-video{
  margin-top: -30px;
}
.node-so-text + .node-so-facts{
  margin-top: -30px;
}
.node-so-facts .button:last-child{
  margin-bottom: 30px;
} */
.node-so-facts p:last-child, .node-so-image p:last-child, .node-so-facts ul:last-child{
  margin-bottom: 0;
}
.node-so-text p:last-child {
  margin-bottom: 0;
}
.node-so-image .floating-image.right{
  margin-bottom: 0;
}
.node-so-gallery span{
  padding-top: 0;
}
.node-page h3:nth-of-type(1), .node-news-article h3:nth-of-type(1){
  margin-bottom: 0;
}

/* Calculator changes */
body article.grantsSearch > header {
  height: auto;
}
body article.grantsSearch > header:after {
  content: "";
  display: block;
  clear: both;
}
body article.grantsSearch > header > form.sub-areas-active > div {
  height: 160px;
}
body article.grantsSearch > header > form.sub-areas-active > div:nth-of-type(2) {
  padding-top: 40px;
}
body article.grantsSearch > header > form.sub-areas-active > div:nth-of-type(3) {
  padding-top: 40px;
}
body article.grantsSearch > header > form.sub-areas-active > div:nth-of-type(4) {
  padding-top: 40px;
}
body article.grantsSearch > header > form.sub-areas-active > div:last-of-type {
  height: auto;
}
@media screen and (max-width: 940px) {
  body article.grantsSearch > header > form.sub-areas-active > div {
    height: 120px;
  }
}

body article.grantsSearch > header > form > div label.select-area,
body article.grantsSearch > header > form > div label.select-sub-area {
  display: block;
}

body article.grantsSearch > header > form > div label.select-area select,
body article.grantsSearch > header > form > div label.select-sub-area select {
  margin-top: 5px;
  margin-bottom: 10px;
}

.grantsSearch .filter-disclaimer {
  clear: both;
  padding: 10px 10px 0 10px;
  font-size: 0.8em;
}

.grantsSearch .filter-disclaimer p {
  margin: 0;
}

/* fix for active.inactive label in categories page on application portal */
.applicationtabs li.active.inactive > label { background: linear-gradient(to right, #137daf, #0073A9); }

/* adgangmedtegn */
#footer .adgangmedtegn {
  margin-top: 22px;
  display: block;
  float: right;
  margin-right: 70px;
  cursor: pointer;
}

#footer .adgangmedtegn img,
body.front .footer .adgangmedtegn img {
  max-width: 50px;
}

body.front .footer .adgangmedtegn {
  cursor: pointer;
  position: absolute;
  right: 70px;
  top: 26px;
}

@media (min-width: 320px) and (max-width: 670px) {
  #footer .adgangmedtegn {
    position: absolute;
    bottom: -54px;
    right: 0;
  }
  #footer .social {
    bottom: -48px;
    transform: none;
  }

  body.front .footer .adgangmedtegn {
    position: unset;
  }

  body.front .footer .social {
    position: unset;
  }
}

/* Persons gallery element */
.node-smart-object-images-list .field-collection-container { border: none; }
.node-smart-object-images-list .field-name-field-image-list {
  display: flex;
  flex-wrap: wrap;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view {
  flex: 0 0 42%;
  border: none;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .image {
  position: relative;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .image img {
  display: block;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-link {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-link a {
  flex-grow: 0;
  flex-shrink: 0;
  align-self: flex-end;
  padding: 10px 20px;
  color: #ffffff;
  background-color: #0073a9;
  transition: all 500ms cubic-bezier(0.515, 0.185, 0, 0.985);
  font-size: 0.8em;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-link a:before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-link a:after {
  content: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6.5 11.1'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23ffffff' d='M6.5 1.2L5.3 0 1.2 4.3 0 5.6l1.2 1.2 4.1 4.3 1.2-1.2-4.1-4.3'/%3E%3C/svg%3E");
  transform: rotate(-180deg);
  transform-origin: bottom;
  display: inline-block;
  float: right;
  position: relative;
  width: 6px;
  height: 11px;
  margin-top: -7px;
  margin-left: 6px;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-link a:hover {
  transition: all 500ms cubic-bezier(0.515, 0.185, 0, 0.985);
  background-color: #005178;
  text-decoration: none;
}
.node-smart-object-images-list .field-name-field-image-list .field-collection-view .field-name-field-body {
  padding: 5px;
}

@media (min-width: 320px) and (max-width: 820px) {
  .node-smart-object-images-list .field-name-field-image-list .field-collection-view {
    flex: 1 0 80%;
  }
}
