
/* Version control for docs */
.content-version-selector.border-box .content-version-container {
    border: 1px solid #0062ba;
    padding:24px;
    margin-bottom: 36px;
    width: 100%;
}

#content-version-tabs li:not(:last-child) {
    border-right: none;
}

#content-version-tabs li {
    list-style: none!important;
    display:inline-block;
    padding: 5px 20px;
    border: 1px solid #0062ba;
    border-bottom: none;
    background-color: #FFFFFF;
    margin-bottom: 0px;
    margin-top: 24px;
    color: #0062ba
}

#content-version-tabs li.active {
    border-color: #00315D;
    background-color: #B3D0EA;
    color: #00315D;
}

#content-version-tabs li.focus {
    border-color: #0062BA;
    background-color: #FFFFFF;
    color: #0062BA;
}

#content-version-tabs li::before {
    display: none!important;
}

#content-version-tabs li:hover {
    border-color: #004E95;
    background-color: #E6EFF8;
    color: #004E95;
    cursor: pointer;
}

/* External links */

a[href^=http]:not([href*='altinn.no']):not([href*='basefarm.net']):not([href*='local.altinn'])::after {
    display: inline-block;
    width: 0;
    margin-left: 0;
    content: '';
}

a[href^=http]:not([href*='localhost']):not([href*='docs.altinn.studio']):not([href*='https://github.com/Altinn/altinn-studio/'])::after {
    display: inline-block;
    width: 1.3em;
    background-image: url("../images/arrowrightup.svg");
    background-repeat: no-repeat;
    background-size: 119% auto;
    vertical-align: middle;
    margin-top: -4px;
    margin-left: -3px;
    content: '(external link)';
    white-space: nowrap;
    overflow: hidden;
    text-indent: 1.3em;
}

.a-footer a[href^=http]:not([href*='localhost']):not([href*='docs.altinn.studio']):not([href*='/docs/'])::after  {
    display: none;
}

.a-iconText-text a[href^=http]:not([href*='altinn.no']):not([href*='basefarm.net']):not([href*='local.altinn'])::after {
    display: inline-block;
    width: 0;
    margin-left: 0;
    content: '';
}

.a-illustration-icon {
    background: #022F51;
}

.a-illustrationLink {
    margin-bottom: 0;
}

/* Header */

.a-header {
    background: #022F51;
}

.a-globalNav-main .a-label {
    padding: 2px 9px 0px 9px;
}

@media (min-width: 768px) {
    .a-globalNav-main .a-label {
        margin-left: 4px;
        position: absolute;
    }
}

.a-globalNav .a-globalNav-logo {
    margin-left: 0;
}

@media (min-width: 576px) {
    .a-globalNav .a-globalNav-logo {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .a-globalNav-main li:last-child a {
        border-bottom: none;
    }
}

@media (min-width: 992px) {
    .a-header  {
        padding-top: 33px;
    }
    .a-header .a-logo {
        max-width: 284px;
        margin-top: 1px;
    }
    .a-globalNav .a-globalNav-logo {
        margin-left: 0;
    }
}

.a-globalNav-logo {
    margin-top: -3px; 
}

.adocs-logo {
    margin-top: 2px;
    max-width: 240px;
}

.adocs-logo-text {
    display: inline-flex;
    max-width: 120px;
    white-space: nowrap;
}

@media (min-width: 576px) {
.adocs-logo-text {
        display: inline-flex;
        max-width: 220px;
        white-space: nowrap; 
    }
}

/* Numbered step cards */

.step-card {
    position: relative;
    border: 1px solid #d4d7d9;
    border-radius: 12px;
    background: #f7f9fb;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(2, 47, 81, 0.08);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #022F51;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(2, 47, 81, 0.2);
}

.step-card summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #022F51;
    padding: 1.5rem 3rem 1.5rem 5.25rem;
    margin: 0;
    list-style: none;
    position: relative;
}

.step-card summary::-webkit-details-marker {
    display: none;
}

.step-card summary::after {
    content: "";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: 0.5rem solid transparent;
    border-top-color: #022F51;
    transition: transform 0.2s ease;
}

.step-card[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.step-card summary:focus-visible {
    outline: 2px solid #022F51;
    outline-offset: 4px;
}

.step-card__content {
    padding: 0 1.5rem 1.5rem 5.25rem;
}

.step-card__content p:last-child {
    margin-bottom: 0;
}

.step-card__content img {
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-card:last-of-type {
    margin-bottom: 0;
}

.adocs-logo-text span {
    font-size: 24px;
    overflow: hidden !important;
    color: white;
    text-overflow: ellipsis;
    text-transform: lowercase;
}

body.adocs-apps .a-globalNav-main li a[href*='/app/'],
body.adocs-apis .a-globalNav-main li a[href*='/api/'],
body.adocs-comm .a-globalNav-main li a[href*='/community/'],
body.adocs-tech .a-globalNav-main li a[href*='/technology/'] {
    border-bottom: solid #1e98f5 3px !important;
}

/* Jumbotron */

.a-jumbotron-header {
    background-size: 100%;
}

/* TOC */

#TableOfContents {
    margin-bottom: 24px;
}

/* Lists */

.a-text ul.connected-bullets {
    margin-left: 36px;
}

ul.connected-bullets li::after {
    background: #fff;
}

/* Scrollable tables */
#body-inner table {
    display: block;
    width: 98%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 0;
    margin-bottom: 2em;
}
#body-inner table th {
    border: 1px solid #eaeaea;
}

.component-properties {
    max-width: 100%;
    margin-bottom: 2em;
}

.component-property-name,
.component-property-value {
    font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
}

.component-property-list {
    border-bottom: 1px solid #BCC7CC;
}

.component-property-group {
    margin: 1.4rem 0;
    border: 1px solid #9DB7C8;
    border-radius: 3px;
    background: #F5F8FA;
}

.component-property-group > .component-property-summary {
    padding: 0.7rem 0.75rem;
    background: #E6F0F5;
}

.component-property-group > .component-property-summary:hover {
    background: #DCEAF1;
}

.component-property-group > .component-property-summary .component-property-name {
    font-size: 1.65rem;
}

.component-property-group[open] > .component-property-summary {
    border-bottom: 1px solid #9DB7C8;
}

.component-property-group-content {
    padding: 0 0.75rem 0.75rem;
}

.component-property-group-content > .component-property-details {
    margin: 0.75rem 0;
}

.component-property-group-content > .component-property-list {
    background: #FFF;
    border: 1px solid #BCC7CC;
}

.component-property-list .component-property {
    border-top: 1px solid #BCC7CC;
    margin: 0;
    padding: 0;
}

.component-property-list .component-property:last-child {
    border-bottom: 0;
}

.component-property > .component-property-summary,
.component-property-group > .component-property-summary {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.1rem;
    min-height: 3.4rem;
    padding: 0.35rem 0.25rem;
    cursor: pointer;
    list-style: none;
}

.component-property > summary.component-property-summary::-webkit-details-marker,
.component-property-group > summary.component-property-summary::-webkit-details-marker {
    display: none;
}

.component-property > summary.component-property-summary:hover {
    background: #f5f8fa;
}

.component-property--static > .component-property-summary {
    cursor: default;
    grid-template-columns: minmax(0, 1fr);
    padding-left: 2.5rem;
}

.component-property--static .component-property-name,
.component-property--static .component-property-summary-meta {
    grid-column: 1;
}

.component-property-chevron {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #0062BA;
    border-radius: 50%;
    position: relative;
}

.component-property-chevron::after {
    content: "";
    position: absolute;
    top: 0.38rem;
    left: 0.48rem;
    width: 0.38rem;
    height: 0.38rem;
    border-right: 2px solid #0062BA;
    border-bottom: 2px solid #0062BA;
    transform: rotate(45deg);
    transition: transform 150ms ease;
}

.component-property[open] > .component-property-summary .component-property-chevron::after,
.component-property-group[open] > .component-property-summary .component-property-chevron::after {
    top: 0.52rem;
    transform: rotate(225deg);
}

.component-property-name {
    grid-column: 2;
    min-width: 0;
    overflow: hidden;
    color: #022F51;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.component-property-summary-meta {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    min-width: 0;
    color: #52606b;
    font-size: 1.35rem;
    line-height: 1.3;
    white-space: nowrap;
}

.component-property-required + .component-property-default::before,
.component-property-required + .component-property-type::before,
.component-property-default + .component-property-type::before {
    content: "·";
    margin: 0 0.65rem;
    color: #52606b;
    font-weight: 400;
}

.component-property-type,
.component-property-default {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.component-property-type {
    flex: 0 1 auto;
    max-width: 58%;
}

.component-property-required {
    flex: 0 0 auto;
}

.component-property-required.is-required {
    color: #8b1e13;
    font-weight: 600;
}

.component-property-default {
    flex: 0 1 auto;
}

.component-property-details {
    margin: 0 0 0.4rem 2.25rem;
    padding: 0.65rem 1rem;
    background: #f5f8fa;
    border-left: 3px solid #1eaef7;
}

.component-property-description {
    overflow-wrap: anywhere;
}

.component-property-description:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .component-property-type,
    .component-property-default {
        display: none;
    }
}

/* Avoid large margin for images in tables */
#body td a > img {
    margin: 0 auto !important;
}

blockquote {
    border-left: 5px solid #1eaef7;
    margin-left: 1em;
    padding-left: 0.5em;
}
blockquote p {
    font-size: 1.1rem;
    color: #222;
}
li > label {
    font-weight: normal;
}

/* Footer */ 

.adocs-footer {
    margin-top: 60px;
    padding: 36px;
    background: #022F51;
}

.adocs-footer ul {
    text-align: center;
}

.adocs-footer ul li{
    display: inline;
    padding:  0 12px;
}

.adocs-footer ul li a{
    display: inline;
    color: #fff;
    border-bottom: 1px solid #fff;
}

.adocs-footer ul li a:after {
    content: none !important;
}

/* img */

figure {
    margin-bottom: 36px;
}


/* Case block */

.adocs-caseblock a{
    color: white;
    border-color: white;
}

.adocs-caseblock a:after {
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
}

/* Featured blocks */ 

.adocs-featuredBlocks .a-list-container {
    max-width: 300px;
}

.adocs-featuredBlocks .a-illustrationLink {
    margin-bottom: 0;
    max-width: 350px;
    margin: auto;
}

.adocs-caseblock .a-linkFeatured {
    align-self: flex-start;
    color: #022F51;
    height: 32px;
}

.adocs-caseblock .a-btn-border {
    padding: 5px 24px 7px 24px;
}


/* Display preview of colors */ 


.ap-colorCircle {
    font-size: 24px;
    display: inline-block;
    width: 48px;
    height: 48px;
    padding-top: 5px;
    margin-right: 1rem;
    text-align: center;
    vertical-align: middle;
    border-radius: 999px; } 
  
  .ap-shadowBox {
    display: block;
    width: 100px;
    height: 100px;
    background: #fff;
    box-shadow: 1px 1px 4px 0 rgba(137, 137, 137, 0.5); 
}
  
  .ap-colors {
    margin-left: 0;
    clear: both;
    list-style: none; }
    .ap-colors li {
      float: left;
      width: 100%;
      padding: 0 10px 0 0;
      margin: 0;
      border: none; }
      @media screen and (min-width: 768px) {
        .ap-colors li {
          width: 25%; }
          .ap-colors li:last-child {
            padding-right: 0; } }
  
  .ap-colorLabel {
    display: none;
    line-height: 24px; }
  
  .ap-swatch {
    position: relative;
    display: block;
    width: 100%;
    height: 78px;
    padding-top: 15px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: 2px; }
    .ap-swatch .ap-colorLabel {
      position: absolute;
      top: 12px;
      right: -100%;
      bottom: 0;
      left: 0;
      display: block;
      opacity: 0;
      transition: 0.2s all; }
    .ap-swatch:hover .ap-colorLabel {
      right: 0;
      display: block;
      opacity: 1; }
  
  .ap-typo-container {
    border-top: 1px dotted #eee; }
  
  .ap-typo {
    padding: 30px 0 30px 40px;
    background: #fff;
    border-bottom: 1px dotted #eee; }
    .ap-typo:hover {
      background: #F5F5F5; }
    .ap-typo h1,
    .ap-typo h2,
    .ap-typo h3,
    .ap-typo h4 {
      margin-top: 0; }
  
  @media screen and (min-width: 576px) {
    .ap-typo-activeSize-m {
      font-family: 'DIN-bold';
      color: #17C96B; } }
  
  @media screen and (min-width: 768px) {
    .ap-typo-activeSize-t {
      font-family: 'DIN-medium';
      color: #17C96B; } }
  
  @media screen and (min-width: 992px) {
    .ap-typo-activeSize-l {
      font-family: 'DIN-bold';
      color: #17C96B; } }
  
  @media screen and (min-width: 1200px) {
    .ap-typo-activeSize-d {
      font-family: 'DIN-bold';
      color: #17C96B; } }


/* Icon preview */


.a-st-iconItem {
    display: inline-block;
    margin: 5px;
    background: #eff2f5;
    padding: 15px 0 0 0;
    height: 15rem;
    width: 154px;
    text-align: center;
    overflow: hidden; }
    .a-st-iconItem .a-st-iconPreview {
      display: block;
      height: 60px;
      margin-top: 0;
      padding-top: 12px; }
    .a-st-iconItem .ai.ai-lg {
      font-size: 3em; }
    .a-st-iconItem a {
      visibility: hidden; }
    .a-st-iconItem:hover {
      background: rgba(0, 0, 0, 0.2);
      transition: 250ms; }
      .a-st-iconItem:hover a {
        visibility: visible;
        top: -50px; }
      .a-st-iconItem:hover span {
        visibility: hidden; }
  
  .a-st-iconLabel {
    margin-top: 5px;
    font-size: 16px; }
    .a-st-iconLabel a {
      font-size: 16px; }


/* expandbold shortcode */
.expandbold {
    padding: 20px;
    background-color: #fafafa;
    margin: 18px 0;
}

/* Component properties list and table */

.adocs-expand .adocs-property-list {
    font-size: 92%;
}

.adocs-property-list h3 {
    border-bottom: 1px solid #BCC7CC;
    padding: 5px 0;
}

.adocs-property-list .copy-to-clipboard {
    display: none;
}

.adocs-property-table .copy-to-clipboard {
    display: none;
}

.adocs-property-table .sub-prop:last-child {
    border-bottom: 1.5px solid #BCC7CC;
}

.adocs-property-table .main-prop {
    border-top: 1.5px solid #BCC7CC;
}

.adocs-property-table .main-prop:last-child {
    border-bottom: 1.5px solid #BCC7CC;
}


/* Anatomy list (numbered) */

.anatomy-list ol {
    margin: 12px 0;
}

.anatomy-list ol li {
    font-size: 92%;
    padding-left: 5%;
    margin-bottom: 6px;
}

.anatomy-list ol li::before, .anatomy-list li::before {
    color: #0062BA;
    border: none;
    height: fit-content;
    /* margin-right: 15px; */
}

/* Code block title */

.code-title {
    position: relative;
    top: 30px;
    background-color:#222;
    padding: 15px 15px 25px 15px;
    margin-top: -30px;
    border: 0;
    border-radius: 7px;
    line-height: 1;
    box-shadow: 5px 0 5px rgba(68, 68, 68, 0.6);
}

.code-title code {
    background-color:#222;
    color: #707880;
    border: 0;
    font-size: 75%;
    white-space: nowrap !important;
}

.code-title .copy-to-clipboard {
    display: none;
}

/* Code title */

h2 code, h3 code, h4 code {
    color: unset;
    background: none;
    border: none;
}

h4 code {
    font-weight: bold;
}

.expandsmall-header code + .copy-to-clipboard,
h2 code + .copy-to-clipboard,
h3 code + .copy-to-clipboard,
h4 code + .copy-to-clipboard {
display: none;
}

.expandsmall-header code {
    color: unset;
    background: none;
    border: none;
    border-radius: none;
    padding: 0;
    font-size: 88%;
    vertical-align:baseline;
}

/* Clear search */

input[type="search"] {
    border: 1px solid gray;
    padding: .2em .4em;
    border-radius: .2em;
  }
  
  input[type="search"].dark {
    background: #222;
    color: #fff;
  }
  
  input[type="search"].light {
    background: #fff;
    color: #222;
  }
  
  input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 1em;
    width: 1em;
    border-radius: 50em;
    background: url(https://pro.fontawesome.com/releases/v5.10.0/svgs/solid/times-circle.svg) no-repeat 50% 50%;
    background-size: contain;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
  }
  
  input[type="search"]:focus::-webkit-search-cancel-button {
    opacity: .3;
    pointer-events: all;
  }
  
  input[type="search"].dark::-webkit-search-cancel-button {
    filter: invert(1);
  }

  .product-item {
    font-weight: bold; 
    font-size: 2rem !important;
  }

/* Ordered list fix for list items containing block elements */
.floating-bullet-numbers li::before {
    float: left;
}
.floating-bullet-numbers-sibling-ol + ol>li::before {
    float: left;
}

/* Customisations for integration/correspondence */
.correspondence-custom-list {
    margin-bottom: 18px !important;
    padding-left: 8px;
}
.correspondence-custom-list li {
margin-left: 0 !important;
margin-bottom: 0 !important;
}
#notice-paragraph-fix p {
    margin-bottom: inherit;
}
#notice-paragraph-fix p:last-child {
    margin-bottom: 0;
}

/* Remove border bottom for last expander */
#content .adocs-expand:last-of-type {
    border-bottom: none;
}

/* Version control alert - based in ds-alert*/
.ds-alert{
    background:#dcebf6;
    border-radius:5px;
    border-width:1px;
    border-style:solid;
    border-color:#1f7dc5;
    box-sizing:border-box;
    color:#182f46;
    margin-bottom:18px;
    padding-block:24px;
    padding-inline-start:48px;
    padding-inline-end:24px;
    position:relative
}

.ds-alert:not(:has(>:is(h1,h2,h3,h4,h5,h6):first-child)):before,.ds-alert>:is(h1,h2,h3,h4,h5,h6):first-child:before {
    background:#0860a3;
    content:"";
    height:24px;
    margin-inline:calc((36px)*-1);
    -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75'/%3E%3C/svg%3E") center /contain no-repeat;
    mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v16a.75.75 0 0 1-.75.75H4a.75.75 0 0 1-.75-.75zM11 7.75a1 1 0 1 1 2 0 1 1 0 0 1-2 0m-1.25 3a.75.75 0 0 1 .75-.75H12a.75.75 0 0 1 .75.75v4.75h.75a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h.75v-4h-.75a.75.75 0 0 1-.75-.75'/%3E%3C/svg%3E") center /contain no-repeat;
    position:absolute;
    translate:0 calc((1lh - 24px)/2);
    width:24px;
    -webkit-print-color-adjust:exact;print-color-adjust:exact;
}
@media (forced-colors:active){
    .ds-alert:not(:has(>:is(h1,h2,h3,h4,h5,h6):first-child)):before,
    .ds-alert>:is(h1,h2,h3,h4,h5,h6):first-child:before{background:CanvasText}
}

/* Navigasjon i veiledninger som går over flere sider */
.guide-nav {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin: 48px 0 24px;
    padding-top: 24px;
    border-top: 1px solid #bcc7cc;
}

.guide-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 45ch;
    text-decoration: none;
    border-bottom: none;
}

.guide-nav-link--next {
    margin-left: auto;
    text-align: right;
}

.guide-nav-arrow {
    color: #6a6a6a;
    font-size: 1.5em;
}

.guide-nav-label {
    display: block;
    font-size: 0.875em;
    color: #6a6a6a;
}

.guide-nav-page {
    display: block;
    color: #d7203a;
}

.guide-nav-link:hover,
.guide-nav-link:focus {
    text-decoration: none;
    border-bottom: none;
}

.guide-nav-link:hover .guide-nav-page,
.guide-nav-link:focus .guide-nav-page {
    color: #b61b31;
    text-decoration: underline;
}

.guide-nav-link:hover .guide-nav-arrow,
.guide-nav-link:focus .guide-nav-arrow {
    color: #b61b31;
}

/* "Kom i gang"-lenken på rotsiden i veiledningen */
.guide-nav-start {
    display: block;
    padding: 16px 24px;
    border: 2px solid #0062ba;
    border-radius: 4px;
    background-color: #0062ba;
    color: #ffffff;
    font-size: 1.125em;
    text-decoration: none;
    border-bottom: 2px solid #0062ba;
}

.guide-nav-start:hover,
.guide-nav-start:focus {
    background-color: #00315d;
    border-color: #00315d;
    color: #ffffff;
    text-decoration: none;
}

.guide-nav-start .guide-nav-page {
    display: block;
    color: #ffffff;
    font-size: 0.875em;
}
