:root {
    --themeColor: hsl(196, 83%, 49%);
    --themeColorLighterOne: hsl(196, 83%, 60%);
    --themeColorLighterTwo: hsl(196, 83%, 70%);
    --themeColorDarkerOne: hsl(196, 83%, 44%);
    --themeColorDarkerOneTransparent: hsla(196, 83%, 44%, 0.5);
    --themeColorDarkerTwo: hsl(197, 82%, 33%);
    --themeColorDarkerTwoTransparent: hsla(197, 82%, 33%, 0.5);
    --themeColorDarkerThree: hsl(197, 82%, 20%);
    --backgroundGray: hsl(1, 0%, 90%);
    --backgroundLightGray: hsl(1, 0%, 96%);

    --borderColor: hsl(1, 0%, 85%);
    --borderColorLight: hsl(1, 0%, 90%);
    --borderColorOnGray: hsl(1, 0%, 80%);
    --borderColorOnBlue: hsl(196, 61%, 44%);
    --borderColorTransparent: hsla(0, 0%, 0%, 0.1);

    --pageHeaderColor: hsla(1, 0%, 0%, 0.8);
    --listHeaderColor: hsla(1, 0%, 0%, 0.6);
    --linkColorGray: hsla(1, 0%, 0%, 0.6);
    --linkColorGrayDisabled: hsla(1, 0%, 0%, 0.4);
    --alertColor: hsl(27, 88%, 53%);
    --alertColorDarkerOne: hsl(27, 88%, 43%);

    --small: 'Decimal A', 'Decimal B', sans-serif;
    --mainSans: 'Gotham SSm A', 'Gotham SSm B', sans-serif;
    --mainSerif: 'Chronicle SSm A', 'Chronicle SSm B', sans-serif;
    --transition: 0.5s;
}

body {
    margin: 0;
    padding: 0;
    background: var(--themeColor);
    background: -moz-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: -webkit-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: -ms-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: linear-gradient(
            to bottom,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: var(--themeColor);
}

strong {
    font-weight: 500;
}

#contentArea {
    display: flex;
    width: 100vw;
    min-height: 100%;
    padding-bottom: 20px;
    box-sizing: border-box;
}

#contentArea.page {
    background: white;
    box-shadow: 0 0 10px hsla(0, 0%, 0%, .3);
}

#contentArea.card,
#contentArea.empty {
    align-items: center;
    justify-content: center;
}

#contentArea.empty {
    color: white;
}

#content {
    max-width: 784px;
    padding: 0 30px 30px;
    box-sizing: border-box;
    margin: 0 auto;
}

.center {
    text-align: center;
}

.alert {
    color: orangered;
}

.betaMessage {
    background: hsla(196, 83%, 49%, .5);
    margin: 20px -12px -12px -12px;
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 15px;
    line-height: 160%;
}

#contentArea.card #content {
    max-width: 400px;
    width: 380px;
    border-radius: 20px;
    box-shadow: 0 0 10px hsla(0, 0%, 0%, .3);
    margin: 0 20px 0 20px;
    padding-top: 150px;
    background: white url(icons_issues.svg) 50% 30px no-repeat;
    background-size: 140px 140px;
}

span.avoidwrap {
    display: inline-block;
}

.pageHeader {
    margin-top: 30px;
    border-bottom: 1px solid var(--borderColor);
}

#contentArea.card * {
    border: none;
    text-align: center;
}

.pageTitle {
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 32px;
    font-weight: 600;
    color: var(--pageHeaderColor);
    opacity: 1;
    cursor: default;
}

#contentArea.card .pageTitle {
    padding-top: 20px;
    padding-bottom: 0;
    display: block;
}

.issue .pageTitle {
    padding-left: 60px;
    background-image: url(icons_issues.svg);
    background-size: 50px 50px;
    background-position: 0 0;
    background-repeat: no-repeat;
}

.pageSection {
    display: block;
    overflow: hidden;
    margin-top: -1px;
    margin-bottom: -1px;
}

.flexWrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-bottom: 1px solid var(--borderColor);
    overflow: hidden;
    margin: 0 -12px;
}

.flexWrapper.alignRight {
    display: flex;
    justify-content: flex-end;
}

.noBorder .flexWrapper {
    border: none;
}

.sectionElement {
    flex-grow: 1;
    flex-basis: 33%;
    max-width: 100%;
    display: flex;
    border-top: 1px solid var(--borderColor);
    margin-top: -1px;
    padding: 12px 0;
}

.noBorder .sectionElement {
    border: none;
    padding-bottom: 6px;
}

.sectionElement.noFlex {
    flex: none;
}

.flexWrapper:first-child .sectionElement {
    margin-top: 0;
}

.sectionElement.alignBottom {
    align-items: flex-end;
}

.sectionElementInner {
    flex: 1;
    margin-left: -1px;
    border-left: 1px solid var(--borderColor);
    padding: 0 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.sectionElementInner.noBorder {
    border: none;
}

.sectionElementInner.alignCenter {
    display: flex;
    justify-content: center;
}

.sectionElementInner.alignRight {
    display: flex;
    justify-content: flex-end;
}

.viewField {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
}

.viewField .content img {
    display: block;
    max-width: 100%;
}

.label {
    display: block;
    margin-bottom: 6px;
    margin-right: 6px;
    font-size: 15px;
    font-weight: 600;
    color: hsla(1, 0%, 0%, 0.8);
}

.subLabel {
    font-weight: normal;
}

.content {
    font-family: var(--mainSerif);
    line-height: 160%;
}

.viewField .content:after {
    content: 'x';
    color: transparent;
    width: 0;
}

edit-html {
    display: block;
    width: 100%;
}

edit-html .sectionElement {
    border: none;
}

input, textarea {
    padding: 5px 10px 6px 10px;
    resize: none;
    border: none;
    border-radius: 0;
    -webkit-appearance: none;
    -webkit-writing-mode: horizontal-tb;
}

input, textarea, .selectWrapper, input-html, #textEdit {
    -webkit-appearance: none;
    -webkit-writing-mode: horizontal-tb;
    background-color: var(--backgroundLightGray);
    box-shadow: inset 2px 2px 8px hsla(0, 0%, 0%, .15);
    width: 100%;
    box-sizing: border-box;
}

input, textarea, select, textarea, input-html {
    font-family: var(--mainSerif);
    font-weight: 200;
    font-size: 15px;
    line-height: 160%;
    color: black;
    outline: none;
}

input::-webkit-input-placeholder,
input::placeholder,
select.placeholder {
    color: hsl(0, 0%, 60%);
}

input-html #textEdit .ProseMirror {
    outline: none;
}

input-html #textEdit .ProseMirror img {
    max-width: 100%;
    display: block;
}

.selectWrapper {
    background-image: url(selectbox_image.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 32px 32px;
    height: 30px;
    overflow: hidden;
    border-radius: 0;
    box-sizing: border-box;
}

.selectWrapper select {
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 3px 30px 5px 9px;
    height: 30px;
    width: 110%;
    width: calc(100% + 18px);
    cursor: pointer;
}

button {
    -webkit-appearance: none;
    border: none;
    border-radius: 8px;
    background-color: var(--themeColor);
    padding: 10px 12px;
    font-family: var(--mainSans);
    font-size: 16px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: transform .2s;
}

button[disabled] {
    opacity: .5;
    cursor: default;
}

.alignRight button {
    transform-origin: right;
}

button:hover {
    background-color: var(--themeColorDarkerOne);
    transform: scale(1.1);
}

button[disabled]:hover {
    background-color: var(--themeColor);
    transform: scale(1);
}

.alignRight button:hover {
    transform-origin: right;
}

p {
    font-size: 15px;
    line-height: 150%;
}

p:first-child {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

p.info {
    font-size: 14px;
    line-height: 150%;
    font-weight: 200;
    color: var(--pageHeaderColor);
}


#textEditHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    background: white;
    top: -1px;
    padding: 14px 0 10px 0;
    z-index: 10;
    position: sticky;
    overflow: hidden;
}

.themePage #textEditHeader {
    background-color: var(--backgroundGray);
    border-top: 1px solid var(--borderColorOnGray);
    border-bottom: 1px solid var(--borderColor);
    margin-bottom: -1px;
}

#textEditHeader .label {
    margin-right: 10px;
}

#textEdit {
    position: relative;
    padding: 5px 10px 6px 10px;
    min-height: 100px;
}


#toolbar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: calc(100% - 40px);
}

#toolbar #buttonGroup {
    flex: none;
    max-width: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    position: relative;
    transition: max-width 0.5s;
}

#toolbar #buttonGroup.hideLink {
    max-width: 332px;
    transition: max-width 0.5s;
}

#toolbar #buttonGroup > * {
    flex: none;
    margin-left: 4px;
    background-color: hsl(0, 0%, 92%);
    border-radius: 4px;
}

.themePage #toolbar #buttonGroup > * {
    background-color: white;
    border: 1px solid var(--borderColor);
}

#toolbar > *:first-child {
    margin-left: 0;
}

#toolbar .selectWrapper {
    width: 84px;
    box-shadow: none;
    background-image: none;
    margin: 0;
}

#toolbar .selectWrapper select {
    outline: none;
    font-size: 14px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-right: 5px;
}

#toolbar button {
    -moz-appearance: none;
    -webkit-appearance: none;
    height: 30px;
    border: none;
    font-size: 15px;
    width: 30px;
    text-align: center;
    cursor: pointer;
    outline: none;
    background: hsl(0, 0%, 92%) url(/formatbuttons.svg) 0 0 no-repeat;
    background-size: 310px 70px;
}

#toolbar .buttonBold {
    background-position: 0 0;
}

#toolbar .buttonItalic {
    background-position: -40px 0;
}

#toolbar .buttonUl {
    background-position: -80px 0;
}

#toolbar .buttonOl {
    background-position: -120px 0;
}

#toolbar .buttonIndPlus {
    background-position: -160px 0;
}

#toolbar .buttonIndMinus {
    background-position: -200px 0;
}

#toolbar .buttonLink {
    background-position: -240px 0;
}

#toolbar button.selected {
    background-position-y: -40px;
    background-color: #32a5df;
}

#toolbar button.alert {
    background-position-y: -40px;
    background-color: #33a7df;
}

#toolbar #linkWrapper {
    display: flex;
    width: 335px;
    overflow: hidden;
    height: 30px;
    background: white;
    transition: all 0.5s;
    border-radius: 4px;
}

#toolbar #linkWrapper.hideLink {
    width: 0;
    transition: all 0.5s;
}

#toolbar input.linkUrl {
    box-shadow: none;
    flex: 1;
    margin: 0;
    outline: 0;
    box-sizing: border-box;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    background: hsl(0, 0%, 92%);
}

#toolbar .buttonLinkOK {
    flex: none;
    background-position: -280px -40px;
    background-color: #32a5df;
    margin-left: 0;
    border-radius: 0 4px 4px 0;
}

input-html #textEdit.is-empty::before {
    content: attr(data-placeholder);
    float: left;
    color: hsl(0, 0%, 60%);
    pointer-events: none;
    height: 0;
}


input.systemText,
textarea.systemText,
select.systemText,
.selectWrapper.systemText select,
.textarea.systemText {
    font-family: var(--mainSans);
}


@media only screen and (max-width: 600px) {

    #content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pageHeader {
        margin-top: 12px;
    }

    .pageTitle {
        margin-top: 4px;
        padding-top: 4px;
        padding-bottom: 12px;
        font-size: 22px;
        hyphens: auto;
    }

    .issue .pageTitle {
        padding-left: 36px;
        background-size: 28px 28px;
        background-position: 0 2px;
    }

    .betaMessage {
        margin-left: -2px;
        margin-right: -2px;
    }

}


/*  FRA app-root-page */


app-root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

app-root:before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    z-index: -1;
    background: var(--themeColor);
    background: -moz-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: -webkit-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: -ms-linear-gradient(
            top,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
    background: linear-gradient(
            to bottom,
            var(--themeColor) 0%,
            var(--themeColorDarkerTwo) 30%,
            var(--themeColorDarkerTwo) 100%
    );
}

header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
    height: 52px;
    padding-left: 116px;
    padding-right: 20px;
    box-sizing: border-box;
    background: transparent url(trinnvis_logo_hvit.svg) 17px 13px no-repeat;
    background-size: 97px 25px;
    font-family: var(--mainSans);
    font-weight: 400;
    font-size: 14px;
    color: white;
    white-space: nowrap;
    z-index: 10;
}

header > div:last-child {
    display: flex;
    align-items: baseline;
    overflow: hidden;
}

header .serviceName {
    flex: none;
    font-size: 18px;
    padding-right: 6px;
    opacity: .7;
}

header > div > div {
    padding: 15px 0 0 0;
}

header a {
    flex: none;
    color: white;
    text-decoration: none;
    opacity: .7;
    padding: 15px 7px;
}

header a:hover {
    opacity: 1;
}

header .userName {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

main {
    flex: 1;
    display: flex;
}

footer {
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background-color: hsl(0, 0%, 90%);
    text-align: center;
    font-family: 'Gotham SSm A', 'Gotham SSm B', sans-serif;
    font-size: 15px;
    line-height: 160%;
    font-weight: 200;
    color: hsl(0, 0%, 30%);
}

.footerContent {
    max-width: 784px;
    padding: 20px 30px;
    box-sizing: border-box;
    line-height: 150%;
}

.footerContent a {
    color: var(--themeColorDarkerOne);
    font-weight: 500;
    text-decoration: none;
}

.footerContent a:hover {
    color: var(--themeColorDarkerThree);
    text-decoration: underline;
}


